Sony's Developer World forum

    • Home
    • Forum guidelines

    Maximum volume = 55?

    Audio Control API
    api audio control str-dn1080
    3
    12
    10582
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rewan last edited by rewan

      What this?

      R 1 Reply Last reply Reply Quote
      • R
        rewan @rewan last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote
        • G
          grolschie @david last edited by

          Hi @david,

          After setting the volume to 74 ("Max") with the IR remote, I sent this query:

          {
          	"id":8,
          	"method":"getVolumeInformation",
          	"params":[{
          		"output":"extOutput:zone?zone=1"
          	}],
          	"version":"1.1"
          }
          

          Here is the result:

          {
            "id": 8,
            "result": [
              [
                {
                  "maxVolume": 55,
                  "minVolume": 0,
                  "mute": "off",
                  "output": "extOutput:zone?zone=1",
                  "step": 1,
                  "volume": 55
                }
              ]
            ]
          }
          

          Note the maxVolume is 55 and the API response thinks the volume is set at 55 when it is actually currently 74.

          Questions:

          1. Is this the same with all other Sony AVRs supporting the API?
          2. Does your STR-DN1070 do the exact same thing? (if you have it handy, please)

          Rather than querying each device to find the maxVolume, ideally I would like to know the maxVolume for the STR-DN1070, STR-DN1060 and STR-DN860 please. That way I can set it once for each model.

          Thanks in advance.

          1 Reply Last reply Reply Quote
          • D
            david DeveloperWorld last edited by

            @grolschie I currently don't have access to any of the STR-XXX devices so I can't test, the intended usage is to query the device for the current volume and get the max and min volume, (I would scale the value so it is always between 0-100 from my device handler) in theory min and max volume this can be different for every device (don't think it is), but for example the device I have HT-Z9F and SRS-ZR5 have min 0 and max 50, and the same is then using the IR remote.

            What happens then you set the volume to 55 with setAudioVolume, will it be 74 of 55 on the device?

            G 1 Reply Last reply Reply Quote
            • G
              grolschie @david last edited by

              Hi @david. Thanks for replying. When I set the volume to 55, the receiver is set to 55. There's no scaling occurring - just a limit lower than the volume the receiver is capable of.

              When I set the volume to any number higher than "55", e.g. "volume":"777777" the receiver gets set to "55". The on-screen display shows "55". And the reply is:

              {
                "id": 8,
                "result": []
              }
              
              D 1 Reply Last reply Reply Quote
              • D
                david DeveloperWorld @grolschie last edited by david

                Hi @grolschie, just got a reply from the engineers and the max volume in the API is a safety feature, so you don't destroy your speakers by accident. The reason you don't have this limitation on the IR remote is that you do it incrementally and there for probably notice then it gets to loud. But since you can set the volume directly via the API a max cap is required.
                One case what was mentioned is if you are using google assistant and say "Hey google, set STR volume ten" this will set max volume.

                G 1 Reply Last reply Reply Quote
                • G
                  grolschie @david last edited by

                  Hi @david. Thank you very much for that. Did they say if it's the same limit for all AVRs that support the API?

                  1 Reply Last reply Reply Quote
                  • D
                    david DeveloperWorld last edited by david

                    Yes, it is the same hard upper limit (55) for al devices, but some devices like HT-ZF9 the hardware limitation can be lower (50 in this case) but you can never get above 55 for any device.

                    G 1 Reply Last reply Reply Quote
                    • G
                      grolschie @david last edited by

                      @david said in Maximum volume = 55?:

                      Yes, it is the same hard upper limit (55) for al devices, but some devices like HT-ZF9 the hardware limitation can be lower (50 in this case) but you can never get above 55 for any device.

                      Thank you very much @david. This is useful to know.

                      1 Reply Last reply Reply Quote
                      • G
                        grolschie last edited by

                        I was thinking, it would be beneficial to add this to the online documentation, please.

                        1 Reply Last reply Reply Quote
                        • First post
                          Last post
                        Developer World
                        Copyright © 2021 Sony Group Corporation. All rights reserved.
                        • Contact us
                        • Legal