-
Notifications
You must be signed in to change notification settings - Fork 911
Fix kokoro tts for punctuations #2522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Caution Review failedThe pull request is closed. WalkthroughIntroduces an early punctuation check in ConvertNonChineseToTokenIDs to immediately return a punctuation token sequence, preceding voice/espeak and lexicon paths. Also adds a Foundation import in a Swift example without changing APIs or control flow. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Caller
participant Conv as ConvertNonChineseToTokenIDs
participant Map as token2id_
participant Espeak as eSpeak Path
participant Lex as Lexicon Path
Caller->>Conv: Convert(text, voice)
alt text is punctuation
Conv->>Map: lookup token2id_.at(text)
Conv-->>Caller: return [ [0, id, 0] ]
else voice not empty
Conv->>Espeak: convert via eSpeak
Espeak-->>Conv: token IDs
Conv-->>Caller: return eSpeak tokens
else
Conv->>Lex: lexicon/word-based conversion
Lex-->>Conv: token IDs
Conv-->>Caller: return lexicon tokens
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (2)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
Bug Fixes
Documentation