WaveNet & Studio voices. 1M chars/month free.
Available Models
Monthly Requests
1M characters/month (standard voices)
300">"text-purple-400">from google.cloud 300">"text-purple-400">import texttospeech
client = texttospeech.TextToSpeechClient()
synthesis_input = texttospeech.SynthesisInput(text=300">"Hello world")
voice = texttospeech.VoiceSelectionParams(language_code=300">"en-US", ssml_gender=texttospeech.SsmlVoiceGender.NEUTRAL)
audio_config = texttospeech.AudioConfig(audio_encoding=texttospeech.AudioEncoding.MP3)
response = client.synthesize_speech(input=synthesis_input, voice=voice, audio_config=audio_config)
300">"text-purple-400">with open(300">"output.mp3", 300">"wb") 300">"text-purple-400">as out:
out.write(response.audio_content)Google Cloud Text-to-Speech offers Neural2 and Studio voices with 1M characters/month free (standard voices) and 1M bytes for WaveNet. Extensive language support.
Methodology: apivault.dev/methodology