uncommented the TTS code#79
Conversation
WalkthroughRe-enabled the textToSpeech function in ai-tools.service.ts by uncommenting its implementation. The method now builds a Bhashini TTS config, invokes computeBhashini with task 'tts', and returns audioContent. Additional changes are formatting and minor stylistic edits without altering public APIs or logic elsewhere. Changes
Sequence Diagram(s)sequenceDiagram
participant C as Caller
participant S as AiToolsService
participant Bc as getBhashiniConfig
participant Bh as computeBhashini
C->>S: textToSpeech(text, language, userId, sessionId)
S->>Bc: getBhashiniConfig('tts', {language:{sourceLanguage: language}}, userId, sessionId)
Bc-->>S: ttsConfig + serviceDetails
S->>Bh: computeBhashini('tts', text, serviceDetails)
Bh-->>S: { audioContent }
S-->>C: audioContent
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Graph Analysis (1)src/modules/aiTools/ai-tools.service.ts (1)
🔇 Additional comments (3)
✨ 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 comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
Please describe the changes in your pull request in few words here.
Changes
List the changes done to fix a bug or introducing a new feature.
How to test
Describe the steps required to test the changes proposed in the pull request.
Please consider using the closing keyword if the pull request is proposed to
fix an issue already created in the repository
(https://help.github.com/articles/closing-issues-using-keywords/)
Summary by CodeRabbit