-
获取AK/SK - 语音交互服务 SIS
如果已生成过AK/SK,则可跳过此步骤,找到原来已下载的AK/SK文件,文件名一般为:credentials.csv。 如下图所示,文件包含了租户名(User Name),AK(Access Key Id),SK(Secret Access Key)。 图1 credential.csv文件内容 AK/SK生成步骤:
-
提交录音文件识别任务 - 语音交互服务 SIS
授权方法见配置OBS访问权限。该接口的使用限制请参见约束与限制,详细使用指导请参见SIS服务使用简介章节。 SIS服务控制台提供了录音文字识别的在线使用页面,用户无需编程即可使用服务功能。 图1 在线使用 调试 您可以在API Explorer中调试该接口,支持自动认证鉴权。API
-
APIG.0301报错 - 语音交互服务 SIS
如果在调用API时返回错误信息与错误码: "error_msg":"Incorrect IAM authentication information: decrypt token fail","error_code":"APIG.0301",是因为token解密失败。 解决方案:(1)请检查tok
-
获取录音文件识别结果 - 语音交互服务 SIS
Integer 一句的结束时间戳,单位ms。 result 是 TranscriberResult object 调用成功表示识别结果,调用失败时无此字段。数据结构参见result表。 表5 TranscriberResult 参数 是否必选 参数类型 描述 text 是 String
-
认证鉴权 - 语音交互服务 SIS
调用接口有如下两种认证方式,您可以选择其中一种进行认证鉴权。 Token认证:通过Token认证通用请求。 AK/SK认证:通过AK(Access Key ID)/SK(Secret Access Key)加密调用请求。 Token认证 Token的有效期为24小时,需要使用同一个Token鉴权时,可以缓存起来,避免频繁调用。
-
语音合成(http版) - 语音交互服务 SIS
BasicCredentials basicCredentials = new BasicCredentials() .withAk(ak) .withSk(sk) .withProjectId(projectId); 使用临时AK和SK BasicCredentials
-
一句话识别(http版) - 语音交互服务 SIS
BasicCredentials basicCredentials = new BasicCredentials() .withAk(ak) .withSk(sk) .withProjectId(projectId); 使用临时AK和SK BasicCredentials
-
语音合成(webSocket版) - 语音交互服务 SIS
函数名称 作用 void onTranscriptionConnect(); webSocket建立连接后后调。 void onTranscriptionClose(); webSocket连接关闭后回调。 void onTranscriptionFail(RttsResponse
-
热词管理 - 语音交互服务 SIS
arin') # 可选,热词表描述信息 create_request.set_description('test') create_result = hot_word_client.create(create_request) # 返回结果为json格式
-
SDK简介 - 语音交互服务 SIS
/v1/{project_id}/asr/transcriber/jobs 录音文件识别-提交请求 AsrCustomLongResponse getAsrLongResponse(String jobId) GET /v1/{project_id}/asr/transcriber/jobs/{job_id}
-
API概览 - 语音交互服务 SIS
录音文件识别接口 识别接口:POST /v1/{project_id}/asr/transcriber/jobs 状态查询:GET /v1/{project_id}/asr/transcriber/jobs/{job_id} 语音合成接口 语音合成接口 POST /v1/{project_id}/tts
-
录音文件识别 - 语音交互服务 SIS
QueryTranscriptionResp queryTranscriptionResp) { if (!StringUtils.isEmpty(queryTranscriptionResp.getErrorCode()) || queryTranscriptionResp
-
查询热词表列表 - 语音交互服务 SIS
vocabulary_id 是 String 热词ID。 name 是 String 热词表名。 language 是 String 热词表语言类型。 description 是 String 热词表描述。 状态码: 400 表7 响应Body参数 参数 参数类型 描述 error_code String
-
一句话识别(websocket版) - 语音交互服务 SIS
ner 函数 描述 void onTranscriptionConnect() webSocket连接建立后回调。 void onTranscriptionClose(); webSocket连接关闭后回调 void onTranscriptionFail(AsrResponse
-
实时语音识别连续模式 - 语音交互服务 SIS
status = .TRANSCRIBING } .buttonStyle(.borderedProminent) .disabled(self.status == .TRANSCRIBING)
-
实时语音识别连续模式 - 语音交互服务 SIS
er 函数 描述 void onTranscriptionConnect() webSocket连接建立后回调。 void onTranscriptionClose(); webSocket连接关闭后回调。 void onTranscriptionFail(AsrResponse
-
一句话识别Websocket接口 - 语音交互服务 SIS
描述 state 是 String 识别状态,包括start、end、fail。 traceId 是 String 用于日志问题追溯。 description 是 String 状态描述。 表5 RasrResponse 参数名 参数类型 说明 resp_type String 参数值为RESULT,表示识别结果响应。
-
实时语音识别 - 语音交互服务 SIS
描述 state 是 String 识别状态,包括start、end、fail。 traceId 是 String 用于日志问题追溯。 description 是 String 状态描述。 表5 RasrResponse 参数名 参数类型 说明 resp_type String 参数值为RESULT,表示识别结果响应。
-
查询热词表信息 - 语音交互服务 SIS
String 调用成功返回热词表名,调用失败时无此字段。 language 是 String 调用成功返回热词表语言类型,调用失败时无此字段。 description 是 String 调用成功返回热词表描述,调用失败时无此字段。 contents 是 Array of strings 调用成功返回热词列表,调用失败时无此字段。
-
状态码 - 语音交互服务 SIS
状态码 表1 状态码 状态码 说明 100 Continue 101 Switching Protocols 200 OK 201 Created 202 Accepted 203 Non-Authoritative Information 204 NO Content 205 Reset