
讯飞智作
科大讯飞A one-stop voiceover platform for synthesizing ultra-realistic speech from text and generating digital human videos
Access Doubao speech synthesis 2.0 and streaming speech recognition 2.0 via WebSocket and HTTP interfaces, enabling real-time text-to-speech and speech-to-text transcription.
The speech services offered by Volcano Ark Agent Plan include two core capabilities—speech synthesis (TTS) and speech recognition (ASR)—accessible via WebSocket and HTTP protocols. TTS provides three interfaces: bidirectional-streaming WebSocket, unidirectional-streaming WebSocket, and HTTP, suited to real-time conversation, long-text narration, and non-real-time calls respectively. ASR transcribes real-time audio streams to text over WebSocket, offering a low-latency real-time mode and an accuracy-first mode. Before use, you need to obtain a dedicated API Key in the console and configure the corresponding Resource Id. Suitable for developers looking to integrate Chinese speech interaction capabilities.
Developers who need to integrate Chinese speech synthesis and recognition capabilities into apps, voice assistants, or real-time transcription scenarios; official materials are primarily based on API and Python code examples, and require a working knowledge of WebSocket/HTTP calls.
Obtain a dedicated API Key in the Volcano Ark console
Confirm the Resource Id: use seed-tts-2.0 for speech synthesis and volc.seedasr.sauc.duration for speech recognition
Choose the interface by scenario: bidirectional-streaming WebSocket for real-time conversation, unidirectional-streaming WebSocket for long-text narration, and HTTP for non-real-time calls
Before running the TTS bidirectional or unidirectional streaming examples, first create the official protocols.py file to encapsulate the WebSocket protocol logic
Replace the X-Api-Key in the code examples with your own dedicated API Key, and configure the speaker and audio parameters
For ASR, prepare 16000Hz, 16bit, mono WAV audio; non-WAV files can be converted with ffmpeg first
Cross-check parameters and interaction flows against the official API documentation
Confirm costs by referring to the AFP deduction rules within the plan and the overage pay-as-you-go rules pages
Before integration, you need to obtain a dedicated API Key from the console; models are distinguished via the X-Api-Resource-Id. This page does not specify regional, account-tier, or device restrictions—check the official website to confirm.
费用与套餐:The main content of this page contains no specific pricing figures; linked materials include entries on "AFP deduction rules within the plan" and "pay-as-you-go rules for overage usage," indicating that speech model billing may be subject to Agent Plan AFP deduction and overage pay-as-you-go terms. Actual costs should be verified on the official plan pages.