Skip to content

feat: Normalisation added for speech to text- #17 - #35

Open
ramkumar-ns-dev wants to merge 1 commit into
ELEVATE-Project:release-2.3.0-backup-with-usage-cost-phase-1from
ramkumar-ns-dev:release-2.1.0-normalisation
Open

feat: Normalisation added for speech to text- #17#35
ramkumar-ns-dev wants to merge 1 commit into
ELEVATE-Project:release-2.3.0-backup-with-usage-cost-phase-1from
ramkumar-ns-dev:release-2.1.0-normalisation

Conversation

@ramkumar-ns-dev

Copy link
Copy Markdown

When users speak to the chatbot in Hindi, the Automatic Speech Recognition (ASR) / Speech-to-Text (STT) pipeline transcribes the audio literally. For instance, numbers, dates, or currencies are written out as spoken words (e.g., transcribing spoken numbers like "कक्षा दो" or "एक सौ पचास" into words).

The Inverse Text Normalization (ITN) feature automatically parses the spoken Hindi text and converts it into its standard written/numerical formats (e.g., converting "कक्षा दो" to "कक्षा 2" and "एक सौ पचास" to "150"), making the transcribed text cleaner and much more readable for both the user and the downstream LLM processing.

Package Used: indic-itn==0.1.0 (specifically the HindiITN module)

Summary by CodeRabbit
New Features
Added Hindi, Tamil, Telugu, Kannada transcription text normalization to improve number and formatting consistency.
Added support for creating.
Improvements
Raised the minimum supported Python version to 3.11 and refreshed related dependencies to include text normalization.
Improved multi-part transcription output handling with normalization and safer fallback behavior.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: cb87b33b-b76c-4872-857a-dda6139e8906

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@VishnuKrishnathu VishnuKrishnathu left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please edit the base branch and raise to the correct branch. You can get the details from @VISHNUDAS-tunerlabs

transcript = " ".join(content for _, content in transcripts)
return {'status': 200, 'content': transcript}
raw_transcript = " ".join(content for _, content in transcripts)
print("final transcript: ", raw_transcript)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the print statement. You can use logger instead.

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.

2 participants