1. 文字转语音大模型
MyVocal AI语音大模型API文档
English
  • 中文
  • English
  • 文字转语音大模型
    • API reference
      • Voice management
        • List voices
        • Create a voice
        • Delete a voice
      • 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. 文字转语音大模型

API reference

Choose an endpoint by task. For your first call, start with the overview and quickstart.

HTTP synthesis#

Non-streaming synthesis: receive the complete audio in one response.
Streaming synthesis: submit text once and receive the audio in chunks.

WebSocket synthesis#

Standard TTS · Single connection: send text incrementally for one speech task.
Standard TTS · Multiple contexts: manage independent tasks on one connection.
Dialogue · Multiple contexts: synthesize dialogue using V3, V4 or V3 Turbo, with one or more voices.
The two multi-context protocols use different messages and completion rules. See Choose a model and endpoint.

Voices, usage and keys#

Voice management · Usage and request history · Sub-key management

Models and synthesis endpoints#

For the complete mapping, see Choose a model and endpoint.

Models#

See Models for features and use cases.

Output languages#

V4 and V3 Turbo support the same 94 languages, including Mandarin zh and Cantonese yue. See all codes and where to send them.

HTTP audio formats#

For MP3, PCM and telephone audio, see Audio formats and playback.

Choose a regional server#

The default is https://api.voicelibrary.co. With priority=dedicated_concurrency, you can use one of the regional hosts below with the same endpoint path.
RegionHostname
United Statesapi.us.voicelibrary.co
Irelandapi.eu.voicelibrary.co
Tokyoapi.jp.voicelibrary.co

Non-streaming#

HTTP path: /enterprise/v1/tts/{voice_id}/.

Streaming#

HTTP path: /enterprise/v1/tts/{voice_id}/stream.

Standard multi-context TTS WebSocket#

Use wss:// and /enterprise/v1/tts/{voice_id}/websocket/multi. Choose a model supported by this standard TTS endpoint.

Standard single-connection TTS WebSocket#

Use wss:// and /enterprise/v1/tts/{voice_id}/websocket. These regional addresses apply to standard TTS. See the dialogue reference for its address.
下一页
Voice management
Built with