Text-to-Speech

무료
분류별 voicerss | 업데이트됨 21 दिन पहले | Media
인기

9.8 / 10

지연 시간

781ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

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

Rapid account: Raghib
Raghib
8 वर्ष पहले

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 8 वर्ष पहले

Please try to use audio format 44khz_16bit_stereo

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입