Create an intelligent voice generation task, where the tone can be described using system_prompt From the open-source project: https://github.com/boson-ai/higgs-audioPrice: 0.03PTC/1k tokens
Request
Header Params
Body Params application/json
Examples
{"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-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--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|>"
}'