MCPcopy Index your code
hub / github.com/geekcomputers/Python / tts

Function tts

VoiceAssistant/Project_Basic_struct/TextTospeech.py:4–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def tts():
5 audio = "speech.mp3"
6 language = "en"
7 sentence = input("Enter the text to be spoken :- ")
8
9 speaker = win32com.client.Dispatch("SAPI.SpVoice")
10 sp = speaker.Speak(sentence)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected