Indri is a series of audio models that can do TTS, ASR, and audio continuation. This is the medium sized model (350M) in our series and supports TTS tasks in 2 languages:
Please read our blog
here for more technical details on how it was built.
Use the code below to get started with the model. Pipelines are the best way to get started with the model.
1import torch
2import torchaudio
3from transformers import pipeline
4
5model_id = '11mlabs/indri-0.1-350m-tts'
6task = 'indri-tts'
7
8pipe = pipeline(
9 task,
10 model=model_id,
11 device=torch.device('cuda:0'), # Update this based on your hardware,
12 trust_remote_code=True
13)
14
15output = pipe(['Hi, my name is Indri and I like to talk.'], speaker = '[spkr_63]')
16
17torchaudio.save('output.wav', output[0]['audio'][0], sample_rate=24000)
1git clone https://github.com/cmeraki/indri.git
2cd indri
3pip install -r requirements.txt
4
5# Install ffmpeg (for Mac/Windows, refer here: https://www.ffmpeg.org/download.html)
6sudo apt update -y
7sudo apt upgrade -y
8sudo apt install ffmpeg -y
9
10python -m inference --model_path 11mlabs/indri-0.1-350m-tts --device cuda:0 --port 8000
1@misc{indri-multimodal-alm,
2 author = {11mlabs},
3 title = {Indri: Multimodal audio language model},
4 year = {2024},
5 publisher = {GitHub},
6 journal = {GitHub Repository},
7 howpublished = {\url{https://github.com/cmeraki/indri}},
8 email = {compute@merakilabs.com}
9}
1@techreport{kyutai2024moshi,
2 title={Moshi: a speech-text foundation model for real-time dialogue},
3 author={Alexandre D\'efossez and Laurent Mazar\'e and Manu Orsini and
4 Am\'elie Royer and Patrick P\'erez and Herv\'e J\'egou and Edouard Grave and Neil Zeghidour},
5 year={2024},
6 eprint={2410.00037},
7 archivePrefix={arXiv},
8 primaryClass={eess.AS},
9 url={https://arxiv.org/abs/2410.00037},
10}
1@misc{radford2022whisper,
2 doi = {10.48550/ARXIV.2212.04356},
3 url = {https://arxiv.org/abs/2212.04356},
4 author = {Radford, Alec and Kim, Jong Wook and Xu, Tao and Brockman, Greg and McLeavey, Christine and Sutskever, Ilya},
5 title = {Robust Speech Recognition via Large-Scale Weak Supervision},
6 publisher = {arXiv},
7 year = {2022},
8 copyright = {arXiv.org perpetual, non-exclusive license}
9}
1@misc{Silero VAD,
2 author = {Silero Team},
3 title = {Silero VAD: pre-trained enterprise-grade Voice Activity Detector (VAD), Number Detector and Language Classifier},
4 year = {2024},
5 publisher = {GitHub},
6 journal = {GitHub repository},
7 howpublished = {\url{https://github.com/snakers4/silero-vad}},
8 commit = {insert_some_commit_here},
9 email = {hello@silero.ai}
10}