Text-to-Speech

GRATUITO
Por voicerss | Atualizado il y a 12 jours | Media
Popularidade

9.8 / 10

Latência

406ms

Nível de serviço

100%

Health Check

N/A

Voltar para todas as discussões

Why doesn't the sound play like this in web2py?

Rapid account: Raghib
Raghib
il y a 8 ans

def index():
# These code snippets use an open-source library.
response_post = unirest.post(“https://voicerss-text-to-speech.p.mashape.com/?key=key1”,
headers={
“X-Mashape-Key”: “key2”,
“Content-Type”: “application/x-www-form-urlencoded”
},
params={
“c”: “mp3”,
“f”: “8khz_8bit_mono”,
“hl”: “en-us”,
“r”: 0,
“src”: “Hello, world!”
}
)
return locals()

{{extend ‘layout.html’}}
<audio controls>
<source src=“response_post” type=“audio/mpeg”>
unsupported
</audio>

is it wrong to play audio like this?

Rapid account: Voicerss
voicerss Commented il y a 8 ans

Please try to use audio format 44khz_16bit_stereo

Junte-se à discussão - adicione o comentário abaixo:

Efetue login / inscreva-se para postar novos comentários