improved text & audio processing#53
Open
ther3zz wants to merge 8 commits intotravisvn:mainfrom
Open
Conversation
better sentence splitting normalization for different symbols
Refactor text processing functions for improved performance and error handling. Enhance regex patterns for better normalization of various units, temperatures, and time formats.
Updated text processing functions to use verbalization for numbers, enhancing the conversion of various units and formats to their verbal representations.
Added num2words library for number conversion.
- Normalizes dates ("November 4" -> "November fourth") and number ranges ("2018-2019" -> "2018 to 2019").
- Handles full dates ("November 3, 2025") as a single unit for natural prosody.
- Splits sentences at headline-style colons for natural pauses.
- Includes phonetic hints, scientific notation, chemical formulas, and other advanced edge cases.
- Verbalizes appended symbols like in "Disney+".
- Converts parentheticals to comma-separated clauses for improved prosody.
Refactor audio processing module to enhance configurability and performance. Added environment variable support for cache management, parallel processing, and audio file limits.
Author
|
added the following for audio processing: Cache Configuration:
Performance & Limits:
Cache hit scenario: Near-instant (just memory copy) TTS Use Case Optimization 🎤 |
Enhanced text processing capabilities by expanding regex patterns for various symbols, units, and mathematical operators. Improved prosody handling by converting additional punctuation and symbols into more natural speech.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I noticed that sentences similar to "you can expect sunny skies with a high of 73°F and a low of 54°F" would not be spoken properly when it came to the degrees F, figured I would work on enhancing that bit.