fdvdv / app.py
Alfasign's picture
Create app.py
57bb312
raw
history blame contribute delete
647 Bytes
import requests response = requests.post( 'https://api.v6.unrealspeech.com/stream',
headers = { 'Authorization' : 'Bearer VqUmMUjnSPfuxttMk4SjWGVR9fbdVLBSwXxpWUq9iwDWYRQDhGQxfQ' },
json = { 'Text': '''<YOUR_TEXT>''', 'VoiceId': '<VOICE_ID>', 'Bitrate': '128k', } )
with open('audio.mp3', 'wb') as f: f.write(response.content)
import gradio as grdef greet(name):return "Hello " + name + "!!"iface = gr.Interface(fn=greet, inputs="text", outputs="text")iface.launch()