已录声音查询
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
phone | String | 可选 | XeT30IjBraEDAAXLGSOxF/xD | 手机端唯一识别码,手机端UTDID,TV唯一识别码(uuid+utdid)和手机唯一识别码(phone)必需传一个 | |
page_no | Number | 可选 | 1 |
|
分页获取,第几页 |
utdid | String | 可选 | XeT30IjBraEDAAXLGSOxF | TV端唯一识别码,UUID+UTDID,TV唯一识别码(uuid+utdid)和手机唯一识别码(phone)必需传一个 | |
request_id | String | 可选 | 14acd1478e7348a19f03f2cc70a499ee | 请求ID,仅用于联调 | |
page_size | Number | 可选 | 20 |
|
分页获取,每页返回记录数 |
uuid | String | 可选 | 98678AC079E425FC8A9EE2A413CB401E | TV端唯一识别码,UUID+UTDID,TV唯一识别码(uuid+utdid)和手机唯一识别码(phone)必需传一个 | |
locale_info | String | 可选 | {"country":"CN","language":"zh"} | 区域语言,如:中文简体 {"country":"CN","language":"zh"} | |
status | Number | 可选 | 2 | 状态:0录制中,1已训练中,2训练完成,手机端不传,电视端传status=2 |
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
result | Result | {} | 接口返回model |
|
1 2 3 4 5 6 7 8 9 10 11 12 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); YoukuTvspeechTtsQueryRequest req = new YoukuTvspeechTtsQueryRequest(); req.setPhone( "XeT30IjBraEDAAXLGSOxF/xD" ); req.setPageNo(1L); req.setUtdid( "XeT30IjBraEDAAXLGSOxF" ); req.setRequestId( "14acd1478e7348a19f03f2cc70a499ee" ); req.setPageSize(20L); req.setUuid( "98678AC079E425FC8A9EE2A413CB401E" ); req.setLocaleInfo( "{\"country\":\"CN\",\"language\":\"zh\"}" ); req.setStatus(2L); YoukuTvspeechTtsQueryResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | < youku_tvspeech_tts_query_response > < result > < success >false</ success > < voice_list > < voice_v_o > < id >1</ id > < voice_name >标准男声</ voice_name > < voice >xiaoyun</ voice > < finish_time >2020-03-03 16:57:52</ finish_time > </ voice_v_o > </ voice_list > < msg_info >参数错误</ msg_info > < msg_code >ERROR_PARAMTER</ msg_code > < http_status_code >200</ http_status_code > </ result > </ youku_tvspeech_tts_query_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|