我尝试在SpeechMatics API上使用多部分数据提交请求。在
API在curl中声明如下:
curl -F data_file=@my_audio_file.mp3 -F model=en-US "https://api.speechmatics.com/v1.0/user/17518/jobs/?auth_token=<some token>" # transcription
其中,数据文件应该是本地路径,而模型是此处文档中的语言,https://app.speechmatics.com/api-details#getJobs
使用请求库,我的代码如下,但似乎无法上载文件:
^{pr2}$我收到回复200,但文件似乎无法上传。在
我在一篇帖子的指导下使用了API的data和files参数。在
下面是我使用的剪切粘贴代码。在
我想这就是你要找的
相关问题 更多 >
编程相关推荐