It should be possible to write a shell script which monitors the decibels of the specific browser e.g., "Firefox": "AudioStream", "Chrome", "Chromium" "Playback" output to speakers or headphone
pactl list sink-inputs and dynamically set the volume pactl [options] set-(sink-input|source-output)-volume #N VOLUME [VOLUME ...] On Tue, Jan 19, 2021 at 6:13 PM Christian Schmitz <[email protected]> wrote: > Hi everyone: > > I am in the office with my computer ( Linux tumbleweed), and my kid of 3 > years > old is in another computer showing videos from youtube. Both computer have > a > normal user sound configuration ( each computer playing their own sound). > > Some videos are quieter and another are very loudness. With my first kid > (10 > years back) i do: > 1)SSH as root > 2)amixer and upper or lower the volume. > > Now i cant find a way to do this with pulseaudio. If i do > 1)I do ssh as root successfully > 2) > 2.1) # amixer > ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: > Connection > refused > > 2.2) # alsamixer > ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: > Conexión > negada (Connection refused in spanish) > > > 2.3) if i do sudo to the same linux user that is showing the video: > > user@computer> amixer > XDG_RUNTIME_DIR (/run/user/0) is not owned by us (uid 1001), but by uid 0! > (This could e.g. happen if you try to connect to a non-root PulseAudio as > a > root user, over the native protocol. Don't do that.) > ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: > Connection > refused > > How i can control the sound volume of my kid from my computer? > > Thanks all > Christian Schmitz > > -- > Be Free, Be Linux > _______________________________________________ > pulseaudio-discuss mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss >
_______________________________________________ pulseaudio-discuss mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss
