Voxi Lite 0.4.1: Hindi front-end fixes (nasal vowels before v/s/sh/h/y/r/l, closing punctuation); AI4Bharat IndicVoices-R Hindi CER 0.087 -> 0.084; weights unchanged
Browse files- CHANGELOG.md +12 -0
- MANIFEST.json +6 -6
- README.md +3 -3
- config.json +2 -2
- samples/en_arjun.wav +1 -1
- samples/en_payal.wav +1 -1
- samples/en_sanjana.wav +1 -1
- samples/en_vishnu.wav +1 -1
- samples/hi_arjun.wav +1 -1
- samples/hi_payal.wav +1 -1
- samples/hi_sanjana.wav +1 -1
- samples/hi_vishnu.wav +1 -1
- samples/hinglish_arjun.wav +1 -1
- samples/hinglish_payal.wav +1 -1
- samples/hinglish_sanjana.wav +1 -1
- samples/hinglish_vishnu.wav +1 -1
- samples/numbers_en_arjun.wav +1 -1
- samples/numbers_hi_payal.wav +1 -1
- samples/numbers_ta_payal.wav +1 -1
- samples/phone_8k_en_arjun.wav +1 -1
- samples/phone_8k_hi_payal.wav +1 -1
- samples/phone_8k_ta_payal.wav +0 -0
- samples/style_arjun_happy_en.wav +1 -1
- samples/style_arjun_happy_hi.wav +1 -1
- samples/style_arjun_happy_ta.wav +1 -1
- samples/style_arjun_sad-soft_en.wav +1 -1
- samples/style_arjun_sad-soft_hi.wav +1 -1
- samples/style_arjun_sad-soft_ta.wav +1 -1
- samples/style_payal_happy_en.wav +1 -1
- samples/style_payal_happy_hi.wav +1 -1
- samples/style_payal_happy_ta.wav +1 -1
- samples/style_payal_sad-soft_en.wav +1 -1
- samples/style_payal_sad-soft_hi.wav +1 -1
- samples/style_payal_sad-soft_ta.wav +1 -1
- samples/ta_arjun.wav +1 -1
- samples/ta_payal.wav +1 -1
- samples/ta_sanjana.wav +1 -1
- samples/ta_vishnu.wav +1 -1
- samples/tanglish_arjun.wav +1 -1
- samples/tanglish_payal.wav +1 -1
- samples/tanglish_sanjana.wav +1 -1
- samples/tanglish_vishnu.wav +1 -1
- voxi.py +21 -0
CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
| 1 |
# Changelog
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
## 0.4.0 (2026-11-10)
|
| 4 |
|
| 5 |
- **English voices with American and British accents:**
|
|
|
|
| 1 |
# Changelog
|
| 2 |
|
| 3 |
+
## 0.4.1 (2026-11-11)
|
| 4 |
+
|
| 5 |
+
- **Hindi pronunciation fix (nasal vowels):** espeak-ng adds a stray `n` after a nasal vowel before v, s, sh, h, y, r
|
| 6 |
+
and l (गाँव came out as ɡˈãnʋ, माँसाहारी as mˈãnsaːhˌaːɾi). Voxi now removes it. Before stops (पाँच) the `n` is real
|
| 7 |
+
and stays.
|
| 8 |
+
- **Final punctuation:** a sentence with no closing mark gets one (`।` for Hindi, `.` otherwise). Without it the
|
| 9 |
+
writer sometimes dropped or garbled the last word.
|
| 10 |
+
- `VOXI_FIXES=""` turns both fixes off, for A/B tests.
|
| 11 |
+
- **Measured** (Whisper large-v3 character error rate, payal): AI4Bharat IndicVoices-R Hindi test lines 0.087 → 0.084;
|
| 12 |
+
Tamil, English, Hinglish and the phone-agent lines unchanged.
|
| 13 |
+
- No weight changes: the writer, voice packs and decoder are the same as 0.4.0.
|
| 14 |
+
|
| 15 |
## 0.4.0 (2026-11-10)
|
| 16 |
|
| 17 |
- **English voices with American and British accents:**
|
MANIFEST.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
{
|
| 2 |
"name": "voxi-lite",
|
| 3 |
-
"version": "0.4.
|
| 4 |
-
"onnx_logmel_l1": 0.
|
| 5 |
"files": {
|
| 6 |
".dockerignore": "254b095cf3ce7c01084350dbd03c9524ab82c6abe906dd9fabd5a86639687966",
|
| 7 |
"banner.png": "cb4f4e38c924c943245af93d971764baa17b4e8d4d1d3c58c27f413e3e982d23",
|
| 8 |
-
"CHANGELOG.md": "
|
| 9 |
-
"config.json": "
|
| 10 |
"decoder.safetensors": "4a5e3d638d4ee403365d05883c26745463407cb993f32b0b9929d674b956c5e2",
|
| 11 |
"Dockerfile": "6b9ffdeb7334f3ad8fac73b9a83d943598a830080af20bdc662ac7cd9b506c22",
|
| 12 |
"fast/decoder.onnx": "dde72786f10785304810659fb51e007e3ac5e2708122ac8f5e3ead45b616885c",
|
|
@@ -55,7 +55,7 @@
|
|
| 55 |
"mithi_tts/tts.py": "b8b285691d90951ec414b1b8754c2f856dd2a7dfae3ba2de20ef7917fd7b17cb",
|
| 56 |
"mithi_tts/vocab.json": "51644d6993cbaa1ffa552cc73e4478218cf17ec5e5df7c5d12da38882425182a",
|
| 57 |
"NOTICE": "2aeeb7c5c6975161d8a9ccb0cfc81b6efe39322ff892b71d1680b1fd3fa35a63",
|
| 58 |
-
"README.md": "
|
| 59 |
"requirements.txt": "40b81818a5d13775c42ee25883d856b217d60e3ede33cbe0e59d1305fd529904",
|
| 60 |
"server.py": "7f238e27d5a554aca9862c8c18f4206b3191b8c5ee2e0f34a9dc1342e37e5aae",
|
| 61 |
"tests/check_release.py": "9e9f290d31dbf9cc77702d610b30702b0d434f7c22acf4c682c593eea57c0a72",
|
|
@@ -63,7 +63,7 @@
|
|
| 63 |
"tests/latency.py": "95ca568b33f32a5352641ad10522db144d2e5a9cc975e05fa5e906e8aace8027",
|
| 64 |
"tests/test_server.py": "90beb58455d388aad6f33337f8af9bbd64206e5968dd4ccf175bcda358652d41",
|
| 65 |
"voices.safetensors": "873834845c3582abf54e715eaf247f75e3fc16830eb3c45ad7760aefa6dc9d34",
|
| 66 |
-
"voxi.py": "
|
| 67 |
"warm_phrases.json": "015fff2d4b1ef95191bb31f0d5d12e7e22b12e47aab5d45cc9c3e8bd1b479350",
|
| 68 |
"writer.safetensors": "ffa4dfc97e1284847bdfd4f3658308f62789b1f708829f0141b47673d86576fe",
|
| 69 |
"writer_arjun.safetensors": "6fa673cdace2f146f79596688f7b98a5cfd39a83b346b3ab7fe48fc7d9a94b04"
|
|
|
|
| 1 |
{
|
| 2 |
"name": "voxi-lite",
|
| 3 |
+
"version": "0.4.1",
|
| 4 |
+
"onnx_logmel_l1": 0.0385,
|
| 5 |
"files": {
|
| 6 |
".dockerignore": "254b095cf3ce7c01084350dbd03c9524ab82c6abe906dd9fabd5a86639687966",
|
| 7 |
"banner.png": "cb4f4e38c924c943245af93d971764baa17b4e8d4d1d3c58c27f413e3e982d23",
|
| 8 |
+
"CHANGELOG.md": "cc5bb5f9c0f3e89cb92ee2f068462b2fd805647b9d122a076955445b3b3488f1",
|
| 9 |
+
"config.json": "71d2a0811fd8f68c117232c58603d47c0e91d7031dc1cf1e30a4e5e62a4499d5",
|
| 10 |
"decoder.safetensors": "4a5e3d638d4ee403365d05883c26745463407cb993f32b0b9929d674b956c5e2",
|
| 11 |
"Dockerfile": "6b9ffdeb7334f3ad8fac73b9a83d943598a830080af20bdc662ac7cd9b506c22",
|
| 12 |
"fast/decoder.onnx": "dde72786f10785304810659fb51e007e3ac5e2708122ac8f5e3ead45b616885c",
|
|
|
|
| 55 |
"mithi_tts/tts.py": "b8b285691d90951ec414b1b8754c2f856dd2a7dfae3ba2de20ef7917fd7b17cb",
|
| 56 |
"mithi_tts/vocab.json": "51644d6993cbaa1ffa552cc73e4478218cf17ec5e5df7c5d12da38882425182a",
|
| 57 |
"NOTICE": "2aeeb7c5c6975161d8a9ccb0cfc81b6efe39322ff892b71d1680b1fd3fa35a63",
|
| 58 |
+
"README.md": "84b703c3213efacf0d3dc396922b37c4374366163825024fbc57e3f7653c154e",
|
| 59 |
"requirements.txt": "40b81818a5d13775c42ee25883d856b217d60e3ede33cbe0e59d1305fd529904",
|
| 60 |
"server.py": "7f238e27d5a554aca9862c8c18f4206b3191b8c5ee2e0f34a9dc1342e37e5aae",
|
| 61 |
"tests/check_release.py": "9e9f290d31dbf9cc77702d610b30702b0d434f7c22acf4c682c593eea57c0a72",
|
|
|
|
| 63 |
"tests/latency.py": "95ca568b33f32a5352641ad10522db144d2e5a9cc975e05fa5e906e8aace8027",
|
| 64 |
"tests/test_server.py": "90beb58455d388aad6f33337f8af9bbd64206e5968dd4ccf175bcda358652d41",
|
| 65 |
"voices.safetensors": "873834845c3582abf54e715eaf247f75e3fc16830eb3c45ad7760aefa6dc9d34",
|
| 66 |
+
"voxi.py": "3677cde4369b6a92e35479c4d2354caf26282a6bca6efc6d9b1f13a0c705748e",
|
| 67 |
"warm_phrases.json": "015fff2d4b1ef95191bb31f0d5d12e7e22b12e47aab5d45cc9c3e8bd1b479350",
|
| 68 |
"writer.safetensors": "ffa4dfc97e1284847bdfd4f3658308f62789b1f708829f0141b47673d86576fe",
|
| 69 |
"writer_arjun.safetensors": "6fa673cdace2f146f79596688f7b98a5cfd39a83b346b3ab7fe48fc7d9a94b04"
|
README.md
CHANGED
|
@@ -8,7 +8,7 @@ tags: [text-to-speech, indic, cpu, phone-agent, streaming]
|
|
| 8 |
|
| 9 |

|
| 10 |
|
| 11 |
-
# Voxi Lite 0.4.
|
| 12 |
|
| 13 |
CPU text-to-speech for Indian phone-agent calls, with streaming. Voxi Lite is built on
|
| 14 |
[Mithi v1 Flash](https://huggingface.co/Oomni/mithi-v1-flash) (Apache-2.0) with our own fine-tuned prosody writers
|
|
@@ -166,8 +166,8 @@ on the as-sent text: Voxi Lite 2 of 140, Mithi 4 of 140, MMS-TTS 8 of 80.
|
|
| 166 |
## Run the server
|
| 167 |
|
| 168 |
```bash
|
| 169 |
-
docker build -t voxi-lite:0.4.
|
| 170 |
-
docker run --rm -p 8080:8080 -e VOXI_THREADS=4 voxi-lite:0.4.
|
| 171 |
# or without Docker (Python 3.11):
|
| 172 |
pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt
|
| 173 |
VOXI_WARM=warm_phrases.json uvicorn server:app --host 0.0.0.0 --port 8080
|
|
|
|
| 8 |
|
| 9 |

|
| 10 |
|
| 11 |
+
# Voxi Lite 0.4.1
|
| 12 |
|
| 13 |
CPU text-to-speech for Indian phone-agent calls, with streaming. Voxi Lite is built on
|
| 14 |
[Mithi v1 Flash](https://huggingface.co/Oomni/mithi-v1-flash) (Apache-2.0) with our own fine-tuned prosody writers
|
|
|
|
| 166 |
## Run the server
|
| 167 |
|
| 168 |
```bash
|
| 169 |
+
docker build -t voxi-lite:0.4.1 .
|
| 170 |
+
docker run --rm -p 8080:8080 -e VOXI_THREADS=4 voxi-lite:0.4.1
|
| 171 |
# or without Docker (Python 3.11):
|
| 172 |
pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt
|
| 173 |
VOXI_WARM=warm_phrases.json uvicorn server:app --host 0.0.0.0 --port 8080
|
config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"name": "voxi-lite",
|
| 3 |
-
"version": "0.4.
|
| 4 |
"sample_rate": 24000,
|
| 5 |
"languages": [
|
| 6 |
"hi",
|
|
@@ -137,6 +137,6 @@
|
|
| 137 |
"version": "1.0.0",
|
| 138 |
"license": "Apache-2.0",
|
| 139 |
"ours": "prosody writer (fine-tuned: payal voice, Hindi phone-agent numbers, emotion styles from AI4Bharat Rasa) and voice packs (payal, its emotion textures)",
|
| 140 |
-
"unchanged": "
|
| 141 |
}
|
| 142 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"name": "voxi-lite",
|
| 3 |
+
"version": "0.4.1",
|
| 4 |
"sample_rate": 24000,
|
| 5 |
"languages": [
|
| 6 |
"hi",
|
|
|
|
| 137 |
"version": "1.0.0",
|
| 138 |
"license": "Apache-2.0",
|
| 139 |
"ours": "prosody writer (fine-tuned: payal voice, Hindi phone-agent numbers, emotion styles from AI4Bharat Rasa) and voice packs (payal, its emotion textures)",
|
| 140 |
+
"unchanged": "Mithi's decoder (Kokoro architecture, fine-tuned by Oomni), indic-bert word encoder"
|
| 141 |
}
|
| 142 |
}
|
samples/en_arjun.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 328844
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8dad4bd6ade08f93896e1079acc235995d7875653bd6c8b81162dd446b13fcc6
|
| 3 |
size 328844
|
samples/en_payal.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 346844
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0182ac40a891a7a6c86fd467020f04bde08a8e321e8d5ebeeca3ee66f45da11a
|
| 3 |
size 346844
|
samples/en_sanjana.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 361244
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8e6d708745dad97ac0dc3329a96dff19b2390a9e946552eb66fda14a1373c4f5
|
| 3 |
size 361244
|
samples/en_vishnu.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 340844
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6a0542ee08c75e8ea95493b257e353c3b88912a62775ca788900637d7d121e7
|
| 3 |
size 340844
|
samples/hi_arjun.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 336044
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c68df6b1a0cb7fd5f3899c6d5a3bb98716087a75629514028d25f99f3f36c908
|
| 3 |
size 336044
|
samples/hi_payal.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 336044
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf267473aacf5dce86baea6d7f7953fb880f471cf83ac5179cf5846a1b4eeb45
|
| 3 |
size 336044
|
samples/hi_sanjana.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 344444
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c2b0602069ad9c819cfb5529ae515ff67bd7e56d3ca5c301a160fdeacd7c885d
|
| 3 |
size 344444
|
samples/hi_vishnu.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 331244
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8802c5419a0fa7fa03855b5e5acffd6f5ee7c0531dda06e21e5586a64ca9f347
|
| 3 |
size 331244
|
samples/hinglish_arjun.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 230444
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98f4d20d70998b45e531b0ea7ae90be1d1b9c583e4828e96e3113c240f915f06
|
| 3 |
size 230444
|
samples/hinglish_payal.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 236444
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:809ec66a6acc4b9ac9f7ea4ec0b615e2e2c3d9f8f29b9958ee81fa85c251f2b7
|
| 3 |
size 236444
|
samples/hinglish_sanjana.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 267644
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2d52f9a375166cea8e208b609052e5bfa9c2e61e2e678541c781a5837cef6da
|
| 3 |
size 267644
|
samples/hinglish_vishnu.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 249644
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e20442136feca7328fe1493eb8f2dc95bfbd600e4b871bc0b854ea1a156153ed
|
| 3 |
size 249644
|
samples/numbers_en_arjun.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 783644
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f128c93c1a26bc0f7252efb91a5d82f0aeb7daa8f071dc613f310ce9e8aa045
|
| 3 |
size 783644
|
samples/numbers_hi_payal.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 686444
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:41e849fd7a493e4b66bb41df135dc379fe5cdf32e2620368678861cf58c618a9
|
| 3 |
size 686444
|
samples/numbers_ta_payal.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 858044
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6bc810c9609eec25a2f0b2d081aa7261fcc780570cc84d990f20076ed2ca4456
|
| 3 |
size 858044
|
samples/phone_8k_en_arjun.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 109644
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53f43d40682d7a90263dfa0e29c7150f00672d9e8deb23c454c22058aaf16cdc
|
| 3 |
size 109644
|
samples/phone_8k_hi_payal.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 112044
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d94b9b4af36c1c659298ec60143f5a66cf4a23c56ab76c5fcba7f0828401018
|
| 3 |
size 112044
|
samples/phone_8k_ta_payal.wav
CHANGED
|
Binary files a/samples/phone_8k_ta_payal.wav and b/samples/phone_8k_ta_payal.wav differ
|
|
|
samples/style_arjun_happy_en.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 240044
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c9e2f3492def2155ec5efe36ada0e096c5c3f36c3132be81237eb319e5160653
|
| 3 |
size 240044
|
samples/style_arjun_happy_hi.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 232844
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9eac6356175a3bead452f6ac794058900196e91be25c8ef54efb1eb0795e96b0
|
| 3 |
size 232844
|
samples/style_arjun_happy_ta.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 235244
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9f666e69f3e411d70b5aaaee0f2858374b050a71a86a44ad36b9c62462b4ae51
|
| 3 |
size 235244
|
samples/style_arjun_sad-soft_en.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 181244
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:837d5353a630279b89f597e00817d13dd4172c2d22aa6303ed6cf560da9189e0
|
| 3 |
size 181244
|
samples/style_arjun_sad-soft_hi.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 183644
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65c91ca3ab7c855781651bf6ac67b6b0a9f87d6d0e7d69740415ed415dcf729b
|
| 3 |
size 183644
|
samples/style_arjun_sad-soft_ta.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 200444
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5f721a6b3d7f257175eb2f3113698b909b1798ba2e6628583a7a010d3696661
|
| 3 |
size 200444
|
samples/style_payal_happy_en.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 253244
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eeeacc68cc3341a26c8c0a036e9f2bbd48dd64b6b6ea82ba61a884e14bc64389
|
| 3 |
size 253244
|
samples/style_payal_happy_hi.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 271244
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:11d9c621f57d8cf1170dfa6b2e197d05398a5a582060afa4754e16f71b9c93e8
|
| 3 |
size 271244
|
samples/style_payal_happy_ta.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 252044
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd5a3a9c614a0d399c6e6ab2fd46f3201e230261091af3513a697b4d8363ca72
|
| 3 |
size 252044
|
samples/style_payal_sad-soft_en.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 195644
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fbf46f1a50b4c61d4a36c111436f9dc338cab42c7c0d46d808eda6f9e393134b
|
| 3 |
size 195644
|
samples/style_payal_sad-soft_hi.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 205244
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:130bfd69eb302295ee305338fe1af335ec92fd76dd8d7af3f70210b122a7a94d
|
| 3 |
size 205244
|
samples/style_payal_sad-soft_ta.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 210044
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2e0bda5f193fd179392090dee74bf2ff147ffd18373b94b4d7168400a83d946
|
| 3 |
size 210044
|
samples/ta_arjun.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 232844
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75431b183914206ca0b16026444b93eabf5316a5bf2f7a58c77980b74ffd2e13
|
| 3 |
size 232844
|
samples/ta_payal.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 248444
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c4c6c3de820022b3acb51611a8b7717ecbd8e70b5e721db7c93ae0e5598f522
|
| 3 |
size 248444
|
samples/ta_sanjana.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 256844
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:362a8f7e6361b7c6f706bac896ce6cf39f8a66f9f79c4d75a6d42583d003ce46
|
| 3 |
size 256844
|
samples/ta_vishnu.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 243644
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34a567cf2a156dd0930b7d960d0096900584a46420cb561f018aeca751af1d7d
|
| 3 |
size 243644
|
samples/tanglish_arjun.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 228044
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:83f036e66a31b5c34f0c250cac6be70ec69a64658046bcd79f5a70c01fccf1ff
|
| 3 |
size 228044
|
samples/tanglish_payal.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 223244
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:37b0e622fdb052ce88fda1af77926d33c74a0cee07f6fa92d7d323f91c281e79
|
| 3 |
size 223244
|
samples/tanglish_sanjana.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 256844
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a91c2f61de6182ccb09dd48088c2b78dfaec1b85692bd2008e83758754ff1606
|
| 3 |
size 256844
|
samples/tanglish_vishnu.wav
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 236444
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3aaf5ea9aa369a8c0eefcb510482393ab13761195039fbcde373dc4cdb00676b
|
| 3 |
size 236444
|
voxi.py
CHANGED
|
@@ -20,6 +20,7 @@ Tamil + English, read in Mithi's Tamil mode) or another Mithi language
|
|
| 20 |
"hinglish" (front/hinglish_front.py)
|
| 21 |
* Mithi's own normaliser, G2P, prosody writer and decoder (fast path: NumPy writer + ONNX decoder)
|
| 22 |
"""
|
|
|
|
| 23 |
import re
|
| 24 |
import sys
|
| 25 |
import unicodedata
|
|
@@ -30,6 +31,20 @@ import numpy as np
|
|
| 30 |
HERE = Path(__file__).resolve().parent
|
| 31 |
SR = 24000
|
| 32 |
MAX_CHARS = 2000
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
MITHI_LANGS = {"hi", "en", "bn", "gu", "kn", "ml", "mr", "or", "pa", "ta", "te"}
|
| 34 |
SENT_END = re.compile(r"(?<=[.?!।॥])\s+")
|
| 35 |
CLAUSE_END = re.compile(r"(?<=[,;:])\s+")
|
|
@@ -190,6 +205,10 @@ class VoxiLite:
|
|
| 190 |
torch.set_num_threads(threads)
|
| 191 |
from mithi_tts import Mithi
|
| 192 |
self.tts = Mithi(str(model_dir), device="cpu")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 193 |
from hinglish_front import digits_en, hinglish
|
| 194 |
from numbers_front import speak
|
| 195 |
from tanglish_front import tanglish
|
|
@@ -240,6 +259,8 @@ class VoxiLite:
|
|
| 240 |
if len(text) > MAX_CHARS:
|
| 241 |
raise ValueError(f"text longer than {MAX_CHARS} characters; split it upstream")
|
| 242 |
text = clean(text)
|
|
|
|
|
|
|
| 243 |
if lang == "hinglish":
|
| 244 |
return self._hinglish(text), "hi"
|
| 245 |
if lang == "tanglish":
|
|
|
|
| 20 |
"hinglish" (front/hinglish_front.py)
|
| 21 |
* Mithi's own normaliser, G2P, prosody writer and decoder (fast path: NumPy writer + ONNX decoder)
|
| 22 |
"""
|
| 23 |
+
import os
|
| 24 |
import re
|
| 25 |
import sys
|
| 26 |
import unicodedata
|
|
|
|
| 31 |
HERE = Path(__file__).resolve().parent
|
| 32 |
SR = 24000
|
| 33 |
MAX_CHARS = 2000
|
| 34 |
+
# Front-end fixes (2026-11-10, from the AI4Bharat benchmark failures); VOXI_FIXES="" turns them off for A/B tests
|
| 35 |
+
FIXES = {f for f in os.environ.get("VOXI_FIXES", "nasal,endpunct").split(",") if f}
|
| 36 |
+
NASAL_N = re.compile(r"(̃ː?)n(?=[ʋsʃhjɾl])") # espeak hi: nasal vowel + stray n before v/s/sh/h/y/r/l
|
| 37 |
+
END_MARK = {"hi": "।", "ta": ".", "en": ".", "hinglish": ".", "tanglish": "."}
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def fix_nasal(phonemize_hi):
|
| 41 |
+
"""espeak-ng writes गाँव (village) as ɡˈãnʋ: an n after the nasal vowel that a speaker does not say
|
| 42 |
+
(heard as "gaaun"); before stops (पाँच -> pãnc) the n is real and stays."""
|
| 43 |
+
def wrapped(chunk):
|
| 44 |
+
return NASAL_N.sub(lambda m: m.group(1), phonemize_hi(chunk))
|
| 45 |
+
return wrapped
|
| 46 |
+
|
| 47 |
+
|
| 48 |
MITHI_LANGS = {"hi", "en", "bn", "gu", "kn", "ml", "mr", "or", "pa", "ta", "te"}
|
| 49 |
SENT_END = re.compile(r"(?<=[.?!।॥])\s+")
|
| 50 |
CLAUSE_END = re.compile(r"(?<=[,;:])\s+")
|
|
|
|
| 205 |
torch.set_num_threads(threads)
|
| 206 |
from mithi_tts import Mithi
|
| 207 |
self.tts = Mithi(str(model_dir), device="cpu")
|
| 208 |
+
if "nasal" in FIXES:
|
| 209 |
+
from mithi_tts import frontend
|
| 210 |
+
if not getattr(frontend._phonemize_hi, "voxi_fixed", False):
|
| 211 |
+
frontend._phonemize_hi = fix_nasal(frontend._phonemize_hi); frontend._phonemize_hi.voxi_fixed = True
|
| 212 |
from hinglish_front import digits_en, hinglish
|
| 213 |
from numbers_front import speak
|
| 214 |
from tanglish_front import tanglish
|
|
|
|
| 259 |
if len(text) > MAX_CHARS:
|
| 260 |
raise ValueError(f"text longer than {MAX_CHARS} characters; split it upstream")
|
| 261 |
text = clean(text)
|
| 262 |
+
if "endpunct" in FIXES and text and re.search(r"\w$", text):
|
| 263 |
+
text += END_MARK.get(lang, ".") # without a final mark the writer sometimes drops or garbles the last word
|
| 264 |
if lang == "hinglish":
|
| 265 |
return self._hinglish(text), "hi"
|
| 266 |
if lang == "tanglish":
|