Peter Michael Gits Claude commited on
Commit ·
bc9a856
1
Parent(s): b63ba79
Disable demo TTS responses due to poor STT accuracy
Browse files- Only first 3 words were being transcribed correctly
- Demo TTS responses not working properly with incomplete transcriptions
- Keep WebRTC demo page functional for STT testing without TTS interference
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
webrtc/server/fastapi_integration.py
CHANGED
|
@@ -159,13 +159,14 @@ def create_fastapi_app() -> FastAPI:
|
|
| 159 |
if (data.type === 'transcription') {
|
| 160 |
addTranscription(data.text, data.timestamp);
|
| 161 |
|
| 162 |
-
//
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
| 168 |
-
}
|
|
|
|
| 169 |
} else if (data.type === 'tts_playback') {
|
| 170 |
playTTSAudio(data.audio_data, data.text);
|
| 171 |
} else if (data.type === 'tts_error') {
|
|
|
|
| 159 |
if (data.type === 'transcription') {
|
| 160 |
addTranscription(data.text, data.timestamp);
|
| 161 |
|
| 162 |
+
// Demo TTS response disabled due to poor transcription accuracy
|
| 163 |
+
// Only first 3 words were being transcribed correctly
|
| 164 |
+
// if (data.text && data.text.trim()) {
|
| 165 |
+
// const demoResponse = `I heard you say: "${data.text}". This is a demo TTS response.`;
|
| 166 |
+
// setTimeout(() => {
|
| 167 |
+
// requestTTSPlayback(demoResponse);
|
| 168 |
+
// }, 1000); // Wait 1 second before TTS response
|
| 169 |
+
// }
|
| 170 |
} else if (data.type === 'tts_playback') {
|
| 171 |
playTTSAudio(data.audio_data, data.text);
|
| 172 |
} else if (data.type === 'tts_error') {
|