# Support for Gemini 3.8 flash TTS

**URL:** <https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156>\
**Category:** Agents\
**Tags:** agent-development, tts\
**Created:** [September 30, 2026, 8:30pm UTC](https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156 "2026-09-30T20:30:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kevin\_Quijano](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/kevin_quijano/32/2085_2.png) [@Kevin\_Quijano](https://community.livekit.io/u/Kevin_Quijano)\
**Post date:** [September 30, 2026, 8:30pm UTC](https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156/1 "2026-09-30T20:30:22Z")

</div>

Hi there!

I’d like to know if Gemini 3.8 flash (and flash-lite) TTS is already supported on the most recent version of the Agents Framework (1.8.3), including the custom voices (the ones generated by replication)

Thanks in advance for any information

---

<div class="post-metadata">

**Author:** ![abidullahcs.uk](https://avatars.discourse-cdn.com/v4/letter/a/ba8739/32.png) [@abidullahcs.uk](https://community.livekit.io/u/abidullahcs.uk)\
**Post date:** [October 1, 2026, 4:50am UTC](https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156/2 "2026-10-01T04:50:33Z")

</div>

@Kevin_Quijano The model: GeminiTTSModels tops out at gemini-3.1-flash-tts-preview, plus 2.5 flash, 2.5 flash-lite preview and 2.5 pro. No 3.8 entry, and that’s from main, so it isn’t in 1.8.3 either.

But the signature is model\_name: NotGivenOr[GeminiTTSModels | str], so the literal is autocomplete only and a plain string passes through to Google:

` google.TTS(model_name="gemini-3.8-flash-tts") # whatever the exact id is`

Nothing in the plugin gates it. Whether it works is down to the Google TTS API accepting that id, not your Agents version.

The cloned voices are a harder no. The plugin states it directly: “only chirp 3 model can support voice cloning”. Passing voice\_cloning\_key forces model\_name = “chirp\_3”, and voice\_params.model\_name is deliberately skipped on that path. So a replicated voice can’t be paired with a Gemini TTS model at all, regardless of version.

---

<div class="post-metadata">

**Author:** ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)\
**Post date:** [October 1, 2026, 7:56am UTC](https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156/3 "2026-10-01T07:56:43Z")

</div>

Hi @Kevin_Quijano we have support for Gemini 3.8 flash TTS in the plugin here:

> **[Gemini TTS plugin guide | LiveKit Documentation](https://docs.livekit.io/agents/models/tts/gemini/)**
>
> How to use the Gemini TTS plugin for LiveKit Agents.

and that docs page contains some code examples which have been updated to specify the model.

> [@Kevin\_Quijano](#):
>
> including the custom voices (the ones generated by replication)

I’m not entirely sure how that works, but when you replicate a voice, do you get a name you can pass to the `voice_name`param? I would expect if the name is in your account, it should be picked up.

@abidullahcs.uk I think you were looking at the [separate Google TTS plugin](https://docs.livekit.io/agents/models/tts/google/).

---

<div class="post-metadata">

**Author:** ![Kevin\_Quijano](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/kevin_quijano/32/2085_2.png) [@Kevin\_Quijano](https://community.livekit.io/u/Kevin_Quijano)\
**Post date:** [October 1, 2026, 1:03pm UTC](https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156/4 "2026-10-01T13:03:34Z")

</div>

Actually when I replicate a voice using the gemini API it returns a voice\_id which can be used like shown in the following code block:

```python
import base64
from google import genai
from pathlib import Path

here = Path( __file__ ).parent

client = genai.Client()

def clone():
    with open(here / "audios" / "source.wav", "rb") as f:
        source_b64 = base64.b64encode(f.read()).decode("utf-8")

    with open(here / "audios" / "consent.wav", "rb") as f:
        consent_b64 = base64.b64encode(f.read()).decode("utf-8")

    # Create a persistent replicated voice (store=True)
    replicated_voice = client.voices.create(
        store=True,
        voice={
            "model": "gemini-3.8-flash-tts",
            "type": "replicated",
            "display_name": "Custom Replicated Speaker",
            "replicated": {
                "source_audio": {
                    "mime_type": "audio/wav",
                    "data": source_b64,
                },
                "consent_audio": {
                    "mime_type": "audio/wav",
                    "data": consent_b64,
                },
            },
        },
    )

    print(f"Created voice ID: {replicated_voice.id}")
    print(f"{replicated_voice=}")

    return replicated_voice.id

def synth(voice_id: str):

    interaction = client.interactions.create(
        model="gemini-3.8-flash-tts",
        input=[{
            "type": "user_input",
            "content": [{
                "type": "text",
                "text": (
                    "Hello world"
                ),
                "annotations": [{
                    "type": "speech_metadata",
                    "style": "warm and conversational",
                }],
            }],
        }],
        response_format={"type": "audio"},
        generation_config={
            "speech_config": [
                {"voice": voice_id},
            ]
        },
    )

    with open(here / "38-flash.wav", "wb") as f:
        f.write(base64.b64decode(interaction.output_audio.data))

if __name__ == " __main__":
    voice_id = clone()
    synth(voice_id)

```

But when I try to pass the replicated voice id to the Gemini TTS plugin (in the parameter voice\_name), I get the following error

```python
livekit.agents ._exceptions.APIStatusError: message='gemini tts: client error', status_code=400, retryable=False, body={
    "error": { 
        "code": 400, 
        "message": "No matching speaker voice found for name: <replicated_voice_id> and language: " 
        "status": "INVALID_ARGUMENT" 
    }
}

```

I also tried with the voice name used (in this case “Custom Replicated Speaker”) and its returning the same error

Here’s the official documentation about replication: [https://ai.google.dev/gemini-api/docs/voice-replication#audio\_and\_consent\_requirements](https://ai.google.dev/gemini-api/docs/voice-replication#audio_and_consent_requirements)

---

<div class="post-metadata">

**Author:** ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)\
**Post date:** [October 1, 2026, 2:05pm UTC](https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156/5 "2026-10-01T14:05:43Z")

</div>

Thanks for all that information. It looks like this is not supported in the Gemini plugin. I got a suggested update from Claude to modify [agents/livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/gemini\_tts.py at main · livekit/agents · GitHub](https://github.com/livekit/agents/blob/main/livekit-plugins/livekit-plugins-google/livekit/plugins/google/beta/gemini_tts.py) per the attached file as the voice needs to be sent in a specific field.

[gemini\_tts.py](https://community.livekit.io/uploads/short-url/lrfjev6OOBvq6Hd699ng8ChTk4u.py) (19.6 KB)

That seemed very sensible, but I obviously wanted to try this before telling you this was the solution. Unfortunately however it looks like replicated voices are unavailable in my region (UK)

 ![Screenshot 2026-10-01 at 14.59.48](https://us1.discourse-cdn.com/flex001/uploads/livekit2/original/2X/3/33cc5c7f2c3de21f9ea1c7401e86f062fde49c6d.png)

Can I please ask you to try modifying the plugin per the attached and see if it works for you? I would expect you to just provide the voice ID in the voice name after this change.

---

<div class="post-metadata">

**Author:** ![Kevin\_Quijano](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/kevin_quijano/32/2085_2.png) [@Kevin\_Quijano](https://community.livekit.io/u/Kevin_Quijano)\
**Post date:** [October 1, 2026, 2:34pm UTC](https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156/6 "2026-10-01T14:34:25Z")

</div>

It’s working now, thank you very much

Can I ask you, how soon will this feature be available in the plugin?

---

<div class="post-metadata">

**Author:** ![Kamal\_Moha](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/kamal_moha/32/402_2.png) [@Kamal\_Moha](https://community.livekit.io/u/Kamal_Moha)\
**Post date:** [October 1, 2026, 9:46pm UTC](https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156/7 "2026-10-01T21:46:20Z")

</div>

@Kevin_Quijano It’s good to know that you could make voice replication (custom voices) work with Gemini, this is gonna be massive. Submit a PR to see what the LK team think of it.

@darryncampbell As someone who mainly uses Gemini RealtimeModel() specifically `gemini-3.8-live`, it would be nice if we could have a custom voice when running the Realtime model.

I’m aware the Gemini RealtimeModel() supports usage with [a separate TTS](https://docs.livekit.io/agents/models/realtime/plugins/gemini/#separate-tts). Instead of using a separate TTS, I’m curious to see if the voice can be saved/created in Gemini & then used in Livekit

---

<div class="post-metadata">

**Author:** ![darryncampbell](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/darryncampbell/32/20_2.png) [@darryncampbell](https://community.livekit.io/u/darryncampbell)\
**Post date:** [October 2, 2026, 8:50am UTC](https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156/8 "2026-10-02T08:50:18Z")

</div>

> [@Kamal\_Moha](#):
>
> @Kevin_Quijano It’s good to know that you could make voice replication (custom voices) work with Gemini, this is gonna be massive. Submit a PR to see what the LK team think of it.

I’d echo that please - I don’t see this request from anyone else and it’s not on the agent’s team backlog so this would be the quickest route.

I would raise the PR myself but I wouldn’t be comfortable doing that without being able to test the feature. I did find from Google’s [official blog](https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-3-8-text-to-speech/) on the subject: “Voice replication through AI Studio is not available in Illinois, Texas, EEA, UK, Switzerland, and India.”. That’s hidden in the fine print at the bottom. I did also try through the API but I get the same issue.

@Kamal_Moha I found the following at [https://ai.google.dev/gemini-api/docs/speech-generation](https://ai.google.dev/gemini-api/docs/speech-generation) “The TTS capability differs from speech generation provided through the [Live API](https://ai.google.dev/gemini-api/docs/live), which is designed for interactive, unstructured audio, and multimodal inputs and outputs.” which I think would be the official word that it wouldn’t be possible for you (though I agree it would be cool if it were possible)

---

<div class="post-metadata">

**Author:** ![Kamal\_Moha](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/kamal_moha/32/402_2.png) [@Kamal\_Moha](https://community.livekit.io/u/Kamal_Moha)\
**Post date:** [October 4, 2026, 6:46am UTC](https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156/9 "2026-10-04T06:46:52Z")

</div>

> [@darryncampbell](#):
>
> “The TTS capability differs from speech generation provided through the [Live API](https://ai.google.dev/gemini-api/docs/live), which is designed for interactive, unstructured audio, and multimodal inputs and outputs.” which I think would be the official word that it wouldn’t be possible for you

@darryncampbell Thanks for looking into this. I see the limitation is on Google’s side & we will see when they start offering voice replication for the Live API.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex001/user_avatar/community.livekit.io/system/32/26_2.png) [@system](https://community.livekit.io/u/system)\
**Post date:** [October 19, 2026, 6:47am UTC](https://community.livekit.io/t/support-for-gemini-3-8-flash-tts/2156/10 "2026-10-19T06:47:12Z")

</div>

Closed on October 19, 2026, 6:47am UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
