此语言仍有 26 条内容或界面任务待翻译;未完成部分显示中文原文。
AI Tools Navigation / Audio & Music / 火山方舟 Agent Plan 语音模型(豆包语音合成 2.0 / 豆包流式语音识别 2.0)
音频与音乐 · 火山方舟(火山引擎)

火山方舟 Agent Plan 语音模型(豆包语音合成 2.0 / 豆包流式语音识别 2.0)

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.

AI 辅助整理
Speech SynthesisSpeech RecognitionTTSASRWebSocketReal-time Conversation

Tool Introduction

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.

Who It's For

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.

Recommended Steps

  1. 01

    Obtain a dedicated API Key in the Volcano Ark console

  2. 02

    Confirm the Resource Id: use seed-tts-2.0 for speech synthesis and volc.seedasr.sauc.duration for speech recognition

  3. 03

    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

  4. 04

    Before running the TTS bidirectional or unidirectional streaming examples, first create the official protocols.py file to encapsulate the WebSocket protocol logic

  5. 05

    Replace the X-Api-Key in the code examples with your own dedicated API Key, and configure the speaker and audio parameters

  6. 06

    For ASR, prepare 16000Hz, 16bit, mono WAV audio; non-WAV files can be converted with ffmpeg first

  7. 07

    Cross-check parameters and interaction flows against the official API documentation

  8. 08

    Confirm costs by referring to the AFP deduction rules within the plan and the overage pay-as-you-go rules pages

Know Before You Use

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.

Product Selection Assistant

让需求变成可修改的筛选条件

依据已录入参数生成条件,结果可查看和修改。帧率与性能需核对实测,不能仅凭算力数值保证。