1. 语音转文字ASR
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. 语音转文字ASR

Speech to Text

Use echo_v2_realtime for live captions or calls. Your server sends short audio chunks and receives text while the speaker is talking. For an existing recording, use the file transcription API with echo_v2.
Start realtime transcription · WebSocket reference
Include model_id in both file and realtime requests.

File transcription · echo_v2#

Upload a recorded meeting or support call, or provide a URL to the recording, to receive its transcript.
Choose how numbers appear in orders or meeting notes. Use number_style=digits for digits or number_style=words to spell numbers in the spoken language. Omit it to let the model choose.
Tell the model which languages to expect. For a meeting held mainly in English with some Mandarin and Spanish, send language=en and repeat the additional-language field as additional_language_codes=zh and additional_language_codes=es.
Start file transcription

Realtime transcription · echo_v2_realtime#

Stream microphone or call audio to display text while participants are speaking.
Detect when someone has finished speaking. With commit_mode=turn_prediction, a voice assistant can act on the final transcript when the speaker finishes a request, such as asking for tomorrow’s flights.
Caption a bilingual meeting in the original languages. Set multilingual_mode=true to transcribe English and Chinese speech in their respective languages.
Label the speakers in a call. With speaker_diarization=true, distinguish lines spoken by the agent and the caller using speaker labels.
Provide a vocabulary of store names, medicines or product models. Send hotwords_library with the first audio chunk to guide recognition of these terms. Include up to 10,000 entries of 1–50 characters each.
Start realtime transcription
Release candidate v0.1.0-rc.1
Java SDK (ZIP)
Python SDK (wheel)
Go SDK installation and examples
GitHub release

Choose a model#

Recorded file → File transcription quickstart → File transcription parameters
Live call → Realtime transcription quickstart → Realtime transcription parameters
For recordings, choose echo_v2, echo_v1, lexis_v1 or the medical model echo_v2_medical.
For live audio, choose echo_v2_realtime or echo_v1_realtime.
The medical model supports file transcription over HTTP. For realtime WebSocket options, see Models and capabilities.

Before you start#

A valid MyVocal enterprise ASR API key.
Use file for uploads up to 1 GB, or cloud_url for a remote recording up to 2 GB.
The realtime quickstart sends raw 16 kHz mono signed 16-bit little-endian PCM samples.
HTTP base URL: https://openapi.myvocal.ai
Realtime URL: wss://openapi.myvocal.ai/asr/realtime
Authenticate HTTP requests with the API-Key header. For realtime WebSocket, pass api-key in the connection URL. Replace placeholder keys in the examples with your own.

API reference#

Create a file transcription: request parameters, response structure and errors.
Realtime transcription: connection parameters, audio messages and server events.
Get usage: date ranges, account details and usage fields.

Recent updates#

View the changelog
上一页
V2 bidirectional streaming synthesis (WebSocket)
下一页
Realtime transcription quickstart
Built with