which TTS provider are supported in livekit that i...
# ask-ai
f
which TTS provider are supported in livekit that includes Yue (Cantonese) language?
t
Thanks for reaching out, Baymurat. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
LiveKit supports multiple TTS providers, and among them, Amazon Polly (AWS) includes support for Yue (Cantonese) language under the language code "yue-CN". There is no available information confirming support for Yue (Cantonese) from other TTS providers integrated with LiveKit. Sources: Text-to-speech (TTS) integrations | LiveKit Docs | livekit-plugins/livekit-plugins-google/livekit/plugins/google/models.py
f
how can I use it?
t
Hey there! Let me walk you through setting up Amazon Polly Text-to-Speech for Cantonese in LiveKit. Don't worry, I'll break it down into simple steps that'll make this process a breeze! 😊 1. Install the AWS Plugin:
pip install "livekit-agents[aws]~=1.0"
2. Set Up AWS Credentials: Add the following to your
.env
file:
Copy code
AWS_ACCESS_KEY_ID=<aws-access-key-id>
AWS_SECRET_ACCESS_KEY=<aws-secret-access-key>
AWS_DEFAULT_REGION=<aws-deployment-region>
3. Configure Amazon Polly TTS: Here's a friendly code snippet to get your Cantonese TTS up and running:
Copy code
from livekit.plugins import aws

session = AgentSession(
    tts=aws.TTS(
        voice="Ruth",  # or another compatible voice
        speech_engine="generative",
        language="yue-CN",  # Yue (Cantonese) language code
    ),
    # ... llm, stt, etc.
)
4. Key Parameters: ā—¦ language: Set to
"yue-CN"
for Yue (Cantonese). ā—¦ voice: Choose a compatible voice that supports Cantonese. ā—¦ speech_engine: Options include
"standard"
,
"neural"
,
"long-form"
, or
"generative"
. Pro tip: Make sure you pick a voice that really understands Cantonese – this'll help you get the most natural-sounding speech possible! šŸ—£ļøšŸ‘ Sources: Amazon Polly TTS integration guide | LiveKit Docs | livekit-plugins/livekit-plugins-aws/livekit/plugins/aws/__init__.py
f
what kind of voice available in this language?
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!
f
does 11 labs support this language?