Commit Graph
52 Commits
Author SHA1 Message Date
debpalash b81b9d3ff0 fix(train-4): keep whole space-grouped English thousands run (#3656 follow-up) 2026-11-08 13:05:08 +05:30
debpalash 0c112c10d6 Merge train/2 into the train
# Conflicts:
#	tests/backend/engines/test_omnivoice_gguf.py
2026-11-08 09:48:50 +05:30
debpalash a64ccc7e38 fix(train-2): space/NBSP grouped Brazilian reais, fragment ref (#3832 review) 2026-11-08 02:09:10 +05:30
Vansh 44b37bd250 fix(services): apply feminine agreement to compound hours and add de to exact millions (#3803) 2026-11-06 10:20:19 +05:30
Vansh 9b31c2909d fix(services): verbalize Portuguese clock times and Brazilian currency (#3803) 2026-11-06 09:55:12 +05:30
kevin 9606182c64 fix(tts): keep a space-grouped number like 10 000 whole in English
English read the leading group of '10 000' on its own and left the zero group behind ('ten 000'). Runs whose groups are all '000' are now kept as written, like '1,000'.
2026-10-29 07:37:17 +09:00
kevin9327 57ccbbb966 fix(tts): read a 24-hour time on the hour in hundreds, not o'clock
Squashed from #3560.
2026-10-27 23:50:26 +05:30
velixio ee3cbaa6c8 refactor: clean-room reimplementation of design draft helpers, render details, mastering docs, EPUB matter detection and Urdu input checks
Rebuilds the remaining leftovers from a behaviour spec, with new tests.
2026-10-27 21:12:46 +05:30
velixio cdb44eb9b6 chore(provenance): remove design draft, render details, mastering docs, EPUB matter and Urdu scope code pending clean-room reimplementation
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.
2026-10-27 21:12:46 +05:30
velixio 3fe5a47118 test: drop #1874's range cases that the wave merge carried back; the clean-room cases cover the same rules 2026-10-27 19:03:38 +05:30
velixio 447e6f8aad Merge remote-tracking branch 'origin/main' into cla/rewrite-wave-2
# Conflicts:
#	CHANGELOG.md
#	backend/services/longform_import.py
#	backend/services/text_normalization.py
#	backend/tests/test_longform_import_epub_matter.py
#	electron/src/renderer/src/i18n/locales/ar.json
#	electron/src/renderer/src/i18n/locales/de.json
#	electron/src/renderer/src/i18n/locales/en.json
#	electron/src/renderer/src/i18n/locales/es.json
#	electron/src/renderer/src/i18n/locales/fr.json
#	electron/src/renderer/src/i18n/locales/hi.json
#	electron/src/renderer/src/i18n/locales/id.json
#	electron/src/renderer/src/i18n/locales/it.json
#	electron/src/renderer/src/i18n/locales/ja.json
#	electron/src/renderer/src/i18n/locales/ko.json
#	electron/src/renderer/src/i18n/locales/nl.json
#	electron/src/renderer/src/i18n/locales/pl.json
#	electron/src/renderer/src/i18n/locales/pt.json
#	electron/src/renderer/src/i18n/locales/ru.json
#	electron/src/renderer/src/i18n/locales/sv.json
#	electron/src/renderer/src/i18n/locales/th.json
#	electron/src/renderer/src/i18n/locales/tr.json
#	electron/src/renderer/src/i18n/locales/uk.json
#	electron/src/renderer/src/i18n/locales/vi.json
#	electron/src/renderer/src/i18n/locales/zh-CN.json
#	electron/src/renderer/src/i18n/locales/zh-TW.json
#	electron/src/shared/i18n/locales/ar.json
#	electron/src/shared/i18n/locales/de.json
#	electron/src/shared/i18n/locales/en.json
#	electron/src/shared/i18n/locales/es.json
#	electron/src/shared/i18n/locales/fr.json
#	electron/src/shared/i18n/locales/hi.json
#	electron/src/shared/i18n/locales/id.json
#	electron/src/shared/i18n/locales/it.json
#	electron/src/shared/i18n/locales/ja.json
#	electron/src/shared/i18n/locales/ko.json
#	electron/src/shared/i18n/locales/nl.json
#	electron/src/shared/i18n/locales/pl.json
#	electron/src/shared/i18n/locales/pt.json
#	electron/src/shared/i18n/locales/ru.json
#	electron/src/shared/i18n/locales/sv.json
#	electron/src/shared/i18n/locales/th.json
#	electron/src/shared/i18n/locales/tr.json
#	electron/src/shared/i18n/locales/uk.json
#	electron/src/shared/i18n/locales/vi.json
#	electron/src/shared/i18n/locales/zh-CN.json
#	electron/src/shared/i18n/locales/zh-TW.json
#	tests/test_no_hardcoded_cjk.py
#	tests/test_text_normalization.py
2026-10-27 17:34:14 +05:30
velixio b4757c557b Merge remote-tracking branch 'origin/main' into cla/rewrite-wave-1
# Conflicts:
#	backend/api/routers/dub_generate.py
#	backend/services/asr_backend.py
#	backend/tests/test_pytorch_whisper_oom_ladder.py
#	electron/src/renderer/src/i18n/locales/en.json
#	electron/src/renderer/src/i18n/locales/zh-CN.json
#	tests/test_no_hardcoded_cjk.py
2026-10-27 16:19:18 +05:30
velixio 96a94569d2 Merge remote-tracking branch 'origin/main' into cla/rewrite-wave-2
# Conflicts:
#	backend/services/llm_providers.py
#	backend/services/text_normalization.py
#	backend/utils/hf_progress.py
#	docs/STRUCTURE.md
#	docs/dubbing/translation-engines.md
#	electron/src/shared/components/settings/settingsCategories.jsx
#	tests/test_llm_providers.py
2026-10-27 16:03:43 +05:30
swadhinbiswas d045f14bf8 fix(tts): strip markdown emphasis before synthesis (#3197) (#3205) 2026-10-27 09:47:32 +05:30
kevin9327 aa2d8d9c16 fix(tts): speak the trailing zeros written in a percentage (#3359) 2026-10-27 09:47:30 +05:30
velixio c103163b14 refactor: clean-room reimplementation of dub segment staging, Malayalam numbers, GGUF controls and ROCm setup
Rewritten from a behavioural spec by an implementer without access to the
removed code, so every line has CLA-covered provenance: memmap-staged dub
assembly and segment cache, the native Malayalam number verbalizer, the
OpenAI-compatible speech extension controls forwarded to the GGUF engine,
and the opt-in ROCm torch swap in source setup.

(cherry picked from commit 0d4d3b00cb536f8974e1495aba1f05cabe3d0f1d)
2026-10-27 02:35:27 +05:30
velixio 9d9d74bc2b chore(provenance): remove ROCm source setup, Malayalam numbers, GGUF controls and dub streaming assembly pending clean-room reimplementation
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.

(cherry picked from commit f209084aa188804271d4f71f7acaaa7b1bbeb6c8)
2026-10-27 02:34:18 +05:30
velixio 231ad96f20 refactor: clean-room reimplementation of header, HF token card, setup probes and range speaking
Rebuilt from a behaviour spec by an implementer who never saw the removed code (batch P: #1874, #1962 and related).

(cherry picked from commit 6ff283caa0819485fdf737caa9ac12ea15fd21b2)
2026-10-27 02:20:28 +05:30
velixio c38c3b3857 chore(provenance): remove digit ranges, sentinel-first shutdown, HF token state card and related pieces pending clean-room reimplementation
Removes code from contributors without a CLA on file, leaving CLEAN-ROOM markers where the reimplementation goes.

(cherry picked from commit f954c3ea6fd1bc64f9f757d4f2ee74567fd2ba7d)
2026-10-27 02:20:17 +05:30
Palash Debnath c8bf1ad883 Merge branch 'main' into maint/community-batch-2 2026-10-27 02:12:15 +05:30
debpalash 3b12457082 test(text-normalization): resolve normalize_for_tts at run time in the Urdu test 2026-10-27 00:47:51 +05:30
debpalash 869f77d90a Merge #2989: native Urdu number verbalization 2026-10-27 00:47:42 +05:30
debpalash 3a5b83d597 fix(tts): keep a leading minus on a space-grouped run 2026-10-27 00:34:01 +05:30
Nishchay Mahor ada67546f4 fix(tts): keep a space-grouped run whole before a percent sign too
"12 500%" went through the percent rule first, which spoke the last
group on its own. The grouped span now covers an optional percent sign
and both rules skip anything inside it. Changelog line carries the PR ref.
2026-10-27 00:32:38 +05:30
Nishchay Mahor 914ad1d5e5 fix(tts): keep space-grouped thousands whole in comma-decimal languages
"1 234" and "10 000" were split by the integer rule, which read the
leading group on its own ("un 234,5", "dix 000 habitants"). A 1-3 digit
group followed by 3-digit groups now stays as written in the locales
that group thousands with a period, the same treatment "1.000" gets.
2026-10-27 00:32:25 +05:30
debpalash 6d6d605ef4 Merge remote-tracking branch 'origin/main' into feat/urdu-number-verbalizer 2026-10-25 17:41:51 +05:30
Palash Debnath 5717100b4c Merge branch 'main' into fix/date-ordinals 2026-10-25 07:30:57 +05:30
Palash Debnath 15259fdd1b Merge branch 'main' into fix/currency-zero-part 2026-10-25 06:48:22 +05:30
Palash Debnath 26d99bfee3 Merge branch 'main' into fix/abbrev-glued-number 2026-10-25 06:32:04 +05:30
debpalash a611f5a890 fix(tts): require a boundary after the month name; move changelog to a fragment 2026-10-25 03:47:18 +05:30
debpalash 2d9270514c Merge remote-tracking branch 'origin/main' into a2822 2026-10-25 03:43:27 +05:30
debpalash 23fa32eb27 Merge remote-tracking branch 'origin/main' into a2821 2026-10-25 03:42:26 +05:30
debpalash f613728e24 fix(tts): count Unicode zeros in decimal fractions and cover more locales 2026-10-25 03:42:10 +05:30
debpalash 0573a5d1a2 Merge remote-tracking branch 'origin/main' into a2820 2026-10-25 03:41:32 +05:30
kevin9327 0d370b9ae6 test(tts): pin $0.00 to "zero dollars" 2026-10-21 09:10:04 +09:00
Nishchay Mahor 3df7e4c250 fix(tts): keep the Mär. abbreviation alongside Mrz. 2026-10-19 11:33:30 -07:00
Nishchay Mahor 5105417ff4 fix(tts): cover the abbreviated German month names
Mrz., Jun. and Jul. were missing from the date pattern. Changelog line
carries the PR ref.
2026-10-19 09:58:56 -07:00
Nishchay Mahor 8c90759589 fix(tts): leave ordinal-period dates as written before a month name
"Am 3. Mai" became "Am drei. Mai": the cardinal plus a leftover period
the engine reads as a sentence break. In the locales that mark ordinals
with a period (de, da, no, fi, cs, pl) a 1-31 day followed by a month
name now keeps its digits, since the spoken ordinal inflects with the
phrase. Years and other numbers in the sentence still speak.
2026-10-19 05:21:56 -07:00
Faiz Sulman 3fcd0f4334 feat(text-normalization): add native Urdu number verbalization
num2words has no Urdu locale, so Urdu text reached OmniVoice with raw
digits and was mispronounced (1956 heard as "انیس سو سپنس"), while the
same sentence written in Urdu words transcribed back with 0% CER.

Add services/number_words_ur.py, modeled on the Malayalam module and
wired through _NATIVE_VERBALIZERS:
- full 100-entry table for the irregular 0-99 cardinals
- سو / ہزار / لاکھ with Indian grouping up to 999,999
- 1100-1999 read in hundreds (1956 → انیس سو چھپن)
- decimals with اعشاریہ, percentages with فیصد

"Urdu", "ur" and "ur-PK" resolve to the native path. Tests cover change
and leave-unchanged cases, Extended Arabic-Indic digits, spot checks, and
the full 0-999999 range (no digits, no Arabic look-alike letters).
2026-10-18 21:18:49 +05:00
Shimul Debnath 2f554e794c fix(normalization): preserve spelling joiners before synthesis (#2906)
* fix(normalization): preserve orthographic joiners before synthesis

* test(normalization): preserve joiners in existing safety expectation
2026-10-15 22:50:39 +05:30
kevin9327 966ed99bf5 fix(tts): leave the zero part out of a dollar amount 2026-10-14 08:25:26 +09:00
kevin9327 2e95bed354 fix(tts): speak a number glued to No./Nr. as a number 2026-10-14 08:21:30 +09:00
kevin9327 9b016c1d9d fix(tts): speak the trailing zeros written in a decimal 2026-10-14 08:20:53 +09:00
Palash Debnath c4d63ef207 fix(app): align Electron, backend, packaging and documentation (#2578)
Align maintained Electron setup, docs, model licence descriptions, contact details, and CI syntax checks with the current application.
2026-10-03 06:24:59 +05:30
Palash Debnath 0834c8be28 feat(studio): consolidate community fixes and composer UI (#2419)
Consolidate community engine, workflow, dictation, and setup fixes with the Electron composer, sidebar, and voice UI.

Fix review findings in engine residency, remote exports, backup cleanup, bounded compressed-audio decoding, and reference preprocessing. Preserve contributor credits in CHANGELOG.md and leave the app version unchanged.

Supersedes #2325, #2338, #2368, #2377, #2379, #2380, #2383, #2384, #2387, #2390, #2391, #2392, #2393, #2395, #2400, #2401, #2402, #2409, #2410, and #2412.
2026-09-29 21:15:25 +05:30
kevin9327andClaude Fable 5.1 3cb3d5c963 fix(tts): keep thousands groups in comma-decimal languages
Every vetted num2words locale except English writes decimals with a comma
and groups thousands with a period, but the decimal and percent rules read
"1.000" as 1.0 there: "10.000 Menschen" was spoken as ten people and
"2.500 Euro" as two and a half euros. A period before exactly three digits
is a thousands group in those locales and now keeps its digits, as "1,000"
already does in English.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 20:11:30 +09:00
47fc38094b feat(tts): Malayalam number verbalization for dubbing and audiobooks (#2280)
* feat(tts): Malayalam number verbalization (native verbalizer)

num2words has no ml locale, so Malayalam dubs/audiobooks reached the engine with raw digits. Adds services/number_words_ml.py (cardinals 0-999999 with sandhi, lakh grouping, decimals, percent) and a _NATIVE_VERBALIZERS hook in text_normalization that reuses the existing conservative regexes and bracket masking.

* feat(dub): add ml to TRANSLATE_CODES for the Fast translator

* test(tts): Malayalam number verbalization cases

* docs(tts): docstrings for the Malayalam verbalizer helpers

* fix(tts): keep numbers glued to combining marks and native leading zeros as digits

Python's \w misses Unicode combining marks, so '10ാം' became 'പത്ത്ാം' and
native-digit codes like '൦൦൭' / '٠٠٧' bypassed the ASCII-only (?!0\d) guard.
Guard both the num2words and native paths; add regression cases and the
changelog entry for #2280.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* docs(changelog): add Unreleased highlights for #2280

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* test(tts): simplify ml sweep range

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* docs(structure): count the Malayalam number-words service

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Palash Debnath <4178343+debpalash@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-22 23:57:54 +05:30
Palash Debnath b8ff2721a5 fix(tts): normalize complete signed ranges without rewriting chains 2026-09-07 11:04:44 +05:30
flutterkage2kandClaude Opus 5 ed746bab57 fix(tts): speak the tilde in digit ranges instead of mashing the numbers
"20~30초" is read aloud as a single number — OmniVoice says "이십삼" (23).
The separator never reaches the listener, so any written range is heard as
the wrong figure.

`normalize_text` only ran its number pass behind `_num2words_lang`, which
returns None for ko/ja/zh/th/vi (those scripts read digits natively and are
deliberately outside num2words). Nothing else looked at the range mark, so
the tilde went to the engine untouched and the two numbers ran together.

Rewrite `N~M` into the spoken form before the engine sees it, outside the
num2words gate so the CJK languages are covered too. Verified by rendering
each candidate and transcribing it back (ko, OmniVoice, cloned voice):

    "대략 20~30초짜리"      heard "23초"           WRONG
    "대략 20-30초짜리"      heard "23초"           WRONG (reproduces it)
    "대략 20에서 30초짜리"   heard "20에서 30초짜리"  correct
    "20〜30分ぐらい" → "20から30分" heard "20〜30分くらい"  correct

Deliberately narrow:

* Only the tilde family (U+007E, U+301C, U+FF5E). Japanese and Korean IMEs
  emit the latter two. An ASCII hyphen is left alone — between digits it
  also spells dates, phone numbers and product codes, where "to" is wrong
  (`tests` already pin "pages 3-5" as unchanged).
* Only languages with a verified spoken form (ko/ja/zh/en). Anything else
  keeps its tilde, matching how `_PERCENT_WORD` is scoped.
* Spacing belongs to the form, not the caller: a Korean postposition binds
  to its numeral ("20에서 30"), Japanese and Chinese set no spaces, English
  needs them on both sides.
* Neighbour guards block digits and ASCII letters but allow CJK, because
  CJK writes the unit hard against the digits ("20~30초"); a `\w` guard
  rejects exactly the cases the rule exists for.

`ko`/`ja`/`zh` join `_FULL_NAME_TO_CODE` so the new resolver can see them.
They stay out of `_NUM2WORDS_LANGS`, so this does not open a num2words path
for them — the same inert-entry pattern the file already documents for
"vietnamese".

`backend/services/text_normalization.py` joins the functional-CJK allowlist
in tests/test_no_hardcoded_cjk.py, under the text-processing group and by
the procedure that file documents: the range words are engine input, not
user-facing UI strings.

Tests: 7 new change-cases and 8 new leave-unchanged cases (hyphen, date,
phone number, product code, decimals, a non-numeric tilde, an unverified
language, and no language at all). All 7 change-cases fail against the
previous implementation.

Full suites before and after: the same 17 failures, none of them touched by
this change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-05 17:06:15 +09:00
debpalash 722a7a7e57 fix(security): make control filtering boundaries explicit 2026-08-10 07:30:08 +00:00