Does inworlds tts supports french voices? Can we u...
# ask-ai
b
Does inworlds tts supports french voices? Can we use this with livekit?
t
Thanks for reaching out, Kamil. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely! Inworld's TTS does support French voices and can be smoothly integrated with LiveKit. You have a couple of friendly options to choose from: • LiveKit Inference: This is a managed service using the
inworld/inworld-tts-1
model. You just need to specify a voice and, if you'd like, a language code like "fr" for French in your
AgentSession
. • Inworld Plugin: If you prefer, you can use your own Inworld account to access all the default voices available in the Inworld API, including those lovely French voices. To explore the voices and get a feel for them, you might enjoy trying out the Inworld TTS Playground. If you have any questions or need a hand with anything, just let me know—I'm here to help! Sources: Inworld TTS | LiveKit Docs | Inworld TTS plugin guide | LiveKit Docs
b
Yeah I want to integreate inworld tts french voices in my livekit locally, but it doesnt seem to work, only inworlds tts EN (english) is working
t
I'd love to help you get your Inworld TTS French voices working smoothly with LiveKit! Let’s walk through some troubleshooting steps together: 1. Verify Voice-Language Compatibility: First, make sure the voice you’ve chosen actually supports French. You can easily check this using the Inworld TTS Playground. 2. Explicitly Set the Language Parameter: It’s important to specify the language code (like
language="fr"
) in your setup. Otherwise, the system might default to English, which could be why it’s not sounding quite right. 3. Check Integration Type: ◦ If you’re using LiveKit Inference, make sure you’re using the model ID
inworld/inworld-tts-1
and that your LiveKit credentials are correctly entered. ◦ If you’re working with the Inworld Plugin, double-check that your
INWORLD_API_KEY
is valid and properly configured. 1. Inspect Logs: Turning on logging can really help pinpoint what’s going on by capturing detailed error messages. This can reveal issues like invalid voice IDs or network hiccups. If you’re still running into trouble after these steps, please don’t hesitate to share the specific error messages or the details of your configuration. I’m here to help you get this sorted out! Sources: avatars/hedra/pipeline_avatar/agent.py | Inworld TTS | LiveKit Docs | Inworld TTS plugin guide | LiveKit Docs | examples/voice_agents/realtime_with_tts.py
b
can i send you a screenshot of my current configuration?
t
I'm sorry I can't view screenshots directly, but if you could kindly describe your current setup—like the voice name, language parameter, and any error messages you’re seeing—I’d be more than happy to help you work through this. Your details will really help me assist you better!
b
This is the code: async def *entrypoint*(_ctx_: agents.JobContext): session = AgentSession[Any]( stt="deepgram/nova-3:multi", llm="openai/gpt-4.1-mini", tts="inworld/inworld-tts-1", vad=silero.VAD.load(), ) but it seems like I can't get the inworld tts-1 to speak in french, even by writing / specifiying : fr
t
To enable French TTS with
inworld/inworld-tts-1
, you'll want to explicitly set the language parameter. Here's a simple way to adjust your code:
Copy code
async def entrypoint(ctx: agents.JobContext):
    session = AgentSession[
        Any](
        stt="deepgram/nova-3:multi",
        llm="openai/gpt-4.1-mini",
        tts=inworld.TTS(voice="Alex", language="fr"),  # Specify French language
        vad=silero.VAD.load(),
    )
If you'd like to switch languages dynamically during the session, you can easily do so using the
update_options()
method:
Copy code
session.tts.update_options(language="fr")
Just a quick tip: make sure the voice you’re using supports French. You can check that out using the Inworld TTS Playground. If you run into any issues or have questions, feel free to reach out—I’m here to help! Sources: Inworld TTS | LiveKit Docs | basics/say_in_voice.py | livekit-plugins/livekit-plugins-inworld/livekit/plugins/inworld/__init__.py | Inworld TTS plugin guide | LiveKit Docs
b
"inworld is not defined", where should i define it? here's my current full code: from dotenv import load_dotenv from typing import Any from livekit import agents from livekit.agents import AgentSession, Agent, RoomInputOptions from livekit.plugins import noise_cancellation, silero load_dotenv(".env.local") class Assistant(Agent): def *__init__*(self): super().__init__( instructions="You are a helpful assistant that can answer questions and help with tasks.", ) async def *entrypoint*(_ctx_: agents.JobContext): session = AgentSession[ Any]( stt="deepgram/nova-3:multi", llm="openai/gpt-4.1-mini", tts=inworld.TTS(voice="Alex", language="fr"), # Specify French language vad=silero.VAD.load(), ) await session.start( room=ctx.room, agent=Assistant(), _room_input_options_=RoomInputOptions( #For telephony applications, use
BVCTelephony
instead for better results
_noise_cancellation_=noise_cancellation.BVC() ) ) await session.generate_reply( instructions="Greet the user and offer your assistance.", ) if name == "__main__": agents.cli.run_app(agents.WorkerOptions(_entrypoint_fnc_=entrypoint))
t
It looks like the error is happening because the
inworld
module hasn’t been imported in your code yet. No worries—just add this import statement at the very top of your script to fix it:
Copy code
from livekit.plugins import inworld
Once you’ve added that, your
inworld.TTS
call should work smoothly. If you run into any other issues or have questions, feel free to reach out—I’m here to help!
It looks like the error is happening because the
livekit-plugins-inworld
package might not be installed yet or isn’t set up properly. No worries, I’m here to help you through it! Let’s try these steps together to get things working smoothly: 1. Install the Plugin: First, let’s make sure the package is installed by running this command:
pip install livekit-plugins-inworld
2. Verify the Installation: Next, double-check that the plugin is installed in your current Python environment with:
pip list | grep livekit-plugins-inworld
3. Check Your Python Environment: It’s important to confirm you’re using the right Python environment where the package is installed. You can do this by running:
which python
4. Reinstall if Necessary: If you’re still seeing the error, try uninstalling and then reinstalling the plugin to refresh everything:
Copy code
pip uninstall livekit-plugins-inworld
pip install livekit-plugins-inworld
5. Update Core LiveKit Agents: To keep everything compatible, let’s also upgrade the core LiveKit agents package with:
pip install --upgrade livekit-agents
Once you’ve gone through these steps, try importing the plugin again like this:
Copy code
from livekit.plugins import inworld
If you’re still running into issues after this, please don’t hesitate to reach out. I’m here to help and we can explore some more troubleshooting options together! Sources: avatars/hedra/pipeline_avatar/agent.py | livekit-plugins/livekit-plugins-upliftai/livekit/plugins/upliftai/py.typed
b
from livekit.plugins import inworld ImportError: cannot import name 'inworld' from 'livekit.plugins' (unknown location) the first step (installation) was a sucess, pip list commands worked - grep livekit-.... didnt work (unrecognized term the error say) and when im launching the assistant, the same error pops out again: from livekit.plugins import inworld ImportError: cannot import name 'inworld' from 'livekit.plugins' (unknown location)
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!