Answer the question
In order to leave comments, you need to log in
How to play a Python sound?
I have this piece of code
import os
def talk(words):
print(words)
os.system (words)
talk ("Это бот")
sh: 1: Это: not found
Answer the question
In order to leave comments, you need to log in
The os.system() function is used to run programs. You probably don't have any executable files named "This" on your system.
You will need a program such as say, festival, espeak and the like. Then you need to call likeos.system(say words)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question