Text-to-Speech

無料
よって voicerss | 更新済み hace 22 días | Media
人気

9.8 / 10

レイテンシー

781ms

サービスレベル

100%

Health Check

N/A

すべてのディスカッションに戻る

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

Rapid account: Raghib
Raghib
hace 8 años

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 hace 8 años

Please try to use audio format 44khz_16bit_stereo

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿