Vocu Developers
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
Api Docs(Current)
User GuideBack To APP
Api Docs(Current)
User GuideBack To APP
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
  1. Voice Character
  • Overview
  • Authentication Method
  • Voice Character
    • Create a new voice character
      POST
    • Get the list of voice characters for the current user
      GET
    • Add a style to the voice character with the specified ID
      POST
    • Upload avatar for the voice character with the specified ID
      POST
    • Add a voice character to the account via a share ID
      POST
    • Get details of the voice character with the specified ID
      GET
    • Delete Voice Character with the specified ID
      DELETE
    • Get the one-time share link ID for the specified voice character ID
      GET
    • Delete Style of the specified ID for the Voice Character with the specified ID
      DELETE
    • Generate a voice-character preview clip
      POST
    • Update a voice character's name and description
      POST
    • Inspect and backfill missing voice-character fields
      POST
    • Get the transcription of a style's reference audio
      GET
    • Correct the transcription of a style's reference audio
      POST
    • Set a style as the default style
      POST
    • Update a style's name and description
      POST
    • Reset a style and reprocess its reference audio
      POST
    • Re-upload professional-cloning artifacts
      POST
    • Trigger automatic re-upload of professional-cloning artifacts
      POST
    • Migrate a voice character to v2.0
      POST
    • Migrate a voice character to v3.0
      POST
    • Start voice-character identity verification
      POST
    • Check voice-character identity-verification result
      POST
  • Voice Generation
    • Synchronous real-time voice generation
      POST
    • Create Asynchronous Voice Generation Task
      POST
    • Get the list of asynchronous generation tasks for the current user
      GET
    • Get the details of an asynchronous generation task by ID
      GET
    • Delete an asynchronous generation task by ID
      DELETE
    • Upload audio for voice conversion
      POST
    • Stream the full generated audio
      GET
    • Stream audio for a single content
      GET
    • Get the streaming playback URL for a whole generation task
      GET
    • List splitter configurations
      GET
    • Create a splitter configuration
      POST
    • Get splitter configuration details
      GET
    • Update a splitter configuration (diff mode)
      POST
    • Delete a splitter configuration
      DELETE
    • One-shot synthesis returning an MP3 stream directly
      GET
    • List synthesis parameter presets
      GET
    • Fetch a synthesized audio stream
      GET
    • Get SRT subtitles for synthesized audio
      GET
  • User Account
    • Get current user account information
  • Content Template
    • Create New Template
    • Get User's Template List
    • Update Template with Specified ID
    • Get Template Details with Specified ID
    • Delete Template with Specified ID
  • Real-time Synthesis
    • Create a Turbo real-time synthesis channel
    • List Turbo channels for the current user
    • Close a Turbo channel
  • Voice Design
    • Generate a voice preview from a text description
    • Generate a voice preview by remixing / translating existing audio
    • Confirm a voice design and create a voice character
    • Query voice-design quota
  1. Voice Character

Generate a voice-character preview clip

POST
https://v1.vocu.studio/api/voice/{id}/generatePreview
Render preview audio for a voice character's styles from a short text. The result is written back to metadata.prompts[].previewAudio,
a record is appended to metadata.previewGenerateHistory, and then the complete voice-character object is returned (not a single URL).
Omitting promptId generates one preview for every style; time scales with the number of styles.
Text length limit: after o200k_base tokenization it must not exceed 70 tokens (not 70 characters); exceeding returns VALIDATION_BAD_PARAMS.
language is strictly validated on this endpoint: only the 10 values auto / zh / en-us / ja / ko / fr-fr / pt / de / es / yue
are accepted (modules/validationConstants.js:3); an illegal value returns 400 VALIDATION_BAD_PARAMS immediately.
This differs from voice-creation / add-style endpoints (POST /api/voice, POST /api/voice/{id}/prompt) — those two run illegal language
through validateLanguageKeepNull and silently downgrade to auto without erroring. Also note it is en-us / fr-fr, not en / fr.
v4.0 voices have no upstream synthesizer; preview is rendered through the instruct pipeline, and neither mode nor vivid takes effect (modules/voiceFactory.js:1065-1106).
Legacy alias: /api/tts/voice/{id}/generatePreview — still supported for backward compatibility; use the primary path for new integrations.

Error responses take the shape { status, code, message, requestId? }. code is always the parent code — sub codes only change message and never appear in the body. requestId is present only on reportable-tier errors, so use the X-Vocu-App-Request-Id response header when troubleshooting (it is written unconditionally on every response). See the "Errors" document for the full code reference.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params

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 --location --request POST 'https://v1.vocu.studio/api/voice//generatePreview' \
--header 'Authorization: Bearer <token>'

Responses

🟢200成功
application/json
生成成功,返回更新后的完整语音角色对象
Bodyapplication/json

Example
{
    "status": 200,
    "data": {
        "id": "7c3d9a12-5e84-4b06-9f21-8ad3e6b40c57",
        "name": "温柔女声",
        "status": "pending",
        "from": "upload",
        "version": "v3.0",
        "originId": null,
        "userId": "2f81b40c-9d63-4e17-a5b8-31c7d0e926af",
        "avatar": "https://storage.vocu.ai/avatar/voice/2f81b40c-9d63-4e17-a5b8-31c7d0e926af/7c3d9a12-5e84-4b06-9f21-8ad3e6b40c57.png",
        "createdAt": "2026-07-14T06:22:08.000Z",
        "updatedAt": "2026-08-19T11:04:37.000Z",
        "deletedAt": null,
        "metadata": {
            "description": "偏日常叙述的温柔女声",
            "avatar": "https://storage.vocu.ai/avatar/voice/2f81b40c-9d63-4e17-a5b8-31c7d0e926af/7c3d9a12-5e84-4b06-9f21-8ad3e6b40c57.png",
            "prompts": [
                {
                    "id": "default",
                    "name": "默认",
                    "description": "平稳叙述",
                    "enhance": true,
                    "language": "zh",
                    "flags": [
                        "20250227-vcb",
                        "v3:20250828-vfa"
                    ],
                    "playBackAudio": "https://storage.vocu.ai/prompt/2f81b40c-9d63-4e17-a5b8-31c7d0e926af/default-playback.mp3",
                    "promptOriginAudioStorageUrl": "https://storage.vocu.ai/prompt/2f81b40c-9d63-4e17-a5b8-31c7d0e926af/default-origin.wav",
                    "baseSpeechRate": 4.6,
                    "previewAudio": "https://storage.vocu.ai/generate/1a6e0c74-93bf-4d28-8f05-6b2e7a1c94d3/1a6e0c74-93bf-4d28-8f05-6b2e7a1c94d3-preview-default.mp3"
                }
            ],
            "previewGenerateHistory": [
                {
                    "text": "今天天气不错,适合出门走走。",
                    "urls": [
                        "https://storage.vocu.ai/generate/1a6e0c74-93bf-4d28-8f05-6b2e7a1c94d3/1a6e0c74-93bf-4d28-8f05-6b2e7a1c94d3-preview-default.mp3"
                    ],
                    "generatedAt": "2026-08-19T11:04:37.000Z",
                    "cost": 14
                }
            ]
        }
    }
}
🟠400请求有误
🟠401没有权限
🟠404记录不存在
🟠409
🟠429
🔴500服务器错误
🔴503服务器故障
Modified at 2026-08-23 01:11:55
Previous
Delete Style of the specified ID for the Voice Character with the specified ID
Next
Update a voice character's name and description