1. 金融行业定制TTS模型
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. 金融行业定制TTS模型

Full-duplex communication

Full-duplex speech over WebSocket#

Low latency for live interactions
WebSocket keeps a bidirectional connection open. The service can return TTS audio in chunks as it is generated, and your application can play those chunks on arrival.
In conversational and support applications, this can reduce the wait before the listener hears the first audio.
Continuous playback
The server can send chunks to the client before the rest of the audio has been generated.
Listeners can hear the beginning while synthesis continues. This is useful for long announcements and live interactions.
Full-duplex communication
Either side can send messages while the connection is open.
The client can interrupt, change the text or adjust settings such as speaking rate and voice as the protocol allows, without waiting for the previous request to finish.
Event-driven integration
Audio events let your application play incoming audio as it arrives.
Send multiple TTS requests on the same connection to reduce connection-management overhead.
Combine this with MyVocal speech recognition (ASR) for real-time voice interaction.
View the official SDKs
Java, Python and Go are available. The repository includes Chinese instructions.
上一页
Get usage
下一页
WebSocket integration guide
Built with