Skip to content

Python TTS software using Google TextToSpeech API

License

Notifications You must be signed in to change notification settings

rpawk/google_tts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google TTS

Python TTS software using Google TextToSpeech API.

You need to set GOOGLE_APPLICATION_CREDENTIALS environment variable.

Examples

from google_tts import Voice

text = 'Hello world!'
language_code = 'en-US'
name='en-US-Wavenet-C'

voice = Voice(language_code, name)
voice.tts(text, 'test.mp3')
from google_tts import Voice

text = '안녕하세요!'
language_code = 'ko-KR'
gender = 'female'

voice = Voice(language_code, gender=gender)
voice.tts(text, 'test.mp3')

Supported voices and languages

List

Dependency

  • google-cloud-texttospeech

About

Python TTS software using Google TextToSpeech API

Topics

Resources

License

Stars

Watchers

Forks

Languages