``STTs do not support streaming: livekit.plugins.o...
# ask-ai
m
``STTs do not support streaming: livekit.plugins.openai.stt.STT. Wrap them with stt.StreamAdapter to enable streaming."`
Copy code
stt=STTFallbackAdapter(
                stt=[
                    StreamAdapter(
                        stt=openai.STT(
                            model="gpt-4o-mini-transcribe",
                            detect_language=True,
                        )
                    ),
wll this code fix it
t
Thanks for reaching out, Jack. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
The error message indicates that OpenAI's STT implementation does not support streaming natively. To resolve this, wrapping the STT instance with a
StreamAdapter
is indeed the correct approach. Your provided code snippet appears to address this issue by using
StreamAdapter
to enable streaming functionality for the OpenAI STT service. This should fix the problem, provided that all other configurations are correct. Sources: GitHub:: LiveKit Composite Repo | livekit/agents-js/agents/src/stt/stream_a... | livekit.agents.stt.fallback_adapter API documentation