curl --request POST \ --url https://api.vidgo.ai/api/generate/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "elevenlabs/tts/eleven-v3", "input": { "text": "[whispers] Wait... that ticking is coming from inside the wall. [curious] This little brass key fits the crack. One turn, and... [excited] the whole ceiling is full of stars! [laughs] Grandpa, you built a planetarium in the attic. [exhales] All these years, it was waiting for us.", "voice": "Charlotte", "language_code": "en", "stability": 0.5, "timestamps": false, "apply_text_normalization": "auto" }}'
curl --request POST \ --url https://api.vidgo.ai/api/generate/submit \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "elevenlabs/tts/eleven-v3", "input": { "text": "[whispers] Wait... that ticking is coming from inside the wall. [curious] This little brass key fits the crack. One turn, and... [excited] the whole ceiling is full of stars! [laughs] Grandpa, you built a planetarium in the attic. [exhales] All these years, it was waiting for us.", "voice": "Charlotte", "language_code": "en", "stability": 0.5, "timestamps": false, "apply_text_normalization": "auto" }}'
每个示例都包含请求、对应的已完成任务响应和生成的音频。将请求提交到 POST https://api.vidgo.ai/api/generate/submit,然后使用提交返回的任务 ID 查询 GET https://api.vidgo.ai/api/generate/status/{task_id}。
阁楼上的星星
{ "model": "elevenlabs/tts/eleven-v3", "input": { "text": "[whispers] Wait... that ticking is coming from inside the wall. [curious] This little brass key fits the crack. One turn, and... [excited] the whole ceiling is full of stars! [laughs] Grandpa, you built a planetarium in the attic. [exhales] All these years, it was waiting for us.", "voice": "Charlotte", "language_code": "en", "stability": 0.5, "timestamps": false, "apply_text_normalization": "auto" }}
{ "model": "elevenlabs/tts/eleven-v3", "input": { "text": "[curious] Why does a violin sound different from a flute when both play the same note? Their fundamental frequency can match, but the overtones do not. [excited] Those extra vibrations give each instrument its own sound. At 440 Hz, the pitch is A; the pattern above it is what makes the voice of the instrument recognizable.", "voice": "George", "language_code": "en", "stability": 0.5, "timestamps": true, "apply_text_normalization": "on" }}