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

SDKs and examples

Find the endpoint you are using and download the SDK for your language. Each SDK implements a particular message protocol.

Dialogue · Multiple contexts#

Endpoint reference
Python · v1.1.2: Download ZIP · Installation and examples
Java · v1.1.2: Download ZIP · Installation and examples
Go · v1.1.2: Download ZIP · Installation and examples

Standard TTS · Single connection#

Endpoint reference
Python · v1.0.2: Download ZIP · Installation and examples
Java · v1.0.2: Download ZIP · Installation and examples
Go · v1.0.2: Download ZIP · Installation and examples

Standard TTS · Multiple contexts#

Endpoint reference
Python · v1.0.1: Download ZIP · Installation and examples
Java · v1.0.1: Download ZIP · Installation and examples
Go · v1.0.1: Download ZIP · Installation and examples

V2 bidirectional streaming#

Endpoint reference
Python · v1.0.2: Download ZIP · Installation and examples
Java · v1.0.2: Download ZIP · Installation and examples
Go · v1.0.2: Download ZIP · Installation and examples

Install and run#

Read the package’s README.md and usage notes before running its example. For Python, install the wheel. For Java, configure the JAR and runtime dependencies. For Go, follow the module instructions.
Replace the example API key and voice ID with your own. Store the key in a server environment variable or server-side configuration.

Dialogue SDK: choose a model and language#

The dialogue SDK defaults to myvocal_v3. Specify V4 or V3 Turbo explicitly. Language codes may contain two or three letters.

Python#

Java#

Go#

The snippets show configuration only. Each package README includes imports, connection, audio handling and shutdown. Set the model to myvocal_v3_turbo for Turbo. The standard TTS SDKs do not support these two models.
上一页
FAQ
下一页
Skyblight text to speech
Built with