battle programmers alliance
Would you like to react to this message? Create an account in a few clicks or log in to continue.

battle programmers allianceLog in

the LivinGrimoire Artificial General Intelligence software design pattern forum

descriptionpython TTS Emptypython TTS

more_horiz

Code:

import pyttsx3


if __name__ == "__main__":
    engine = pyttsx3.init()
    rate = engine.getProperty('rate')
    engine.setProperty('rate', 125)
    engine.setProperty('voice', )

    volume = engine.getProperty('volume')
    engine.setProperty('volume', 1.0)

    voices = engine.getProperty('voices')
    engine.setProperty('voice', voices[1].id)

    engine.say("Hello World!")
    engine.runAndWait()
    engine.stop()

descriptionpython TTS EmptyRe: python TTS

more_horiz
play mp3 file in python
(add file to project directory)

from playsound import playsound


if __name__ == "__main__":
playsound('roar.mp3')
privacy_tip Permissions in this forum:
You cannot reply to topics in this forum
power_settings_newLogin to reply