currently i am using STT->LLM->TTS pipeline ...
# ask-ai
d
currently i am using STT->LLM->TTS pipeline with google, but i am facing issues with short text such as "hi", "yes", "no". Am not getting the text result for short audio. Is there any method to fix this?
stt=google.STT(model="telephony", spoken_punctuation=False, languages=["en-IN", "hi-IN", "en-US"])
this is my stt config
t
Thanks for reaching out, Yuvi. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Could you please share a bit more about the issue you're experiencing with short audio? For instance, are you not getting any transcription at all, noticing delays, or finding the accuracy isn't quite right? Also, it would be helpful to know if you're using streaming or non-streaming STT, and whether the telephony model is specifically chosen for your situation. Understanding these details will really help us find the best solution for you! Sources: Google Cloud STT integration guide | LiveKit Docs | livekit-plugins/livekit-plugins-speechmatics/livekit/plugins/speechmatics/s... | Google Cloud STT integration guide | LiveKit Docs | Docs::Agents | Google integration guide | LiveKit Docs
d
for both streaming and non streaming am facing this issue and am not getting any transcription at all
and yes telephony model is specifically chosen
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!
c
@dry-piano-35098 try changing the STT to whisper for example to see if the problem is still here If it’s still your problem is google STT If it’s not it’s probably VAD configuration (threshold)
d
hey, i was debugging the issue, and have some findings that i like to share. Google stt support multiple language support, so my config was like this
languages=["en-IN", "hi-IN", "en-US"])
, but the stt was only considering the language that it detect initially for the whole convo. Suppose initially it detects audio as
en-IN
, so for the whole convo it was treating the audio as
en-IN
, even if i speak other language that i have alrdy added, i enabled the language detect flag too, for the short words that belongs to that detected language it was working perfectly.
c
Ohhh really nice finding ! Good job mate