Description
MahaTTS, with Maha signifying 'Great' in Sanskrit, is a Text to Speech Model developed by Dubverse.ai. We drew inspiration from the tortoise-tts model, but our model uniquely utilizes seamless M4t wav2vec2 for semantic token extraction. As this specific variant of wav2vec2 is trained on multilingual data, it enhances our model's scalability across different languages.
We are providing access to pretrained model checkpoints, which are ready for inference and available for commercial use.
Updates
2023-11-13
- MahaTTS Released! Open sourced Smolie
- Community and access to new features on our Discord
Features
- Multilinguality (coming soon)
- Realistic Prosody and intonation
- Multi-voice capabilities
Installation
pip install git+https://github.com/dubverse-ai/MahaTTS.git
pip install maha-tts
api usage
!gdown --folder 1-HEc3V4f6X93I8_IfqExLfL3s8I_dXGZ -q # download speakers ref files
import torch,glob
from maha_tts import load_models,infer_tts
from scipy.io.wavfile import write
from IPython.display import Audio,display
# PATH TO THE SPEAKERS WAV FILES
speaker =['/content/infer_ref_wavs/2272_152282_000019_000001/',
'/content/infer_ref_wavs/2971_4275_000049_000000/',
'/content/infer_ref_wavs/4807_26852_000062_000000/',
'/content/infer_ref_wavs/6518_66470_000014_000002/']
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
diff_model,ts_model,vocoder,diffuser = load_models('Smolie',device)
print('Using:',device)
speaker_num = 0 # @param ["0", "1", "2", "3"] {type:"raw"}
text = "I freakin love how Elon came to life the moment they started talking about gaming and specifically diablo, you can tell that he didn't want that part of the discussion to end, while Lex to move on to the next subject! Once a true gamer, always a true gamer!" # @param {type:"string"}
ref_clips = glob.glob(speaker[speaker_num]+'*.wav')
audio,sr = infer_tts(text,ref_clips,diffuser,diff_model,ts_model,vocoder)
write('/content/test.wav',sr,audio)
Roadmap
- Smolie - eng (trained on 200 hours of LibriTTS)
- Smolie - indic (Train on Indian languages, coming soon)
- Optimizations for inference (looking for contributors, check issues)
Some Generated Samples
0 -> "I seriously laughed so much hahahaha (seals with headphones...) and appreciate both the interviewer and the subject. Major respect for two extraordinary humans - and in this time of gratefulness, I'm thankful for you both and this forum!"
1 -> "I freakin love how Elon came to life the moment they started talking about gaming and specifically diablo, you can tell that he didn't want that part of the discussion to end, while Lex to move on to the next subject! Once a true gamer, always a true gamer!"
2 -> "hello there! how are you?" (This one didn't work well, M1 model hallucinated)
3 -> "Who doesn't love a good scary story, something to send a chill across your skin in the middle of summer's heat or really, any other time? And this year, we're celebrating the two hundredth birthday of one of the most famous scary stories of all time: Frankenstein."
https://github.com/dubverse-ai/MahaTTS/assets/32906806/462ee134-5d8c-43c8-a425-3b6cabd2ff85
https://github.com/dubverse-ai/MahaTTS/assets/32906806/40c62402-7f65-4a35-b739-d8b8a082ad62
https://github.com/dubverse-ai/MahaTTS/assets/32906806/f0a9628c-ef81-450d-ab82-2f4c4626864e
https://github.com/dubverse-ai/MahaTTS/assets/32906806/15476151-72ea-410d-bcdc-177433df7884
Technical Details
Model Params
Model (Smolie) | Parameters | Model Type | Output |
---|---|---|---|
Text to Semantic (M1) | 69 M | Causal LM | 10,001 Tokens |
Semantic to MelSpec(M2) | 108 M | Diffusion | 2x 80x Melspec |
Hifi Gan Vocoder | 13 M | GAN | Audio Waveform |
Languages Supported
Language | Status |
---|---|
English (en) | β |
License
MahaTTS is licensed under the Apache 2.0 License.
π Appreciation
- tortoise-tts
- M4t Seamless AudioLM and many other ground-breaking papers that enabled the development of MahaTTS
- Diffusion training for training diffusion model
- Huggingface for related training and inference code