Gemini
Generate speech using Google's Gemini multimodal AI.
On this page
Requirements
- Google account with access to Gemini API
- Gemini API key from Google AI Studio
- VoiceThisText account with provider connections enabled
Google is restricting Gemini access for some service accounts. Existing service-account connections may still work. If generation fails, replace the credentials with an API key from AI Studio.
Get Your API Key
- Open Google AI Studio and sign in.
- Create an API key for the Google Cloud project that has Gemini access.
- Copy the key once and store it securely.
Keep the API key secure. If it is ever exposed, revoke it in AI Studio and generate a new one.
Connect Gemini
- In VoiceThisText, go to Providers.
- Click Add Provider and choose Gemini.
- Paste your Gemini API key.
- VoiceThisText fetches available models and voices that support audio output.
Models
Gemini supports text-to-speech via dedicated TTS models.
- gemini-2.5-flash-preview-tts — fast and cost-effective
- gemini-2.5-pro-preview-tts — higher quality, more expressive
Generating Audio
- Select the Gemini provider when creating an audio generation.
- Choose the model shown (flash/pro) and any available voice or format options.
- Generate. VoiceThisText sends the prompt to Gemini and stores the returned audio and transcript timing (if enabled).
- Embed the player or use the WordPress plugin to publish.
Troubleshooting
- Service account error — some Gemini projects now reject service accounts. Edit the connection and add an API key from AI Studio.
- Permission or quota errors — ensure billing is enabled and the Gemini API is allowed for your key/project.
- Model not listed — your key may not have access to that model; switch to a listed model or update your plan.
- Audio not returned — confirm you selected an audio-capable model and request format/voice supported by that model.
- Key leaked — rotate the key in AI Studio and update it in VoiceThisText.