setSpeakerSettings (v1.0)

Estimated reading time: 1 minute

此API提供了更改与speaker设置相关的设置的功能。

语法

http://<Base URL>/audio

认证级别

generic

需求

params' Elements
An object composed of the following pair(s).
name type multiplicity default description
settings (object-array) 1 Object to accommodate one or more target/value pair(s).
target string 1 目标名字。(UI设置目标)
  • “电视位置”-根据显示位置设置声音。
  • “低音炮”-设置低音炮扬声器的音量。 注意范围和步长值 根据设备的不同而不同。
  • “次低音频率”-调整无线次低音的截止频率。 所有 低于截止频率的频率被输出到无线网络 用低音炮代替显示音箱。
  • “低音炮相位”-设置低音炮的相位极性。
  • “低音炮功率”-设置无线低音炮的功率控制方法。
value string 1 要为目标名称设置的值。
  • If "target" is "tvPosition"
    • “桌面放置”-把显示器放置在桌面上的时候,提供最好的声音质量。
    • “壁挂式”-当您将显示器挂在墙上时,提供最佳的音质。
  • If "target" is "subwooferLevel"
    • 0 - Minimum value.
    • :(step by 1)
    • 24 - Maximum value.
  • If "target" is "subwooferFreq"
    • 0 - Minimum value.
    • :(step by 1)
    • 30 - Maximum value.
  • If "target" is "subwooferPhase"
    • "normal" - normal.
    • "reverse" - reverse.
  • If "target" is "subwooferPower"
    • "on" - on.
    • "off" - off.
JSON Example
{
    "method": "setSpeakerSettings",
    "id": 62,
    "params": [{"settings": [{
        "value": "wallMount",
        "target": "tvPosition"
    }]}],
    "version": "1.0"
}

反馈

result's Elements
Not necessary.
JSON Example
{
    "result": [],
    "id": 62
}
Error Code
The following error codes are important for this API. Refer to error code for other errors.
code Explanation
40004 当设置多个设置时,一个或多个设置不会被错误设置。客户端需要调用成对的api (getXXXSettings)来确定哪些参数没有更新。
Last modified: 13 Feb 2019