我浏览了教程和其他问题,但没有找到有关如何为预先录制的音频文件选择路径并将其发送到服务进行转录的文档。我在教程中遇到了这段代码
curl -X POST -u <username>:<password>
--header "Content-Type: audio/flac"
--header "Transfer-Encoding: chunked"
--data-binary @<path>0001.flac
"https://stream.watsonplatform.net/speech-to-text/api/v1/recognize?continuous=true"
我可以在当前实现 websocket 接口的 android sdk 上做类似的事情吗?