multi language tts

import pyttsx3

# Initialize the TTS engine
engine = pyttsx3.init()

# Get a list of the available voices
voices = engine.getProperty('voices')

# Print the languages of the available voices
for voice in voices:
    print(voice.language)

Comments