Instructions to use justdataplz/pocket-tts-web with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Pocket-TTS
How to use justdataplz/pocket-tts-web with Pocket-TTS:
from pocket_tts import TTSModel import scipy.io.wavfile tts_model = TTSModel.load_model("justdataplz/pocket-tts-web") voice_state = tts_model.get_state_for_audio_prompt( "hf://kyutai/tts-voices/alba-mackenna/casual.wav" ) audio = tts_model.generate_audio(voice_state, "Hello world, this is a test.") # Audio is a 1D torch tensor containing PCM data. scipy.io.wavfile.write("output.wav", tts_model.sample_rate, audio.numpy()) - Notebooks
- Google Colab
- Kaggle
Download french/bundle.json from justdataplz/pocket-tts-web: direct link, hf CLI and curl.
- Browser
- Download file 1.42 kB
-
https://huggingface.co/justdataplz/pocket-tts-web/resolve/main/french/bundle.json
- Command line
-
hf download hf://justdataplz/pocket-tts-web/french/bundle.json
-
curl -L -o bundle.json https://huggingface.co/justdataplz/pocket-tts-web/resolve/main/french/bundle.json
1.42 kB
| { | |
| "format": 1, | |
| "language": "french", | |
| "sample_rate": 24000, | |
| "samples_per_frame": 1920, | |
| "latent_dim": 32, | |
| "conditioning_dim": 1024, | |
| "layers": 6, | |
| "heads": 16, | |
| "head_dim": 64, | |
| "capacity": 400, | |
| "temperature": 0.3, | |
| "eos_threshold": -4.0, | |
| "frames_after_eos": null, | |
| "max_tokens": 50, | |
| "text": { | |
| "remove_semicolons": true, | |
| "append_terminal_punctuation": true, | |
| "capitalize_first_letter": true, | |
| "pad_with_spaces_for_short_inputs": false, | |
| "replace_characters": { | |
| "\"": "", | |
| "“": "", | |
| "”": "", | |
| "„": "", | |
| "«": "", | |
| "»": "", | |
| "’": "'", | |
| "‘": "'", | |
| ":": ",", | |
| "(": "", | |
| ")": "", | |
| "[": "", | |
| "]": "" | |
| } | |
| }, | |
| "files": [ | |
| { | |
| "name": "text_conditioner.onnx", | |
| "bytes": 4097582, | |
| "sha256": "102c12074a42a9919dfd633a6a5fd2026af0f7e074cf8872c1e509060809d0ca" | |
| }, | |
| { | |
| "name": "flow_lm_main.onnx", | |
| "bytes": 76528630, | |
| "sha256": "2ae9f207d8cfabbd35825a0b87de73fa3f1db9f28af1f7e172deb6e863737c66" | |
| }, | |
| { | |
| "name": "flow_lm_flow.onnx", | |
| "bytes": 10059573, | |
| "sha256": "c209bb9d0d0a2ebb39356f0ce6a5c819970946d4699b11aa4e008c551c456a3f" | |
| }, | |
| { | |
| "name": "mimi_decoder.onnx", | |
| "bytes": 22727703, | |
| "sha256": "8f89984372727479b88b89578edfab374ff9eb4adb0f543b17be54bcd42eb651" | |
| }, | |
| { | |
| "name": "mimi_init.bin", | |
| "bytes": 2157988 | |
| }, | |
| { | |
| "name": "tokenizer.json", | |
| "bytes": 91605 | |
| } | |
| ] | |
| } |