Groups
Groups

set other volume levels

113 views
Skip to first unread message

kurtkaufman

unread,
Jun 24, 2026, 4:12:20 PMJun 24
to Automate for Android
Is it possible to set the following audio volumes: ringtone, notifications, system, alarm along with media, which I believe is the default?

мJ ZЖУ

unread,
Jun 24, 2026, 11:46:48 PMJun 24
to Automate for Android

Yes it's possible to change it from Set audio volume block and one block for each type of audio.

Can you be more specific what condition you want to set volume audio here?

Kurt Kaufman

unread,
Jun 25, 2026, 7:40:28 AMJun 25
to automa...@googlegroups.com
Thank you for your reply. I would like, when I adjust the media volume up or down using the rocker (already set per Samsung accessibility) that all of the other volume levels should adjust accordingly. I normally keep all volume levels the same, so I should be able to assign the media volume level to all others (rather than having to be concerned about relative shifts in level).

Put another way: 
•Await change in media volume level.
•Assign changed media volume level to variable x.
•Set all other volume levels to x.

Samsung S26, One UI 8.5



--
You received this message because you are subscribed to a topic in the Google Groups "Automate for Android" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/automate-user/T2n63EU_R8c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to automate-use...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/automate-user/dac80775-10b6-4fbd-a72b-ad62f08cd48cn%40googlegroups.com.
Message has been deleted

мJ ZЖУ

unread,
Jun 25, 2026, 8:16:00 AMJun 25
to Automate for Android
I guess it's a bit tricky with Automate while you can set different trigger to switch to different volume.

For example if you press a button single click it could set all volume to 25% or if you press a button double click and set all volume to 100%, or if you don't press anything for certain minutes and set the volume to 0%.

Henrik "The Developer" Lindqvist

unread,
Jun 25, 2026, 8:59:09 AMJun 25
to Automate for Android
Use the Audio volume block to await a change in volume for a particular stream, then the Audio volume set block to change it for the other streams.
A major problem is how to avoid cyclic updating the volume forever, the example flow below DO NOT address that issue.

WARNING flow below is an untested example, may loop in indefinitely!

1. Flow beginning
2. Variable set: streams = [0,1,2,3,4,5,6,7,8,9,10]
3. For each: Container=streams, Entry value=stream
3.1. Fork -> [see "Await change fork" below]
3.2. (connect #3.1 OK to #3 IN

"Await change fork"
1. Audio volume: Stream=stream, Audio volume=volume
2. For each: Container=streams, Entry value=stream2
2.1. Expression true: stream != stream2
2.2. Audio volume set: Audio stream=stream2, Audio volume=volume
2.3. (connect #2.2 OK and #2.1 NO to #2 IN)

Kurt Kaufman

unread,
Jun 25, 2026, 1:08:06 PMJun 25
to automa...@googlegroups.com
Thank you, I will test this soon, when I have some time to spend on the project.

Kurt Kaufman

unread,
Jun 25, 2026, 9:53:57 PMJun 25
to automa...@googlegroups.com
How about a different approach: Rather than wait for a change, is it possible to assign through Automate the audio level(s) via the physical volume rocker switch? 
I currently have this assigned using Accessibility settings, but only the media or system volume level can be adjusted this way. I don't know whether this is a system limitation or perhaps just the way Samsung has it configured.

On Thu, Jun 25, 2026, 08:59 Henrik "The Developer" Lindqvist <henrik.l...@gmail.com> wrote:

kurtkaufman

unread,
Jun 26, 2026, 12:19:40 PMJun 26
to Automate for Android
Figured it out. The answer is yes, using the 3-second volume up&down button hold. This way I still can adjust media volume via Android accessibility function. :-)

Orlantus Smartus

unread,
Aug 12, 2026, 12:46:13 AM (yesterday) Aug 12
to Automate for Android
It is possible to add an Two output variable for Audio volume set block? Audio Stream & Current Volume.
Use case for Audio Stream Variable, can be use on play sound & speak block, some audio stream in some phones, volume cannot be set. If i know which audio stream the volume can be set, i will use the audio stream on play sound & speak block.
Use case for Current Volume Variable, set the volume 50%, the output actually is 53.3333%, the output can be use in "Audio Volume" block for precise checking of the volume.

Kurt Kaufman

unread,
Aug 12, 2026, 6:16:05 AM (yesterday) Aug 12
to automa...@googlegroups.com
I ended up using the volume up/down buttons for media, as Samsung provides in One UI. Separately, I have an Automate shortcut which copies the media volume level to a variable which is then used for all of the other adjustable volume levels. Not quite as convenient perhaps, but simple to arrange and it does what I required.

мj Zк*у

unread,
Aug 12, 2026, 7:41:38 AM (yesterday) Aug 12
to Automate for Android
While change the volume is more simple but audio stream may a little bit more difficult.

Depend on app you use to play or pause sound may be possible.

But blocking it may be not possible with simple setup.

Henrik "The Developer" Lindqvist

unread,
Aug 12, 2026, 9:55:56 AM (yesterday) Aug 12
to Automate for Android
Sorry i don't see that would be useful, since the block takes those values as input so the output would be the same.
The Audio volume (get) block should do the same percentage conversion (50% to 53.333%) therefore be just a "precise".
Reply all
Reply to author
Forward
0 new messages
Search
Clear search
Close search
Google apps
Main menu