1. Voice management
MyVocal AI语音大模型API文档
English
  • 中文
  • English
  • 文字转语音大模型
    • API reference
      • Voice management
        • List voices
          GET
        • Create a voice
          POST
        • Delete a voice
          DELETE
      • HTTP synthesis
        • Streaming HTTP synthesis
        • Non-streaming HTTP synthesis
      • WebSocket synthesis
        • Standard TTS · Single connection
        • Standard TTS · Multiple contexts
        • Dialogue · Multiple contexts
      • Usage and request history
        • Get master key usage
        • Look up a request by ID
        • Get usage by voice
      • Sub-key management
        • Create a sub-key
        • List sub-keys
        • Get sub-key details
        • Update a sub-key
        • Get sub-key usage
    • Overview and quickstart
      • Models
      • Choose a model and endpoint
      • Supported languages
      • Audio formats and playback
      • FAQ
      • SDKs and examples
  • 金融行业定制TTS模型
    • Skyblight text to speech
      • Streaming text to speech
      • Non-streaming text to speech
      • List voices
      • Delete a voice
      • Create a voice
      • Get usage
    • Full-duplex communication
      • WebSocket integration guide
      • V2 bidirectional streaming synthesis (WebSocket)
  • 语音转文字ASR
    • Overview and quickstarts
      • Realtime transcription quickstart
      • File transcription quickstart
      • Models and capabilities
      • Changelog
    • API reference
      • Realtime transcription over WebSocket
      • Create a file transcription
      • Get ASR usage
  • 企业客户声音定制服务
    • Your custom brand voice
  1. Voice management

Create a voice

POST
https://api.voicelibrary.co/enterprise/v1/voices/add

Upload one audio file#

Each audio file can be up to 10 MB. Supported formats are MP3, WAV, WEBA and PCM.
The cloning method depends on the duration of usable audio
Less than five minutes of usable audio: Instant cloning.
More than five minutes of usable audio: Premium cloning.

Upload multiple files#

Upload up to five audio files in one request, each up to 10 MB.

Endpoint#

Shared voices#

Shared voices and usage instructions

请求参数

Header 参数

Body 参数multipart/form-data

返回响应

🟢200voices/add
application/json
Bodyapplication/json

请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://api.voicelibrary.co/enterprise/v1/voices/add' \
--header 'api-key;' \
--form 'name="New_Voice"' \
--form 'files=@""' \
--form 'remove_background_noise="false"'
响应示例响应示例
{
    "voice_id": "string"
}
上一页
List voices
下一页
Delete a voice
Built with