Instructions to use MacEpic/pocket-tts-es-coreml with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Pocket-TTS
How to use MacEpic/pocket-tts-es-coreml with Pocket-TTS:
from pocket_tts import TTSModel import scipy.io.wavfile tts_model = TTSModel.load_model("MacEpic/pocket-tts-es-coreml") 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 bundle.json from MacEpic/pocket-tts-es-coreml: direct link, hf CLI and curl.
- Browser
- Download file 3.45 kB
-
https://huggingface.co/MacEpic/pocket-tts-es-coreml/resolve/main/bundle.json
- Command line
-
hf download hf://MacEpic/pocket-tts-es-coreml/bundle.json
-
curl -L -o bundle.json https://huggingface.co/MacEpic/pocket-tts-es-coreml/resolve/main/bundle.json
3.45 kB
| { | |
| "built": 1794179333, | |
| "conditions": {}, | |
| "ctx": 415, | |
| "dims": { | |
| "attn": 1024, | |
| "d": 1024, | |
| "ff": 4096, | |
| "flow_blocks": 6, | |
| "flow_d": 512, | |
| "heads": 16, | |
| "kv_heads": 16, | |
| "layers": 6, | |
| "ldim": 32, | |
| "z": null | |
| }, | |
| "eos_threshold": -4.0, | |
| "files": [ | |
| { | |
| "path": "flow-c415-t1.mlpackage/Data/com.apple.CoreML/model.mlmodel", | |
| "sha256": "8956f573b9e3cc24ecbc1b953e775285917f5d0879679f5fa14f1f59ff3e71b3", | |
| "size": 323041 | |
| }, | |
| { | |
| "path": "flow-c415-t1.mlpackage/Data/com.apple.CoreML/weights/weight.bin", | |
| "sha256": "38fc630f9b5d16e92d1776a3ff4b3ffdfc0b6817199ca71074d190f0df0169ca", | |
| "size": 168889280 | |
| }, | |
| { | |
| "path": "flow-c415-t1.mlpackage/Manifest.json", | |
| "sha256": "12e68216e57ec9ae2f5a3eb39be0e2e850d2f9b58b721f74439bf7cc262bcfb7", | |
| "size": 534 | |
| }, | |
| { | |
| "path": "flow-c415-t48.mlpackage/Data/com.apple.CoreML/model.mlmodel", | |
| "sha256": "7da0adc12e298148072fc15c6e69d79755ccd3976e0c13f568ac866ac79c8108", | |
| "size": 323041 | |
| }, | |
| { | |
| "path": "flow-c415-t48.mlpackage/Data/com.apple.CoreML/weights/weight.bin", | |
| "sha256": "38fc630f9b5d16e92d1776a3ff4b3ffdfc0b6817199ca71074d190f0df0169ca", | |
| "size": 168889280 | |
| }, | |
| { | |
| "path": "flow-c415-t48.mlpackage/Manifest.json", | |
| "sha256": "079ad9f31f3f357be501c35fa6314c37f248c03ff0b6a6630711d63854d78f16", | |
| "size": 534 | |
| }, | |
| { | |
| "path": "host.safetensors", | |
| "sha256": "38288b94254ac619e59585c08b5fb9f7bcf3ee874331c1032d64cb8983e221f6", | |
| "size": 16523760 | |
| }, | |
| { | |
| "path": "mimi-c266.mlpackage/Data/com.apple.CoreML/model.mlmodel", | |
| "sha256": "15f722dc7daf1e174daa9b7fec065fa8437ac5118989224f90297b19386556bf", | |
| "size": 131135 | |
| }, | |
| { | |
| "path": "mimi-c266.mlpackage/Data/com.apple.CoreML/weights/weight.bin", | |
| "sha256": "2e7d230184aa1bc8b1426cdecf814a408726887fa84aa05e3b54defc87db9c35", | |
| "size": 41182464 | |
| }, | |
| { | |
| "path": "mimi-c266.mlpackage/Manifest.json", | |
| "sha256": "d75d9c5a2e55c5c2a19e6929015f42e190437c74b255e915d03eea7db47a1383", | |
| "size": 534 | |
| }, | |
| { | |
| "path": "tokenizer.json", | |
| "sha256": "9ade09bbdc64ab2b59952b90773fa0890b780ece4fd5aef0d36a00c6ad5f0531", | |
| "size": 246610 | |
| }, | |
| { | |
| "path": "voices/alba.safetensors", | |
| "sha256": "36cce633d7dc652aab5812246b54aeb16c3ba017ec46e8ca957225db715038e6", | |
| "size": 516176 | |
| }, | |
| { | |
| "path": "voices/anna.safetensors", | |
| "sha256": "c58bca3a29c153bfa785ff8e446e9ed7d56964814da4791ae1765c420953624e", | |
| "size": 516176 | |
| }, | |
| { | |
| "path": "voices/bill.safetensors", | |
| "sha256": "692416c8702cbffda9fd94229d7a2f96c20381ecdf985a6dba4704444d3eef96", | |
| "size": 516176 | |
| }, | |
| { | |
| "path": "voices/estelle.safetensors", | |
| "sha256": "67ed6c4bb7fb79b7ec47af8164049b89187617bc9cf8d5e1d0dbb84958940564", | |
| "size": 516176 | |
| } | |
| ], | |
| "languages": [ | |
| "es" | |
| ], | |
| "max_frames": 225, | |
| "mimi": { | |
| "compress": 2, | |
| "d_model": 512, | |
| "dim": 512, | |
| "ff": 2048, | |
| "heads": 8, | |
| "kernel_size": 7, | |
| "last_kernel_size": 3, | |
| "layers": 2, | |
| "ldim": 32, | |
| "n_filters": 64, | |
| "out_dim": 512, | |
| "ratios": [ | |
| 6, | |
| 5, | |
| 4 | |
| ], | |
| "residual_kernel_size": 3, | |
| "steps": 16 | |
| }, | |
| "mimi_window": 250, | |
| "prefill_len": 48, | |
| "temperature": 0.30000001192092896, | |
| "voices": [ | |
| "alba", | |
| "anna", | |
| "bill", | |
| "estelle" | |
| ] | |
| } |