Skip to content

Fix: Add support for leading zero in transcription when spoken by user #2452

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chihangc
Copy link

@chihangc chihangc commented Nov 21, 2024

This pull request addresses an issue where leading zeros in numbers were not preserved in the transcription when explicitly spoken by the user. e.g. AB01234 was wrongly normalized as AB 1234. The changes ensure that the transcription includes leading zeros when they are intentionally voiced, by add back the zero after to_fraction

- Ensures that leading zero is included in the transcription when explicitly voiced.
@chihangc chihangc changed the title Add support for leading zero in transcription when spoken by user Fix: Add support for leading zero in transcription when spoken by user Nov 21, 2024
@AnhMeo
Copy link

AnhMeo commented May 7, 2025

Nice! What was it that caused the leading zeroes to get removed in the first place?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants