{"is_multi_speaker":false,"input_text":"The sun rises in the east and sets in the west.This simple fact has been observed by humans for thousands of years.","system_prompt":"Generate audio following instruction. <|scene_desc_start|> Audio is recorded from a quiet space. <|scene_desc_end|>"}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl--location--request POST 'https://api.302.ai/302/v2/higgs_audio/smart_voice/task' \
--header'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header'Content-Type: application/json' \
--data-raw'{
"is_multi_speaker": false,
"input_text": "The sun rises in the east and sets in the west.This simple fact has been observed by humans for thousands of years.",
"system_prompt": "Generate audio following instruction. <|scene_desc_start|> Audio is recorded from a quiet space. <|scene_desc_end|>"
}'