File size: 1,349 Bytes
a31c6d0
 
 
 
 
 
1f46cf7
a31c6d0
 
 
 
 
1f46cf7
a31c6d0
ea79f5f
a31c6d0
ea79f5f
a31c6d0
ea79f5f
a31c6d0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1f46cf7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
title: Malayalam Text  AI Voice (Free)
emoji: 🗣️
colorFrom: indigo
colorTo: green
sdk: gradio
sdk_version: 6.1.0
app_file: app.py
runtime: python
pinned: false
license: mit
models:
- ai4bharat/vits_rasa_13
---

# മലയാളം Text → AI Voice (Free)

A free web app (Hugging Face Space, Gradio) that converts **Malayalam** text to speech using the **AI4Bharat VITS** model.

## Features
- **Multiple voice styles** (ALEXA, NEWS, BOOK, etc.)
- **Prosody controls**: Speaking rate & pitch (approximate via resampling)
- **Batch paragraphs**: Split text by blank line → one file per paragraph × style
- **WAV + MP3** output (MP3 requires `ffmpeg`)

## Deploy / Run
1. Ensure the files below are present in the repository:
   - `app.py`
   - `requirements.txt`
   - `packages.txt` *(contains `ffmpeg` for MP3)*
   - `LICENSE`
2. Accept access to the gated model **ai4bharat/vits_rasa_13** on its model page (click “Access repository / Agree”).
3. If you still get permission errors, add a read token as a Space secret:
   - **Settings → Variables and secrets → New secret**
   - Name: `HF_TOKEN` | Value: your Hugging Face read token
4. Restart the Space.

## Notes
- Prosody controls are approximate (client-side resampling). For true SSML prosody, consider Azure AI Speech Malayalam neural voice (ml-IN-SobhanaNeural).
``