def j_say(phrase):
os.system('curl "https://tts.voicetech.yandex.net/generate?format=wav&lang=ru-RU&speaker=zahar&emotion=good&key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -G --data-urlencode "text=' + phrase + '" > j_speech.wav')
os.system('aplay j_speech.wav')
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 133k 0 133k 0 0 496k 0 --:--:-- --:--:-- --:--:-- 496k
Воспроизведение WAVE 'j_speech.wav' : Signed 16 bit Little Endian, Частота 48000 Гц, Моно
import os,sys,subprocess
def j_say(phrase):
arg = subprocess.Popen(['curl','--basic','pornhub.com'],stdout=subprocess.PIPE,stderr=subprocess.STDOUT)
return arg.stdout.read().decode("cp866")
print(j_say(('abr')))