## 设置内置语音接口 请求地址:`https://open-api.10ss.net/printer/setvoice` 请求方式:POST 注意: `仅支持型号中有字母`A`的机器!`例如`K4-WA、K4-GAD、K4-WGEAD、k6-WEAD等等` ### 所需参数 |名 称|类 型|描 述| |----|----|----| |client_id|string|开发者的应用ID,在[开放平台](https://dev.10ss.net)创建应用时获得| |access_token|string|授权的token 必要参数| |machine_code|string|易联云打印机终端号| |content|string|`播报内容` , `音量(1~9)` , `声音类型(0,1,3,4)` 组成json ! 示例 `["测试",9,0]` 或者是`在线语音链接`! 语音内容请小于24kb| |is_file|string|`true` or `false` , 判断`content`是否为`在线语音链接,格式MP3`| |aid|int|`0~9` , 定义需设置的语音编号,若不提交,默认升序| |sign|string|签名 详见API文档列表-[接口签名](../apiprotocol.md)| |id|string|UUID4 详见API文档列表-[uuid4](../apiprotocol.md)| |timestamp|int|当前服务器时间戳(10位)| ### 调用须知 `<VN>`aid`</VN>` 放在打印内容开头即可使用 ### 返回详情 ~~~ {"error":"0","error_description":"success","body":{"aid":"编号0~9"}} {"error":"8","error_description":"打印机信息错误,参数有误"} {"error":"9","error_description":"连接打印机失败,参数有误"} {"error":"10","error_description":"权限不足"} {"error":"12","error_description":"缺少必要参数"} {"error":"13","error_description":"打印失败,参数有误"} {'error':'47', 'error_description':'参数错误',"body":{"详细错误说明"}} ~~~