fix(omnivoice): normalize Arabic numerals before synthesis by wei668899-luo · Pull Request #1203 · jamiepine/voicebox · GitHub
Skip to content

fix(omnivoice): normalize Arabic numerals before synthesis - #1203

Open
wei668899-luo wants to merge 1 commit into
jamiepine:mainfrom
wei668899-luo:fix/omnivoice-normalize-digits
Open

wei668899-luo wants to merge 1 commit into
jamiepine:mainfrom
wei668899-luo:fix/omnivoice-normalize-digits

Conversation

@wei668899-luo

Copy link
Copy Markdown

OmniVoice reads bare digits poorly in the languages that fall back to
num2words, and the damage is not subtle: the Vietnamese sentence "Tính đến
ngày 11 tháng 10, tổng doanh thu phòng vé ... đã đạt 31 tỷ nhân dân tệ ..."
comes out as unintelligible audio (Whisper-large-v3 can only hallucinate a
stock Vietnamese outro line over it), while the identical sentence with the
numbers spelled out transcribes back verbatim. Pass normalize_text=True so
OmniVoice converts the numerals before synthesis.

zh/en route through the optional WeTextProcessing extra, which raises when it
is missing and has no macOS arm64 wheel because pynini is conda-only there, so
those two languages only normalize when that package is importable. Every other
language uses the num2words fallback, which leaves unsupported values alone
instead of raising.

OmniVoice reads bare digits poorly in the languages that fall back to
num2words, and the damage is not subtle: the Vietnamese sentence "Tính đến
ngày 11 tháng 10, tổng doanh thu phòng vé ... đã đạt 31 tỷ nhân dân tệ ..."
comes out as unintelligible audio (Whisper-large-v3 can only hallucinate a
stock Vietnamese outro line over it), while the identical sentence with the
numbers spelled out transcribes back verbatim. Pass normalize_text=True so
OmniVoice converts the numerals before synthesis.

zh/en route through the optional WeTextProcessing extra, which raises when it
is missing and has no macOS arm64 wheel because pynini is conda-only there, so
those two languages only normalize when that package is importable. Every other
language uses the num2words fallback, which leaves unsupported values alone
instead of raising.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant