voicethistext
Log in

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

  1. Open Google AI Studio and sign in.
  2. Create an API key for the Google Cloud project that has Gemini access.
  3. 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

  1. In VoiceThisText, go to Providers.
  2. Click Add Provider and choose Gemini.
  3. Paste your Gemini API key.
  4. 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

  1. Select the Gemini provider when creating an audio generation.
  2. Choose the model shown (flash/pro) and any available voice or format options.
  3. Generate. VoiceThisText sends the prompt to Gemini and stores the returned audio and transcript timing (if enabled).
  4. 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.