Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

litert-community
/
pocket-tts

Text-to-Speech
LiteRT
Pocket-TTS
tts
on-device
int8
Model card Files Files and versions
xet
Community

Instructions to use litert-community/pocket-tts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • LiteRT

    How to use litert-community/pocket-tts with LiteRT:

    # No code snippets available yet for this library.
    
    # To use this model, check the repository files and the library's documentation.
    
    # Want to help? PRs adding snippets are welcome at:
    # https://github.com/huggingface/huggingface.js
  • Pocket-TTS

    How to use litert-community/pocket-tts with Pocket-TTS:

    from pocket_tts import TTSModel
    import scipy.io.wavfile
    
    tts_model = TTSModel.load_model("litert-community/pocket-tts")
    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
pocket-tts
1.68 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 10 commits
surils's picture
surils
Add README.md model card
bca93d6 verified about 19 hours ago
  • .gitattributes
    2.03 kB
    Upload pocket_tts_nl_int8.litertlm about 19 hours ago
  • README.md
    2.55 kB
    Add README.md model card about 19 hours ago
  • pocket_tts_de_int8.litertlm
    126 MB
    xet
    Upload pocket_tts_de_int8.litertlm about 19 hours ago
  • pocket_tts_en_int8.litertlm
    163 MB
    xet
    Upload pocket_tts_en_int8.litertlm about 19 hours ago
  • pocket_tts_es_int8.litertlm
    126 MB
    xet
    Upload pocket_tts_es_int8.litertlm about 19 hours ago
  • pocket_tts_fr_int8.litertlm
    127 MB
    xet
    Upload pocket_tts_fr_int8.litertlm about 19 hours ago
  • pocket_tts_int8.litertlm
    760 MB
    xet
    Upload pocket_tts_int8.litertlm about 19 hours ago
  • pocket_tts_it_int8.litertlm
    125 MB
    xet
    Upload pocket_tts_it_int8.litertlm about 19 hours ago
  • pocket_tts_nl_int8.litertlm
    125 MB
    xet
    Upload pocket_tts_nl_int8.litertlm about 19 hours ago
  • pocket_tts_pt_int8.litertlm
    126 MB
    xet
    Upload pocket_tts_pt_int8.litertlm about 19 hours ago