Vocu Developers
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
Api Docs(Current)
User GuideBack To APP
Api Docs(Current)
User GuideBack To APP
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
🇺🇸 English
  • 🇺🇸 English
  • 🇨🇳 简体中文
  1. Voice Design
  • 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
    • Create Asynchronous Voice Generation Task
    • Get the list of asynchronous generation tasks for the current user
    • Get the details of an asynchronous generation task by ID
    • Delete an asynchronous generation task by ID
    • Upload audio for voice conversion
    • Stream the full generated audio
    • Stream audio for a single content
    • Get the streaming playback URL for a whole generation task
    • List splitter configurations
    • Create a splitter configuration
    • Get splitter configuration details
    • Update a splitter configuration (diff mode)
    • Delete a splitter configuration
    • One-shot synthesis returning an MP3 stream directly
    • List synthesis parameter presets
    • Fetch a synthesized audio stream
    • Get SRT subtitles for synthesized audio
  • 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
      POST
    • Generate a voice preview by remixing / translating existing audio
      POST
    • Confirm a voice design and create a voice character
      POST
    • Query voice-design quota
      GET
  1. Voice Design

Generate a voice preview from a text description

POST
https://v1.vocu.studio/api/voice/design
Generate preview audio for an entirely new voice from a natural-language description (e.g. "a mature male voice around thirty, slightly slow, a bit raspy").
This endpoint only produces a temporary session; it does not create a voice character. After you are satisfied you must call the "confirm voice design" endpoint to persist it as a real voice.

Session mechanism#

On success a sessionId is returned; the corresponding session data lives in Redis with a 1-hour TTL (modules/voiceFactory.js:42).
After expiry, calling confirm returns 404 VOICE_DESIGN_SESSION_EXPIRED.
Sessions are bound to the user and cannot be used across accounts.
After a successful confirm the session is deleted immediately; the same sessionId cannot be confirmed twice (the second time is likewise VOICE_DESIGN_SESSION_EXPIRED).

Quota and billing#

Each user gets 10 free calls per day (UTC+8); beyond that each call costs 100 credits (modules/voiceFactory.js:44-45).
When the free quota is exhausted and credits are insufficient, 403 is returned, internal sub-code BILLING_DESIGN_QUOTA_EXCEEDED,
the HTTP body's code is the parent code BILLING_QUOTA_EXCEEDED (modules/errorCodes.js:300).
Call the "query voice-design quota" endpoint to inspect remaining count and reset time in advance.

Concurrency control#

Each user has 1 design slot by default (configurable per user). When slots are full the request queues for up to 5 minutes;
only when the queue exceeds 10 people or the wait times out is 429 RATE_LIMIT_CONCURRENT returned (modules/voiceFactory.js:86-128).
Response time for this endpoint can therefore be substantially longer than the generation itself; clients should relax their timeout.

Content safety#

Both instruct and the model-produced text go through content-safety checks (admin / enterprise roles skip).
A block returns SAFETY_CONTENT_REJECTED; failure of the check service itself returns SAFETY_CHECK_FAILED.
This endpoint has a single path; there is no /api/tts/voice/... compatibility alias.

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 ********************

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/design' \
--header 'Authorization: Bearer <token>'

Responses

🟢200成功
application/json
试听生成成功,sessionId 用于后续确认
Bodyapplication/json

Example
{
    "status": 200,
    "data": {
        "sessionId": "d52a86f1-40cb-4e73-9b18-27ca6e0f5d94",
        "previewAudioUrl": "https://storage.vocu.ai/voice-design/2f81b40c-9d63-4e17-a5b8-31c7d0e926af/d52a86f1-40cb-4e73-9b18-27ca6e0f5d94.wav",
        "text": "你好,很高兴认识你,希望我们合作愉快。"
    }
}
🟠400请求有误
🟠401没有权限
🟠403禁止访问
🟠429
🔴500服务器错误
Modified at 2026-08-23 01:11:55
Previous
Close a Turbo channel
Next
Generate a voice preview by remixing / translating existing audio