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 german/bundle.json from justdataplz/pocket-tts-web: direct link, hf CLI and curl.
- Browser
- Download file 1.41 kB
-
https://huggingface.co/justdataplz/pocket-tts-web/resolve/main/german/bundle.json
- Command line
-
hf download hf://justdataplz/pocket-tts-web/german/bundle.json
-
curl -L -o bundle.json https://huggingface.co/justdataplz/pocket-tts-web/resolve/main/german/bundle.json
1.41 kB
| { | |
| "format": 1, | |
| "language": "german", | |
| "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": "e8b7b96f2e5421341a47d278f3fb58a8dd67eca4998ee853a4f1d6f5c24837fe" | |
| }, | |
| { | |
| "name": "flow_lm_main.onnx", | |
| "bytes": 76528630, | |
| "sha256": "d25bb8a1ade712fd898bb22503fda8ac6807d3d38675614e28797dd19a243ecf" | |
| }, | |
| { | |
| "name": "flow_lm_flow.onnx", | |
| "bytes": 10059573, | |
| "sha256": "722a81275138fb25c4bdfec78d57fc40b7fca15913c6fd42583351880c27c9fd" | |
| }, | |
| { | |
| "name": "mimi_decoder.onnx", | |
| "bytes": 22727703, | |
| "sha256": "2283fdf48678079e592934a9e1bda2fa9798d8a6b306dc920513830280bfef7b" | |
| }, | |
| { | |
| "name": "mimi_init.bin", | |
| "bytes": 2157988 | |
| }, | |
| { | |
| "name": "tokenizer.json", | |
| "bytes": 91172 | |
| } | |
| ] | |
| } |