Joshuant commited on
Commit
a4302f0
·
verified ·
1 Parent(s): c42fd78

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 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.0",
4
- "onnx_logmel_l1": 0.0383,
5
  "files": {
6
  ".dockerignore": "254b095cf3ce7c01084350dbd03c9524ab82c6abe906dd9fabd5a86639687966",
7
  "banner.png": "cb4f4e38c924c943245af93d971764baa17b4e8d4d1d3c58c27f413e3e982d23",
8
- "CHANGELOG.md": "726d626efdec279995614f32674e6ca072a9fc39e510b09066b1982ddada891f",
9
- "config.json": "00efeb54cff408702188c3a4e8c6b6bf3dc680ba5dcd1b581f66b672cbea55ba",
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": "64c583b02736c652208182c7f6d7050d3c0d70c98da13841e87325c52547d65b",
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": "c96ceaea9944edcb2886948cea235f10466fed9ac6429984873ecbbadc8f9d43",
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
  ![Voxi Lite: Indian phone-agent voices that run on a CPU](https://huggingface.co/IOTEverythin/voxi-lite/resolve/main/banner.png)
10
 
11
- # Voxi Lite 0.4.0
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.0 .
170
- docker run --rm -p 8080:8080 -e VOXI_THREADS=4 voxi-lite:0.4.0
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
  ![Voxi Lite: Indian phone-agent voices that run on a CPU](https://huggingface.co/IOTEverythin/voxi-lite/resolve/main/banner.png)
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.0",
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": "Kokoro decoder, indic-bert word encoder, code"
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:78204ee3c37313aba1f52f7178f2513dd7a80d8e2f320df1a5a4b9def79922f6
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:c3cb9604018d1c1f1845c53c598d906b49cc4702fda1c3822fb908b33fe2153d
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:8c2af5201045a0c140ff1e26ee8246f8a05a5682e78965ab57d5c50faa0af326
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:f39eb2ba3e7e49631209e9220fb723b6613bb1352e7cd0ba42e3fad7fbe376e2
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:6da9b96612fe55e1a8d7f1776c1ee972babd7714852cbfb9a4b46b96899a669c
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:2f8124d48c38a955905f19f1d009cd079a983e9de875ec2d4849031bc5721bed
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:f5e68ae660d4ed7c8b6d41a5313ad16b46aefaaa6dd86915678a0c5b91d1dd7b
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:97170fc592df567af6e0489952857b8edd541ef23a0296bcb7de3cb271d34410
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:ab5161c13bd11e04ddd954d5af4a6d6e2690a62cd804d43c572a69a39fbb4cbd
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:57da0bbb1a85e81e8c85f5b5b2a725ccecac70c240d8a9f65ecf347d9c8fd2d5
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:5d25a1dc802d0169d8a25ea6d1b31bbfe649e9d0ff4c6e6af110943832846df0
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:a49c67c77853bbfd09d3cd202e028befea20379fd537c8017c6568a64c45f7ca
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:8137d4ee3e8b9b7ea599f5b015e23feae3ce2fb5438e7e8a1780e1a339e7619a
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:3cdf9275f4247cc1b47ba3c9d8b401c43d7a0afb2e754d9af164b030bf851983
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:46b6a63d323cf0b3267c616357b11fde2adfc20440c1fe144f287b273129cd05
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:08ba1c87d78dbe33471d5831c020974e1a956be496742e2472e429336b64e195
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:76f0b0931e96c07c917882d32486d8b7047ab691bc9004cdb8fb3f27fd103c95
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:1072a9336d4b114c7f0de9cff4f7c45488a14bb89b8f32b76f5ff3d22da223cf
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:441c406f51d3e833b2cbaaa1753b99de4ba96078a237a1f82545c8c1da8c133a
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:090125ae7d9a921bf94cd94434e30e2322373bde7e5f80e60aae8006aa176889
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:d2d037c2f647698737c9af17be98a480821a4c91b7abac0b84fdc94e2a0ed568
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:a71ff8e0a6e53f37be2fb1db2f1e0c3f6c39f67f2b0f0c47640932cadc2dd7f1
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:cf8de5927e58b2d4720049ccf8881b73bbf3ee61bacebf55f60748898c88c08d
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:187dc67d5d8df8a103a3364326913fe07aa4d4b99657dff4ff89081257a1f851
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:42f629458c15c8349995d87586b6e25a9fd43f1dfe5b4945cacceb3c09b7b4f2
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:1aa033dee9bb169791db7b8dcfc69ce90b4d81c4870a31ed4c7a1a5b252cbd38
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:ccb29589c0b6fb03aaf507a1466e3a17e915453bc6466fa8530ac5a5df311d16
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:7710bb58efc925e90de8b35783fe5df8c4f9f25666ed52dd3d46e5bacee40884
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:36bb86c5b9f480c549743e6754b105cc8cc36cca92bca080aac278584dada0b4
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:cc559246831fb494aed9a24b1698d822664e3d3d1c6f8944400be74ccc8b4e57
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:bf227f9a60c01a76442f5be74702d5900dbba8cb3035a06df540aaaec8021937
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:6bdef4eae1d0d2f6e095853e36a430a0bf06cf0e86ec58eddba1ecf01b5f23ed
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:38bfeb0ba508841ace1559098f05cdc6a2af4f721ecc36c02ea0387eb567b1e8
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:bfd978dfc01b58fa8ebb39db7e92826a0810002adbd1aef20233acff136cbbe3
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:8213145f74c27e821f2d0795e58a670aa7438fa3607acc0e06019ecd8edd925e
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:22f3495489f573e632295334194a91a1d398ed704259a27ceebc2f7773e03a73
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:c766edc4ce216b5aa9eab42e9afbf0c917fe24b84c4d295b31f5a87efc79594d
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":