Skip to content

Different Languages #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Ferhaps opened this issue Feb 25, 2025 · 4 comments
Open

Different Languages #74

Ferhaps opened this issue Feb 25, 2025 · 4 comments

Comments

@Ferhaps
Copy link

Ferhaps commented Feb 25, 2025

Description of the feature request:

Support for multiple languages

What problem are you trying to solve with this feature?

I am trying to create a bot that talks with the user in Bulgarian specifically, but currently it says gibberish. Is there some sort of flag or setting for that or its not currently supported. Thanks!

Any other information you'd like to share?

No response

@OptionIA
Copy link

Well, i guess they have 2 options

  1. make LIVE API PAID
  2. keep adding limitations

here i will explain you a bit, why they didnt added it

They didnt added it to they api, because they dont want pepole using it as text to speech free model. with 8 voices and languagues. because they earn money with Google Voice's (and the voices of the realtime api are so cool.)

@OptionIA
Copy link

I found it:

        config = types.LiveConnectConfig(
            response_modalities=["AUDIO"],
            speech_config=types.SpeechConfig(
                voice_config=types.VoiceConfig(
                    prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name="Puck")
                ),
                language_code='en-US', # HERE IS THE LANGUAGUE OF THE VOICE
            ),

@deathemperor
Copy link

I found it:

        config = types.LiveConnectConfig(
            response_modalities=["AUDIO"],
            speech_config=types.SpeechConfig(
                voice_config=types.VoiceConfig(
                    prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name="Puck")
                ),
                language_code='en-US', # HERE IS THE LANGUAGUE OF THE VOICE
            ),

this is for python and js-genai only. this repo needs to be migrate to use js-genai insteal of generative-ai which is deprecated

@OptionIA
Copy link

OptionIA commented May 1, 2025

well i dont know why pydantic dont validate that settings on python using genai

    config = types.LiveConnectConfig(
        response_modalities=["AUDIO"],
        speech_config=types.SpeechConfig(
            voice_config=types.VoiceConfig(
                prebuilt_voice_config=types.PrebuiltVoiceConfig(voice_name="Puck")
            ),
            language_code='en-US', # HERE IS THE LANGUAGUE OF THE VOICE
        ),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants