Instructions to use coder543/pocket-tts-glade with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Pocket-TTS
How to use coder543/pocket-tts-glade with Pocket-TTS:
from pocket_tts import TTSModel import scipy.io.wavfile tts_model = TTSModel.load_model("coder543/pocket-tts-glade") 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 profiles/it/metadata.json from coder543/pocket-tts-glade: direct link, hf CLI and curl.
- Browser
- Download file 9.44 kB
-
https://huggingface.co/coder543/pocket-tts-glade/resolve/main/profiles/it/metadata.json
- Command line
-
hf download hf://coder543/pocket-tts-glade/profiles/it/metadata.json
-
curl -L -o metadata.json https://huggingface.co/coder543/pocket-tts-glade/resolve/main/profiles/it/metadata.json
9.44 kB
| { | |
| "parameter_counts": { | |
| "language_generation": 89413697, | |
| "audio_decoder": 10305313, | |
| "voice_encoder": 9782816, | |
| "total": 109501826 | |
| }, | |
| "checkpoint_sha256": "11c226c14deb3e403d6a3fb5a52cb5cffdce85b93ba782344cea430370e2d4ab", | |
| "export_configuration": { | |
| "variant": "italian", | |
| "revision": "a72dba0d1a5f1387c104f9d3e17abb8ab60b4fae", | |
| "source_revision": "da629e60b68fc141a790daa05630735966b68720", | |
| "checkpoint_sha256": "11c226c14deb3e403d6a3fb5a52cb5cffdce85b93ba782344cea430370e2d4ab", | |
| "tokenizer_sha256": "4bc1c0d4d54f9480183e94c94cfabf74fd89b0912537d4ef607d1982c4a381ec", | |
| "context": 1024, | |
| "prefill": 32, | |
| "precision": "w8a16", | |
| "attention_layout": "batched", | |
| "gpu_language": false, | |
| "codec_batches": [ | |
| 1, | |
| 2, | |
| 4, | |
| 8 | |
| ], | |
| "normalization": "fp16", | |
| "voice_encoder": { | |
| "samples_per_call": 15360, | |
| "positions_per_call": 128, | |
| "latents_per_call": 8, | |
| "context_capacity": 256 | |
| }, | |
| "codec_activation_precision": "fp16", | |
| "voices": [ | |
| { | |
| "name": "giovanni", | |
| "sha256": "5cede7852c7076f611750e4a8d3c95d19c6386852abc55940b3279f775fc5f9b" | |
| } | |
| ] | |
| }, | |
| "schema_version": 3, | |
| "model_family": "pocket", | |
| "repository": "kyutai/pocket-tts", | |
| "revision": "a72dba0d1a5f1387c104f9d3e17abb8ab60b4fae", | |
| "source_revision": "da629e60b68fc141a790daa05630735966b68720", | |
| "tokenizer_revision": "a72dba0d1a5f1387c104f9d3e17abb8ab60b4fae", | |
| "voice_revision": "a72dba0d1a5f1387c104f9d3e17abb8ab60b4fae", | |
| "precision": "w8a16", | |
| "sample_rate": 24000, | |
| "latent_dimension": 32, | |
| "hidden_size": 1024, | |
| "layers": 6, | |
| "heads": 16, | |
| "kv_heads": 16, | |
| "head_dimension": 64, | |
| "vocabulary_size": 4001, | |
| "condition_size": 1024, | |
| "variant": "italian", | |
| "flow_type": "lsd", | |
| "context_capacity": 1024, | |
| "prefill_positions": 32, | |
| "codec_positions": 16, | |
| "codec_context_capacity": 256, | |
| "codec_attention_context": 250, | |
| "codec_layers": 2, | |
| "codec_heads": 8, | |
| "codec_head_dimension": 64, | |
| "samples_per_latent": 1920, | |
| "temperature": 0.3, | |
| "eos_threshold": -4.0, | |
| "sampler_decode_steps": 1, | |
| "minimum_frames_before_eos": 6, | |
| "maximum_tokens_per_chunk": 50, | |
| "attention_layout": "batched", | |
| "gpu_language": false, | |
| "codec_batches": [ | |
| 1, | |
| 2, | |
| 4, | |
| 8 | |
| ], | |
| "normalization": "fp16", | |
| "codec_activation_precision": "fp16", | |
| "tokens_per_second_estimate": 3.0, | |
| "generation_seconds_padding": 2.0, | |
| "voice_prefix_positions": { | |
| "giovanni": 84, | |
| "example-reader-a": 167, | |
| "example-reader-b": 167, | |
| "example-kokoro-heart": 98, | |
| "example-kokoro-adam": 104 | |
| }, | |
| "language": "it", | |
| "preprocessing": { | |
| "pad_with_spaces_for_short_inputs": false, | |
| "remove_semicolons": false, | |
| "append_terminal_punctuation": true, | |
| "capitalize_first_letter": true, | |
| "replace_characters": { | |
| "\"": "", | |
| "\u201c": "", | |
| "\u201d": "", | |
| "\u201e": "", | |
| "\u00ab": "", | |
| "\u00bb": "", | |
| "\u2019": "'", | |
| "\u2018": "'", | |
| "(": "", | |
| ")": "", | |
| "[": "", | |
| "]": "", | |
| "\u2013": "," | |
| } | |
| }, | |
| "model_recommended_frames_after_eos": null, | |
| "voices": [ | |
| "giovanni", | |
| "example-reader-a", | |
| "example-reader-b", | |
| "example-kokoro-heart", | |
| "example-kokoro-adam" | |
| ], | |
| "codec_state_layout": [ | |
| { | |
| "name": "upsample.convtr", | |
| "shape": [ | |
| 1, | |
| 512, | |
| 1, | |
| 16 | |
| ], | |
| "first": 0, | |
| "count": 8192 | |
| }, | |
| { | |
| "name": "decoder.model.0", | |
| "shape": [ | |
| 1, | |
| 512, | |
| 1, | |
| 6 | |
| ], | |
| "first": 8192, | |
| "count": 3072 | |
| }, | |
| { | |
| "name": "decoder.model.2", | |
| "shape": [ | |
| 1, | |
| 256, | |
| 1, | |
| 6 | |
| ], | |
| "first": 11264, | |
| "count": 1536 | |
| }, | |
| { | |
| "name": "decoder.model.3.block.1", | |
| "shape": [ | |
| 1, | |
| 256, | |
| 1, | |
| 2 | |
| ], | |
| "first": 12800, | |
| "count": 512 | |
| }, | |
| { | |
| "name": "decoder.model.3.block.3", | |
| "shape": [ | |
| 1, | |
| 128, | |
| 1, | |
| 0 | |
| ], | |
| "first": 13312, | |
| "count": 0 | |
| }, | |
| { | |
| "name": "decoder.model.5", | |
| "shape": [ | |
| 1, | |
| 128, | |
| 1, | |
| 5 | |
| ], | |
| "first": 13312, | |
| "count": 640 | |
| }, | |
| { | |
| "name": "decoder.model.6.block.1", | |
| "shape": [ | |
| 1, | |
| 128, | |
| 1, | |
| 2 | |
| ], | |
| "first": 13952, | |
| "count": 256 | |
| }, | |
| { | |
| "name": "decoder.model.6.block.3", | |
| "shape": [ | |
| 1, | |
| 64, | |
| 1, | |
| 0 | |
| ], | |
| "first": 14208, | |
| "count": 0 | |
| }, | |
| { | |
| "name": "decoder.model.8", | |
| "shape": [ | |
| 1, | |
| 64, | |
| 1, | |
| 4 | |
| ], | |
| "first": 14208, | |
| "count": 256 | |
| }, | |
| { | |
| "name": "decoder.model.9.block.1", | |
| "shape": [ | |
| 1, | |
| 64, | |
| 1, | |
| 2 | |
| ], | |
| "first": 14464, | |
| "count": 128 | |
| }, | |
| { | |
| "name": "decoder.model.9.block.3", | |
| "shape": [ | |
| 1, | |
| 32, | |
| 1, | |
| 0 | |
| ], | |
| "first": 14592, | |
| "count": 0 | |
| }, | |
| { | |
| "name": "decoder.model.11", | |
| "shape": [ | |
| 1, | |
| 64, | |
| 1, | |
| 2 | |
| ], | |
| "first": 14592, | |
| "count": 128 | |
| } | |
| ], | |
| "voice_encoder": { | |
| "samples_per_call": 15360, | |
| "positions_per_call": 128, | |
| "latents_per_call": 8, | |
| "context_capacity": 256, | |
| "layers": 2, | |
| "heads": 8, | |
| "head_dimension": 64, | |
| "attention_context": 250, | |
| "insert_bos": true, | |
| "state_layout": [ | |
| { | |
| "name": "encoder.model.0", | |
| "shape": [ | |
| 1, | |
| 1, | |
| 1, | |
| 6 | |
| ], | |
| "first": 0, | |
| "count": 6 | |
| }, | |
| { | |
| "name": "encoder.model.1.block.1", | |
| "shape": [ | |
| 1, | |
| 64, | |
| 1, | |
| 2 | |
| ], | |
| "first": 6, | |
| "count": 128 | |
| }, | |
| { | |
| "name": "encoder.model.1.block.3", | |
| "shape": [ | |
| 1, | |
| 32, | |
| 1, | |
| 0 | |
| ], | |
| "first": 134, | |
| "count": 0 | |
| }, | |
| { | |
| "name": "encoder.model.3", | |
| "shape": [ | |
| 1, | |
| 64, | |
| 1, | |
| 4 | |
| ], | |
| "first": 134, | |
| "count": 256 | |
| }, | |
| { | |
| "name": "encoder.model.4.block.1", | |
| "shape": [ | |
| 1, | |
| 128, | |
| 1, | |
| 2 | |
| ], | |
| "first": 390, | |
| "count": 256 | |
| }, | |
| { | |
| "name": "encoder.model.4.block.3", | |
| "shape": [ | |
| 1, | |
| 64, | |
| 1, | |
| 0 | |
| ], | |
| "first": 646, | |
| "count": 0 | |
| }, | |
| { | |
| "name": "encoder.model.6", | |
| "shape": [ | |
| 1, | |
| 128, | |
| 1, | |
| 5 | |
| ], | |
| "first": 646, | |
| "count": 640 | |
| }, | |
| { | |
| "name": "encoder.model.7.block.1", | |
| "shape": [ | |
| 1, | |
| 256, | |
| 1, | |
| 2 | |
| ], | |
| "first": 1286, | |
| "count": 512 | |
| }, | |
| { | |
| "name": "encoder.model.7.block.3", | |
| "shape": [ | |
| 1, | |
| 128, | |
| 1, | |
| 0 | |
| ], | |
| "first": 1798, | |
| "count": 0 | |
| }, | |
| { | |
| "name": "encoder.model.9", | |
| "shape": [ | |
| 1, | |
| 256, | |
| 1, | |
| 6 | |
| ], | |
| "first": 1798, | |
| "count": 1536 | |
| }, | |
| { | |
| "name": "encoder.model.11", | |
| "shape": [ | |
| 1, | |
| 512, | |
| 1, | |
| 2 | |
| ], | |
| "first": 3334, | |
| "count": 1024 | |
| }, | |
| { | |
| "name": "downsample.conv", | |
| "shape": [ | |
| 1, | |
| 512, | |
| 1, | |
| 16 | |
| ], | |
| "first": 4358, | |
| "count": 8192 | |
| } | |
| ] | |
| }, | |
| "compute_units": { | |
| "voice_encoder": "neural_engine", | |
| "language": "neural_engine", | |
| "codec": "neural_engine" | |
| }, | |
| "example_voices": { | |
| "example-reader-a": { | |
| "name": "Reader A", | |
| "attribution": "LibriSpeech test-clean, utterance 6930-75918-0005. Reader: Nolan Fout. Corpus by Vassil Panayotov and collaborators. Original recording, unmodified.", | |
| "license": "CC BY 4.0", | |
| "source": "https://www.openslr.org/12", | |
| "audioFingerprint": "ccc0da025ef4f4596a4e70fbde291527d140364166d19d9bb516a48407b3491e" | |
| }, | |
| "example-reader-b": { | |
| "name": "Reader B", | |
| "attribution": "LibriSpeech test-clean, utterance 1320-122617-0002. Reader: number6. Corpus by Vassil Panayotov and collaborators. Original recording, unmodified.", | |
| "license": "CC BY 4.0", | |
| "source": "https://www.openslr.org/12", | |
| "audioFingerprint": "c567f708d614c54f20e4727cdcb3cf81aaf434277bb180e878edc2118f5e4abc" | |
| }, | |
| "example-kokoro-heart": { | |
| "name": "Kokoro Heart", | |
| "attribution": "Generated from a new original text with Kokoro-82M v1.0, af_heart, native Glade runtime, speed 1, seed 42.", | |
| "license": "Kokoro weights: Apache-2.0", | |
| "source": "https://huggingface.co/hexgrad/Kokoro-82M", | |
| "audioFingerprint": "20430b2888f243e2830bdb92ee9838f8204560275490a2dc1a150d9b208bf2e3" | |
| }, | |
| "example-kokoro-adam": { | |
| "name": "Kokoro Adam", | |
| "attribution": "Generated from a new original text with Kokoro-82M v1.0, am_adam, native Glade runtime, speed 1, seed 42.", | |
| "license": "Kokoro weights: Apache-2.0", | |
| "source": "https://huggingface.co/hexgrad/Kokoro-82M", | |
| "audioFingerprint": "2edc9acb7ca040b651559dff710bb42d7765f0306bf03405ac8aed240cb5d79f" | |
| } | |
| } | |
| } | |