Alxalexandru/romanian-tts-stt
0
Romanian TTS/STT Application
A Gradio web application for Romanian language speech processing:
- Speech to Text (STT): Transcribe Romanian audio using Whisper
- Speaker Diarization: Identify different speakers in audio
- Text to Speech (TTS): Generate Romanian speech from text
Features
Speech to Text
Upload an audio file or record using your microphone to transcribe Romanian speech. Uses the gigant/whisper-medium-romanian model with 4.73% WER.
Speaker Diarization
Identify who spoke when in multi-speaker audio. Combines speaker detection with transcription to produce labeled output. Uses pyannote/speaker-diarization-3.1.
Text to Speech
Convert Romanian text to natural-sounding speech. Uses facebook/mms-tts-ron for fast CPU inference.
Setup
Local Development
- Install dependencies:
pip install -r requirements.txt- Set your Hugging Face token (required for diarization):
export HF_TOKEN=your_token_here- Run the application:
python app.pyHugging Face Spaces
- Create a new Space with Gradio SDK
- Upload all files
- Add
HF_TOKENas a secret in Space settings - The app will start automatically
Models
Requirements
- Python 3.9+
- See
requirements.txtfor full dependency list - Hugging Face token with access to pyannote models (for diarization)
