Sony Audio Control API - Cannot select A.F.D. sound field

373 Views Asked by At

(This post has been tagged "sony" for Sony Engineers to find, as per: https://developer.sony.com/develop/audio-control-api/get-support)

Hello. I have having a problem with the Sony Audio Control API. When formatting JSON requests to select Sound Fields, the following is successful:

{
    "id":4,
    "method":"setSoundSettings",
    "params":[{
        "settings":[{
            "target":"autoFormatDirect_2ch",
            "value":"2chStereo"
        }]
    }],
    "version":"1.1"
}

However, when "value" is set to "auto" instead of "2chStereo" it fails with:

{
    "error": [
        3,
        "illegal argument"
    ],
    "id": 4
}

According to the docs for setSoundSettings, "auto" is what I need to select AFD mode. https://developer.sony.com/develop/audio-control-api/api-references/api-overview-2#_setsoundsettings_v1_1

I am testing on a Sony STR-DN1080. Many thanks.

1

There are 1 best solutions below

8
On BEST ANSWER

By using the getSoundSettings

{
 "method":"getSoundSettings",
 "id":73,
 "params":[
  {
   "target":"autoFormatDirect_2ch"
  }
 ],
 "version":"1.1"
}

I get that for "autoFormatDirect_2ch" the following values are supported by STR-DN1080:

  • "2chStereo"
  • "multiStereo"
  • "direct"
  • "off"

but this is how you change settings for the A.F.D

If you want the receiver to use the AFD mode set the "soundField" to "audioFormatDecoding"

{
  "method":"setSoundSettings",
  "id":5,
  "params":[{
      "settings":[
        {
          "target":"soundField",
          "value":"audioFormatDecoding"
        }
      ]}
  ],
  "version":"1.1"
}

Unfortunately the list in the documentation of all valid inputs for the "setSoundSettings":"soundField" is not complete. So you have to use "getSoundSettings" to get all currently supported values.

Hope this helped