Downloads · 30 days
5
8% of all-time downloads
OsamaBinLikhon/megha_bangla
megha_bangla is a machine learning model from OsamaBinLikhon. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This is a fine-tuned Bangla Text-to-Speech (TTS) model based on Microsoft's SpeechT5 architecture.
Downloads · 30 days
5
8% of all-time downloads
All-time downloads
60
Public
Parameters
144M
578 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors578 MB · 100%
From the Hugging Face model README
This is a fine-tuned Bangla Text-to-Speech (TTS) model based on Microsoft's SpeechT5 architecture.
from transformers import SpeechT5Processor, SpeechT5ForTextToSpeech, SpeechT5HifiGan
import torch
import soundfile as sf
# Load model and processor
processor = SpeechT5Processor.from_pretrained("your-username/megha-bangla-tts")
model = SpeechT5ForTextToSpeech.from_pretrained("your-username/megha-bangla-tts")
vocoder = SpeechT5HifiGan.from_pretrained("microsoft/speecht5_hifigan")
# Generate speech
text = "আমি বাংলা ভাষায় কথা বলতে পারি।"
inputs = processor(text=text, return_tensors="pt")
with torch.no_grad():
speaker_embeddings = torch.zeros((1, model.config.speaker_embedding_dim))
speech = model.generate_speech(inputs["input_ids"], speaker_embeddings, vocoder=vocoder)
# Save output
sf.write("output.wav", speech.cpu().numpy(), samplerate=16000)
MIT License
If you use this model, please cite:
@misc{megha-bangla-tts,
author = {Megha Model Team},
title = {Megha Bangla TTS - Fine-tuned SpeechT5 Model},
year = {2026},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/your-repo/megha-bangla-tts}}
}