如何在Python中执行这种curl请求?

2024-10-04 01:22:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要在Python中运行以下curl命令:

curl "https://tts.voicetech.yandex.net/generate?format=wav&lang=ru-RU&speaker=zahar&emotion=good&key=<API‑key>" -G --data-urlencode "text=This text is ready" > speech.wav

Tags: keytexthttps命令formatlangnetru