2020-01-19 22:31:22 +01:00

9 lines
180 B
Python
Executable File

#!/usr/bin/python3
import requests
r = requests.post("https://api.alphacephei.com/tts", data={'text' : "Hello world!"})
fn = open("tts.wav", "wb")
fn.write(r.content)
fn.close()