Instructions to use Ekam/Libra-TTS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Ekam/Libra-TTS with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download Ekam/Libra-TTS --local-dir Libra-TTS
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download config.json from Ekam/Libra-TTS: direct link, hf CLI and curl.
- Browser
- Download file 5.12 kB
-
https://huggingface.co/Ekam/Libra-TTS/resolve/main/config.json
- Command line
-
hf download hf://Ekam/Libra-TTS/config.json
-
curl -L -o config.json https://huggingface.co/Ekam/Libra-TTS/resolve/main/config.json
5.12 kB
| { | |
| "model_type": "libra-tts", | |
| "name": "Libra-TTS", | |
| "sample_rate": 24000, | |
| "frame_rate": 12.5, | |
| "max_frames": 1200, | |
| "talker": { | |
| "layers": 14, | |
| "heads": 16, | |
| "kv_heads": 8, | |
| "head_dim": 128, | |
| "intermediate": 6144, | |
| "eps": 1e-06, | |
| "rope_theta": 1000000.0, | |
| "hidden": 2048, | |
| "vocab": 3072 | |
| }, | |
| "predictor": { | |
| "layers": 5, | |
| "heads": 16, | |
| "kv_heads": 8, | |
| "head_dim": 128, | |
| "intermediate": 3072, | |
| "eps": 1e-06, | |
| "rope_theta": 1000000.0, | |
| "hidden": 1024, | |
| "vocab": 2048 | |
| }, | |
| "num_code_groups": 16, | |
| "codebook_size": 2048, | |
| "tokens": { | |
| "im_start": 151644, | |
| "im_end": 151645, | |
| "assistant": 77091, | |
| "newline": 198, | |
| "user": 872, | |
| "tts_pad": 151671, | |
| "tts_bos": 151672, | |
| "tts_eos": 151673 | |
| }, | |
| "codec_ids": { | |
| "pad": 2148, | |
| "bos": 2149, | |
| "eos": 2150, | |
| "think": 2154, | |
| "nothink": 2155, | |
| "think_bos": 2156, | |
| "think_eos": 2157 | |
| }, | |
| "suppressed_code0": [ | |
| 2048, | |
| 3072 | |
| ], | |
| "sampling": { | |
| "temperature": 0.5, | |
| "top_k": 50, | |
| "repetition_penalty": 1.05, | |
| "min_new_frames": 2, | |
| "sub_temperature": 0.5, | |
| "sub_top_k": 50 | |
| }, | |
| "languages": { | |
| "en": { | |
| "name": "english", | |
| "id": 2050, | |
| "chars_per_second": 13.8 | |
| }, | |
| "de": { | |
| "name": "german", | |
| "id": 2053, | |
| "chars_per_second": 14.5 | |
| }, | |
| "fr": { | |
| "name": "french", | |
| "id": 2061, | |
| "chars_per_second": 15.3 | |
| }, | |
| "es": { | |
| "name": "spanish", | |
| "id": 2054, | |
| "chars_per_second": 13.2 | |
| }, | |
| "it": { | |
| "name": "italian", | |
| "id": 2070, | |
| "chars_per_second": 14.2 | |
| }, | |
| "pt": { | |
| "name": "portuguese", | |
| "id": 2071, | |
| "chars_per_second": 13.5 | |
| }, | |
| "ru": { | |
| "name": "russian", | |
| "id": 2069, | |
| "chars_per_second": 13.0 | |
| }, | |
| "ja": { | |
| "name": "japanese", | |
| "id": 2058, | |
| "chars_per_second": 5.1 | |
| }, | |
| "ko": { | |
| "name": "korean", | |
| "id": 2064, | |
| "chars_per_second": 5.9 | |
| }, | |
| "zh": { | |
| "name": "chinese", | |
| "id": 2055, | |
| "chars_per_second": 4.3 | |
| }, | |
| "hi": { | |
| "name": "hindi", | |
| "id": 2051, | |
| "chars_per_second": 11.7 | |
| }, | |
| "pa": { | |
| "name": "punjabi", | |
| "id": 2052, | |
| "chars_per_second": 12.3 | |
| }, | |
| "ar": { | |
| "name": "arabic", | |
| "id": 2056, | |
| "chars_per_second": 9.8 | |
| }, | |
| "id": { | |
| "name": "indonesian", | |
| "id": 2057, | |
| "chars_per_second": 15.3 | |
| }, | |
| "bn": { | |
| "name": "bengali", | |
| "id": 2059, | |
| "chars_per_second": 12.8 | |
| }, | |
| "ur": { | |
| "name": "urdu", | |
| "id": 2060, | |
| "chars_per_second": 12.4 | |
| } | |
| }, | |
| "voices": [ | |
| { | |
| "name": "nina", | |
| "display": "Nina", | |
| "gender": "female", | |
| "id": 3062 | |
| }, | |
| { | |
| "name": "sofia", | |
| "display": "Sofia", | |
| "gender": "female", | |
| "id": 3063 | |
| }, | |
| { | |
| "name": "aliya", | |
| "display": "Aliya", | |
| "gender": "female", | |
| "id": 3064 | |
| }, | |
| { | |
| "name": "omar", | |
| "display": "Omar", | |
| "gender": "male", | |
| "id": 3067 | |
| }, | |
| { | |
| "name": "jon", | |
| "display": "Jon", | |
| "gender": "male", | |
| "id": 3068 | |
| }, | |
| { | |
| "name": "bob", | |
| "display": "Bob", | |
| "gender": "male", | |
| "id": 3069 | |
| }, | |
| { | |
| "name": "maya", | |
| "display": "Maya", | |
| "gender": "female", | |
| "id": 3070 | |
| }, | |
| { | |
| "name": "sam", | |
| "display": "Sam", | |
| "gender": "male", | |
| "id": 3071 | |
| } | |
| ], | |
| "default_voice": "nina", | |
| "styles": { | |
| "warm": [ | |
| "warm and gentle", | |
| "soft and kind", | |
| "gentle, like a bedtime story" | |
| ], | |
| "cheerful": [ | |
| "cheerful and upbeat", | |
| "bright and happy", | |
| "light and cheerful" | |
| ], | |
| "excited": [ | |
| "excited and energetic", | |
| "thrilled and lively", | |
| "bursting with excitement" | |
| ], | |
| "sad": [ | |
| "sad and subdued", | |
| "sorrowful and quiet", | |
| "heavy with sadness" | |
| ], | |
| "frightened": [ | |
| "frightened and anxious", | |
| "nervous and afraid", | |
| "fearful, trembling" | |
| ], | |
| "calm": [ | |
| "calm and soothing", | |
| "relaxed and peaceful", | |
| "calm and steady" | |
| ], | |
| "serious": [ | |
| "serious and grave", | |
| "solemn and serious", | |
| "grave and weighty" | |
| ], | |
| "wry": [ | |
| "wry and amused", | |
| "dry, ironic humor", | |
| "playfully sarcastic" | |
| ], | |
| "tender": [ | |
| "tender and intimate", | |
| "loving and tender", | |
| "soft and affectionate" | |
| ], | |
| "whispering": [ | |
| "whispering", | |
| "hushed, almost whispering", | |
| "in a soft whisper" | |
| ], | |
| "dramatic": [ | |
| "dramatic storytelling", | |
| "animated and theatrical", | |
| "vivid, dramatic narration" | |
| ], | |
| "documentary": [ | |
| "measured documentary narration", | |
| "clear and informative", | |
| "calm, factual narration" | |
| ] | |
| }, | |
| "paces": { | |
| "slow": "slowly", | |
| "fast": "quickly" | |
| }, | |
| "tags": [ | |
| "<laugh>", | |
| "<chuckle>", | |
| "<giggle>", | |
| "<snicker>", | |
| "<sigh>", | |
| "<gasp>", | |
| "<breath>", | |
| "<heavy breath>", | |
| "<exhales>", | |
| "<phew>", | |
| "<short pause>", | |
| "<long pause>", | |
| "<cough>", | |
| "<throat-clearing>", | |
| "<sneeze>", | |
| "<yawn>", | |
| "<sob>", | |
| "<cry>", | |
| "<whimper>", | |
| "<groan>", | |
| "<tsk>", | |
| "<shout>" | |
| ], | |
| "codec": { | |
| "num_quantizers": 16, | |
| "codebook_size": 2048, | |
| "hidden_size": 512, | |
| "num_hidden_layers": 8, | |
| "num_attention_heads": 16, | |
| "head_dim": 64, | |
| "intermediate_size": 1024, | |
| "rms_norm_eps": 1e-05, | |
| "rope_theta": 10000, | |
| "sliding_window": 72, | |
| "upsample_rates": [ | |
| 8, | |
| 5, | |
| 4, | |
| 3 | |
| ], | |
| "upsampling_ratios": [ | |
| 2, | |
| 2 | |
| ], | |
| "decode_upsample_rate": 1920 | |
| }, | |
| "precision": { | |
| "model": "bfloat16", | |
| "codec_head": "float32", | |
| "codec_body": "float16" | |
| } | |
| } |