Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MrDalek
Visitor

Querying and adjusting the Roku TV's volume

Are there plans to expose the TV's volume level and/or volume control in the api?

I would like to automate my Roku TV's volume in response to events (e.g. when it is 8pm, turn volume to  X or change the input to PlayStation and set volume to Y)

Device Info:
<vendor-name>TCL</vendor-name>
<model-name>65S403</model-name>
<model-number>7106X</model-number>
0 Kudos
7 REPLIES 7
joetesta
Roku Guru

Re: Querying and adjusting the Roku TV's volume

Have you tried these?
https://sdkdocs.roku.com/display/sdkdoc/External+Control+API#ExternalControlAPI-ExternalControlServi...

Some Roku devices, such as Roku TVs, also support:
VolumeDown
 VolumeMute
 VolumeUp
 PowerOff
Roku TV devices also support changing the channel when watching the TV tuner input:
ChannelUp
  ChannelDown
Roku TV devices also support keys to set the current TV input UI: InputTuner
 InputHDMI1
 InputHDMI2
 InputHDMI3
 InputHDMI4
 InputAV1
aspiring
0 Kudos
MrDalek
Visitor

Re: Querying and adjusting the Roku TV's volume

Yes, I am aware that I can send commands to increase/decrease the TV's volume, but I do not believe there is a way to know what the current volume level is or whether or not the TV is muted.

If I knew the level, then I could send the correct number of increases/decreases to adjust the TV to the desired volume
0 Kudos
joetesta
Roku Guru

Re: Querying and adjusting the Roku TV's volume

worst case you could probably send 100 volumedown's in a row then assume it's at 0
aspiring
0 Kudos
MrDalek
Visitor

Re: Querying and adjusting the Roku TV's volume

yea, but that seems kludgey.... I did run a quick test and it takes ~30seconds to go from 100 to 0.... which would get annoying if I had the volume adjust when ever I open the Netflix app.
0 Kudos
joetesta
Roku Guru

Re: Querying and adjusting the Roku TV's volume

yeah it's definitely a hack, I could be wrong but my guess is you will be waiting a long, long time for Roku to add any such feature (expose TV's volume) assuming it's possible..
aspiring
0 Kudos
n-max
Newbie

Re: Querying and adjusting the Roku TV's volume

It would be versatile to expose a "SetVolume" instruction that accepted a parameter:

curl -d "" http://000.000.0.0:8060/keypress/SetVolume/{1-100}

For example:

curl -d "" http://000.000.0.0:8060/keypress/SetVolume/25   #sets volume to 25%

 

Re: Querying and adjusting the Roku TV's volume

need this too.. google voice can set to given percentage so must be a command for this.

0 Kudos