what is the best open ai Realtime model for Hebrew...
# ask-ai
n
what is the best open ai Realtime model for Hebrew ?
t
Thanks for reaching out, Niv. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'm happy to share that OpenAI's real-time models, like those used in LiveKit, do support multiple languages, including Hebrew. While there isn't specific info on which model works best for Hebrew, you can easily set the language parameter in the speech-to-text (STT) settings using the ISO-639-1 code for Hebrew. If you'd like, I can help you test and find the best model for your Hebrew inputs. Just let me know, and I'll gladly guide you through setting up and evaluating real-time models in LiveKit. We're here to make sure you get the best experience possible! Sources: complex-agents/turn-taking/README.md | OpenAI STT integration guide | LiveKit Docs
n
can you give me code example of how to set the STT for Hebrew ?
t
I'm happy to share an example of how you can set up speech-to-text (STT) for Hebrew in LiveKit using the Google STT plugin. Here's a simple way to get started:
Copy code
from livekit.plugins import google

# Initialize STT with Hebrew language support
stt = google.STT(
    languages=["he-IL"],  # Hebrew language code
    detection_language=True,  # Enable language detection if needed
    interim_results=True,  # Enable interim (partial) results
)

# Use the STT instance in your agent
stt_stream = stt.stream()
If you're interested, you can also explore other plugins like Speechmatics or AssemblyAI. Here's a quick example using Speechmatics:
Copy code
from livekit.plugins import speechmatics

# Initialize STT with Hebrew language
stt = speechmatics.STT(
    language="he",  # Hebrew language code
    enable_partials=True,
)

stt_stream = stt.stream()
Please feel free to reach out if you'd like more examples or need help with other plugins. I'm here to help! Sources: Docs::Agents
n
I want to set the STT in the AgentSession creation
t
Hi there! Could you please let me know if you're using a specific plugin like Google, Speechmatics, or AssemblyAI for STT in your AgentSession? This info will really help me give you the best example on how to set the language to Hebrew when creating your session. Looking forward to helping you out!
n
I prefer using Open AI python code example
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!