1. Overview and quickstart
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. Overview and quickstart

Choose a model and endpoint

Choose the endpoint based on how text arrives and how you will play the audio. HTTP streaming returns the audio in chunks. Use WebSocket to continue adding text during synthesis.

Choose by use case#

What you needEndpoint
Submit text once and receive a complete audio fileNon-streaming HTTP
Submit text once and play audio as it arrivesStreaming HTTP
Send text incrementally for one speech taskStandard TTS · Single connection
Manage independent synthesis tasks on one connectionStandard TTS · Multiple contexts
Generate dialogue with several speakers, or use V4 or V3 Turbo over WebSocketDialogue · Multiple contexts

HTTP models#

myvocal_v4: high-quality content production.
myvocal_v3_turbo: live interactions.
myvocal_v3: expressive dialogue and character performances.
multilingual_v2: natural, consistent multilingual speech.
Turbo (called “Tubro” in earlier documentation): omit model_id to use the default.
These models support both HTTP synthesis endpoints in this section. See Models.

WebSocket models#

Standard TTS · Single connection or multiple contexts#

Use multilingual_v2 or flash_v2_5. A single connection handles one speech task. Multi-context TTS separates tasks using context_id. Every task on that connection uses the voice in the URL.

Dialogue · Multiple contexts#

Use myvocal_v3 (default), myvocal_v4 or myvocal_v3_turbo. Register voices for each context and send each speaker’s lines in inputs. You can also use a single voice.
Choose the matching multi-context protocol
Standard TTS sends text messages. Dialogue sends inputs. Their URLs, models, completion signals and close operations differ. Use the corresponding SDK.

Minimum configuration#

Pass the api-key header. The HTTP example uses mp3_44100_128, while the dialogue WebSocket example uses mp3_128. Choose the format identifiers listed for the endpoint you are using.
Use priority=dedicated_concurrency for WebSocket. See the HTTP endpoint parameters for HTTP routing and concurrency options.

Other dedicated endpoints#

V2 bidirectional streaming synthesis has its own protocol and SDK. See its reference for the model and message formats.
上一页
Models
下一页
Supported languages
Built with