pocket-tts-gujarati

meeeetxd/pocket-tts-gujarati

作者
meeeetxd
任务
语音合成
下载量
0
点赞数
9
趋势分
7
许可证
cc-by-4.0
收录时间
2026/11/4

language:

  • gu license: cc-by-4.0 pipeline_tag: text-to-speech base_model: kyutai/pocket-tts base_model_relation: finetune inference: false tags:
  • text-to-speech
  • voice-cloning
  • pocket-tts
  • gujarati

Gujarati Pocket TTS

This is a community finetune of Kyutai Pocket TTS, specifically focused on the Gujarati language.

It is a 6-layer student distilled from a 24-layer teacher. The tokenizer is SentencePiece. It speaks Gujarati and clones a voice from a short wav. Audio is 24 kHz. The weights are about 438 MB, and CPU is the intended way to run them. Guidance is already baked in, so generate with 1 step and temperature 0.3.

The paper is Pocket TTS. The base model is kyutai/pocket-tts, and the code is kyutai-labs/pocket-tts. The safetensors bundle includes Kyutai's codec weights, used here under CC-BY-4.0.

Samples

These are generations from this model.

Gujarati

જીવન હંમેશા આપણે ધારીએ તે રીતે ચાલતું નથી, પરંતુ ક્યારેક અણધારી ક્ષણો જ સૌથી સુંદર યાદો બની જાય છે.

Use

Install the library, or call it with uvx.

pip install pocket-tts

weights_path and tokenizer_path in the config are relative. Download this repo and run from that folder:

import scipy.io.wavfile
from pocket_tts import TTSModel

model = TTSModel.load_model(config="config.yaml")
voice = model.get_state_for_audio_prompt("my_voice.wav")
audio = model.generate_audio(voice, "નમસ્તે, તમે કેમ છો?")
scipy.io.wavfile.write("out.wav", model.sample_rate, audio.detach().cpu().numpy().squeeze())

The same config on the Hub:

model = TTSModel.load_model(config="hf://meeeetxd/pocket-tts-gujarati/config.yaml")

That address loads the yaml. The weight and tokenizer paths inside it stay relative, so model.safetensors and tokenizer.model still have to sit in the working directory. config.yaml and student.yaml are the same file.

uvx pocket-tts generate \
  --config config.yaml \
  --voice my_voice.wav \
  --text "નમસ્તે, તમે કેમ છો?" \
  --output-path out.wav

Model

ArchitecturePocket TTS flow LM, 6 layers, distilled from 24
TextSentencePiece tokenizer, Gujarati language focus
Sample rate24 kHz
Decode1 step, temperature 0.3
SizeAbout 438 MB
DeviceCPU

Happy to collaborate. If you like this model, give it a like, and follow me for future updates: https://www.linkedin.com/in/meet-patel21

内容来源:Hugging Face 模型卡

在 Hugging Face 查看