dashscope.audio.asr.Transcription.async_call() 参数配置 参数 类型 默认值 说明 model string - 指定用于音视频文件转写的Paraformer模型名,可以从paraformer-v2、paraformer-v1、paraformer-8k-v1、paraformer-MTL-v1中进行选择。关于如何进行模型选择,请参考:模型概览。
dashscope.api_key='your-dashscope-api-key'task_response = dashscope.audio.asr.Transcription.async_call( model='paraformer-v2', file_urls=[,], language_hints=['zh',]) transcription_response = dashscope.audio.asr.Transcription.wait( task=task_response.output.task_id)transcription_response.statu...
项目或热词组创建不成功:请确保您在智能语音交互工作台中正确创建了项目和热词组,并检查项目appkey和热词id是否正确。 参数传递不正确:请检查在调用dashcope.audio.asr.Transcription.async_call时,是否正确传递了项目appkey和热词id。 热词设置时间问题:热词设置可能需要一定的时间才能生效。请稍等一段时间后,再次尝试...
添加OneApiRedirectingHandler实现代码 publicclassOneApiRedirectingHandler() :DelegatingHandler(newHttpClientHandler()){protectedoverrideTask<HttpResponseMessage>SendAsync(HttpRequestMessage request, CancellationToken cancellationToken){ request.RequestUri =newUriBuilder(request.RequestUri!) { Scheme ="http", Host ="o...
function-call:方法名称 model:模型名称 apikey:v1:audio:asr:transcription:paraformer-8k-v1 data[].task_status String 任务状态 PENDING:任务排队中 RUNNING:任务处理中 SUCCEEDED:处理成功 FAILED:处理失败 CANCELED:任务取消 SUCCEEDED data[].task_id ...
dashscope.api_key='your-dashscope-api-key'task_response = dashscope.audio.asr.Transcription.async_call( model='paraformer-v2', file_urls=['https://dashscope.oss-cn-beijing.aliyuncs.com/samples/audio/paraformer/hello_world_female2.wav','https://dashscope.oss-cn-beijing.aliyuncs.com/samples...