2024-09-27 21:27:40 发布
网友
我尝试使用jupyterpython运行说话人识别API的注册配置文件代码。在
不幸的是,我收到一个错误:
{ "error": { "code": "NotFound", "message": "Resource or path can't be found." } }
代码如下:
identificationProfileId是URL路径的一部分,不是查询参数。您应该执行以下操作:
params = urllib.urlencode({ # Request parameters 'shortAudio': 'true', }) ... conn.request("POST", "/spid/v1.0/identificationProfiles/{0}/enroll?{1}".format(user1, params), body, headers)
identificationProfileId是URL路径的一部分,不是查询参数。您应该执行以下操作:
相关问题 更多 >
编程相关推荐