-
-
Notifications
You must be signed in to change notification settings - Fork 0
Remove the APIs for providing custom TTS language selection #42
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
@jo-elimu Could you help testing this issue using a new snapshot published from this PR's change, and let me know if TTS works for both |
WalkthroughThis pull request removes language fallback functionality from the codebase. Specifically, it deletes the utility functions for converting between a custom elimu.ai's mission is to build innovative learning software that empowers out-of-school children to teach themselves basic reading📖, writing✍🏽 and math🔢 within 6 months. Changes
Sequence Diagram(s)sequenceDiagram
participant C as Client
participant DM as DataModule
participant TTSW as TextToSpeechWrapper
participant TTS as Android TextToSpeech Engine
C->>DM: Request Text-to-Speech instance
DM->>TTSW: Call providesTextToSpeech(context)
TTSW->>TTS: Initialize Text-to-Speech with context
TTS-->>TTSW: TTS initialization callback (success/failure)
TTSW-->>DM: Return initialized TTS instance
DM-->>C: Provide TTS instance for speech synthesis
Assessment against linked issues
Tip ⚡💬 Agentic Chat (Pro Plan, General Availability)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (1)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@tuancoltech Sure. I guess this would involve adding |
@jo-elimu You are correct!
No problem. I've added the guidelines here: #43 |
@tuancoltech I've followed the steps in the documentation, but getting this error:
I already published the common-utils library to
And verified that the
|
@jo-elimu You should add
|
@jo-elimu Just a kind reminder: Please help verifying this once you have some free time! |
@tuancoltech Yes, I followed the steps in your documentation and already added
|
@jo-elimu If you look closer on README on how to test the snapshot, the dependency should exactly be:
|
@tuancoltech Okay, I got it working now. Had to also change the -elimuCommonutils = "1.0.7"
+elimuCommonutils = "1.0.10-SNAPSHOT" -elimu-common-utils = { group = "com.github.elimu-ai", name = "common-utils", version.ref = "elimuCommonutils" }
+elimu-common-utils = { group = "ai.elimu.common", name = "utils", version.ref = "elimuCommonutils" } |
Remove the APIs for providing custom TTS language selection.
getLanguage()
from LanguageProvider #36getContentProviderId()
from LanguageProvider #37Relates to elimu-ai/vitabu#178
Summary by CodeRabbit
speak
method by preventing potential null pointer exceptions in logging.