V
V
Volodya2021-12-21 18:31:01
Python
Volodya, 2021-12-21 18:31:01

Error in pycharm 'say�����' is not recognized as an internal or external command, operable program or batch file.?

Wrote a mini program that should take text and say it. But when I run it, I get an error
Code

import speech_recognition as sr
import os
import sys
import webbrowser
import subprocess

def talk(words):
    print(words)
    os.system("say" + words)

talk("Слово")


Here is the error

'say""�����' is not recognized as an internal or external command,
operable program or batch file.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question