如何调用阿里本地化部署ASRv2.9.12service模型文件转写接口?
·
如何调用阿里本地化部署ASRv2.9.12service模型文件转写接口?
注意事项:
- 默认appkey和token均为default
- “file_link”: “http://test.com/test.mp3” 中的http://test.com/test.mp3"是笔者在内网测试服务器基于nginx实现下载的,ASR服务器一定要能wget请求到file_link,可以下载到音频文件下一步才能转写
curl -X POST \
http://ASR服务器IP:8101/stream/v1/filetrans \
-H "Content-Type: application/json" \
-d '{
"appkey": "default",
"token": "default",
"file_link": "http://test.com/test.mp3",
"version": "4.0",
"enable_words": false
}'

curl -X GET "http://ASR服务器IP:8101/stream/v1/filetrans?task_id=上一次调用/stream/v1/filetrans返回的task_id" -H "Content-Type: application/json"
更多信息可以参考官网 https://www.alibabacloud.com/help/zh/isi/developer-reference/api-reference-2,但可能和本地化v2.9.12service模型有一定差异
更多推荐



所有评论(0)