Fun-ASR语音识别
复制成功!
立即体验加入对比
语音识别
概述
语音识别
百聆多语言语音识别大模型,支持超过31种语言,支持语种自由切换,出海用户首推,尤其东南亚出海。fun-asr为该模型的升级版本,建议切换使用fun-asr。此版本为2025年8月25日的快照版本。
输入
音频
输出
文本
功能
定价
- 音频时长¥0.00022每秒
速率限制
- RPM每分钟请求数600
API 参考
获取 API Key复制成功!
12345678910111213141516171819
from http import HTTPStatus
from dashscope.audio.asr import Transcription
import dashscope
import os
import json
# 若没有配置环境变量,请用百炼API Key将下行替换为:dashscope.api_key = "sk-xxx"
dashscope.api_key = os.getenv("DASHSCOPE_API_KEY")
task_response = Transcription.async_call(
model='fun-asr-mtl-2025-08-25',
file_urls=['https://dashscope.oss-cn-beijing.aliyuncs.com/samples/audio/paraformer/hello_world_female2.wav',
'https://dashscope.oss-cn-beijing.aliyuncs.com/samples/audio/paraformer/hello_world_male2.wav']
)
transcribe_response = Transcription.wait(task=task_response.output.task_id)
if transcribe_response.status_code == HTTPStatus.OK:
print(json.dumps(transcribe_response.output, indent=4, ensure_ascii=False))
print('transcription done!')