Text-to-Speech
Transformers
Safetensors
GGUF
English
gradium_phonon_tts
text-to-audio
tts
streaming
on-device
phonon
Instructions to use gradium/phonon-31m-en with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gradium/phonon-31m-en with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="gradium/phonon-31m-en")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForTextToWaveform processor = AutoProcessor.from_pretrained("gradium/phonon-31m-en") model = AutoModelForTextToWaveform.from_pretrained("gradium/phonon-31m-en", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from gradium/phonon-31m-en: direct link, hf CLI and curl.
- Browser
- Download file 747 Bytes
-
https://huggingface.co/gradium/phonon-31m-en/resolve/main/processor_config.json
- Command line
-
hf download hf://gradium/phonon-31m-en/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/gradium/phonon-31m-en/resolve/main/processor_config.json
747 Bytes
| { | |
| "audio_tokenizer": { | |
| "audio_tokenizer_class": "PocketTTSAudioTokenizerModel", | |
| "audio_tokenizer_name_or_path": "gradium/phonon-mimi" | |
| }, | |
| "fade_in_duration": 0.0, | |
| "feature_extractor": { | |
| "analysis_frame_duration": 0.02, | |
| "end_on_pause": true, | |
| "fade_out_duration": 0.02, | |
| "feature_extractor_type": "PocketTTSFeatureExtractor", | |
| "feature_size": 1, | |
| "frame_size": 1920, | |
| "pad_to_multiple_of": 1920, | |
| "padding_side": "right", | |
| "padding_value": 0.0, | |
| "pause_duration": 0.08, | |
| "return_attention_mask": true, | |
| "sampling_rate": 24000, | |
| "silence_floor_db": 35.0 | |
| }, | |
| "frames_after_eos": 1, | |
| "frames_after_eos_short_text": 3, | |
| "processor_class": "PocketTTSProcessor", | |
| "short_text_max_words": 4 | |
| } | |