ℹ️涡轮流媒体
对于低延迟 Turbo 流式传输,请设置并使用 PlayHT 2.0 语音。 有关更多信息,请参阅支持的语音模型。 voice_engine``PlayHT2.0-turbo
.``?``!200 - OKaccept``application/json201 - CREATED{
"href": "https://play.ht/api/v2/tts/f0gZrOKBKL7veJ6o1M;1KjbyModJp92iPdBp4;w92633zG2nrMalFlEg?format=audio-mpeg",
"method": "GET",
"contentType": "audio/mpeg",
"rel": "item",
"description": "URL for fetching the generated audio as a playable stream of bytes"
}curl --location --request POST 'http://dev-cn.your-api-server.com/api/v2/tts/stream' \
--header 'AUTHORIZATION: YOUR_SECRET_KEY_HERE' \
--header 'X-USER-ID: YOUR_USER_ID_HERE' \
--header 'content-type: application/json' \
--data-raw '{
"text": "Hello from a realistic voice.",
"voice": "s3://voice-cloning-zero-shot/d9ff78ba-d016-47f6-b0ef-dd630f59414e/female-cs/manifest.json",
"output_format": "mp3"
}'{
"href": "https://play.ht/api/v2/tts/f0gZrOKBKL7veJ6o1M;1KjbyModJp92iPdBp4;w92633zG2nrMalFlEg?format=audio-mpeg",
"method": "GET",
"contentType": "audio/mpeg",
"rel": "item",
"description": "URL for fetching the generated audio as a playable stream of bytes"
}