how can I have only 2 languages in stt = openai.S...
# ask-ai
b
how can I have only 2 languages in stt = openai.STT(language=None, model="gpt-4o-mini-transcribe"),
t
Thanks for reaching out, Sandeep. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
To limit the OpenAI STT (Speech-to-Text) component to only two languages, you would need to specify the desired languages in the
language
parameter using their ISO-639-1 codes. For example, you can set the
language
parameter to one of the two languages you want to use. However, the
language
parameter itself does not support multiple languages simultaneously. If you need to dynamically switch between two languages, you would need to implement logic in your application to set the
language
parameter accordingly before making each STT request. For a complete list of supported languages, you can refer to OpenAI's documentation on supported languages for their speech-to-text service: Supported Languages. Sources: OpenAI integration guide | LiveKit Docs | OpenAI integration guide | LiveKit Docs
b
I want to add just 2 languages
not other then that
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!