является то, что можно как-то использовать текст речи для питона 3,5Speech текста в речь с питоном 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)
ошибка:
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'
У меня есть проблемы с ГТЦ, возможно, некоторые советы здесь:
gTTS HTTPError: 403 Client Error: Forbidden for url
Возможный дубликат [Что делает "SyntaxError: Missing круглые скобки в вызове 'печать'"? означает в Python] (HTTP: // StackOverflow .com/questions/25445439/what-does-syntaxerror-missing-roundheses-in-call-to-print-mean-in-python) –