ist das möglich irgendwie Text für Python-zu-Sprache zu verwenden, 3,5Speech Text-to-Speech mit Python 3.5
import speech
import time
response = speech.input("Say something, please.")
speech.say("You said " + response)
def callback(phrase, listener):
if phrase == "goodbye":
listener.stoplistening()
speech.say(phrase)
listener = speech.listenforanything(callback)
while listener.islistening():
time.sleep(.5)
Fehler:
Traceback (most recent call last):
File "D:/project/prog_2.py", line 1, in <module>
import speech
File "C:\Users\User\AppData\Roaming\Python\Python35\site-packages\speech.py", line 157
print prompt
^
SyntaxError: Missing parentheses in call to 'print'
Ich habe Problem mit GTTS vielleicht einige Ratschläge hier:
gTTS HTTPError: 403 Client Error: Forbidden for url
Mögliches Duplikat [Was bedeutet "Syntaxerror: Klammern im Aufruf von 'Druck' Missing"? bedeutet in Python] (http: // Stackoverflow .com/questions/25445439/what-does-syntaxerror-fehlende-klammern-in-call-to-print-gemein-in-python) –