Upcoming maintenance
Dear Customers and Partners.
This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.
This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.
We apologize for any inconvenience.
Maximum volume = 55?
-
Hi. The API limits the volume to a maximum of 55 (when the STR-DN1080 can go up to 74, I believe).
Is this intentional, to protect the receiver and/or speakers, since any device on the network can control AVR without any password/security? Or an oversight?
-
It might be an oversight, I don't know. I have never tested above 15, higher volume than that is to loud for me
Just to make this clear then you query the getVolumeInformation you get the max volume as 55?
And then you try to set the volume with setAudioVolume you can only set it to 55?
But with the remote and the volume controller on the device you can set it to 74?Is that correct?
-
What this?
-
This post is deleted! -
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:
- Is this the same with all other Sony AVRs supporting the API?
- 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.
-
@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?
-
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": [] }
-
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. -
Hi @david. Thank you very much for that. Did they say if it's the same limit for all AVRs that support the API?
-
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.
-
@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.
-
I was thinking, it would be beneficial to add this to the online documentation, please.