产品:泥人语音播放控制器

泥人语音播放控制器

编解码协议

选择官方标准协议

基础信息

物模型

物模型定义

  • 物模型TSL
{
  "events": [],
  "properties": [],
  "functions": [
    {
      "id": "play_ctl",
      "name": "播放控制",
      "async": false,
      "output": {},
      "inputs": [
        {
          "id": "control",
          "name": "控制",
          "valueType": {
            "type": "int"
          },
          "description": "1 - 启动播放 、2 - 停止播放 、3 - 暂定播放 、4 - 恢复播放"
        },
        {
          "id": "tts",
          "name": "文本",
          "description": "tTS:文本转语音",
          "valueType": {
            "type": "string"
          }
        }
      ]
    }
  ],
  "tags": [
    {
      "id": "geoPoint",
      "name": "地理位置",
      "valueType": {
        "type": "geoPoint"
      },
      "expands": {
        "readOnly": "false",
        "storageType": "direct"
      }
    }
  ]
}

物模型-参数

物模型-功能

  • play_ctl 播放控制
{
    tts:"xxx",    //  播放内容
    control:1     // 控制: 1 - 启动播放 、2 - 停止播放 、3 - 暂定播放 、4 - 恢复播放
}

物模型-事件

物模型-标签

网关协议

不使用网关协议进行终端对接

流文件

参考产品开发示例

文档更新时间: 2023-06-12 11:11   作者:管理员