# Google: Gemini 3.8 Flash TTS

Provider: Google AI (Gemini API)
Final price: $0.05/success
Success rate: 99.9%

Speak a text in one of 30 prebuilt voices, or a two-speaker dialogue, with Gemini 3.8 Flash TTS on Google's own API; the audio returns inline as base64 WAV (24 kHz mono).

## Parameters

- model (string, required)
- contents (array, required)
- generationConfig (object, required)

## Example

```curl
curl -X POST 'https://toolswitch.dev/v1/tools/google-ai.voice-gen.gemini-3-8-flash-tts' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{"contents":[{"parts":[{"text":"Say cheerfully: Welcome to treg, the tool catalog for your agents."}]}],"generationConfig":{"speechConfig":{"voiceConfig":{"prebuiltVoiceConfig":{"voiceName":"Kore"}}},"responseModalities":["AUDIO"]}}'
```

[View on Toolswitch](https://toolswitch.dev/ko/tools/google-ai.voice-gen.gemini-3-8-flash-tts)
