Instructions to use shahvandit/qwen3-tts-tokenizer-multi-codebook-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shahvandit/qwen3-tts-tokenizer-multi-codebook-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="shahvandit/qwen3-tts-tokenizer-multi-codebook-hf")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("shahvandit/qwen3-tts-tokenizer-multi-codebook-hf", device_map="auto") - Qwen3-TTS
How to use shahvandit/qwen3-tts-tokenizer-multi-codebook-hf with Qwen3-TTS:
# pip install qwen-tts import torch import soundfile as sf from qwen_tts import Qwen3TTSModel model = Qwen3TTSModel.from_pretrained( "shahvandit/qwen3-tts-tokenizer-multi-codebook-hf", device_map="cuda:0", dtype=torch.bfloat16, attn_implementation="flash_attention_2", ) wavs, sr = model.generate_custom_voice( text="Your text here.", language="English", speaker="Ryan", instruct="Speak in a natural tone.", ) sf.write("output.wav", wavs[0], sr) - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!