i wanted to apply startup sound in it
so i added a command on startup
pactl -- set-sink-volume 0 90% && paplay /home/milesdredd/Downloads/FROM\ FIREFOX/tune/robo.wav &&pactl -- set-sink-volume 0 60%
also i used command to increase volume and decrease when startup sound finishes
but it didn't worked
but i came to know that at each boot , the default selected audio output device is no working ,
so for changing it
and it worked perfectly
so at last i used combination of command in startup to run
sleep 5s && pactl set-default-sink alsa_output.pci-0000_00_14.2.analog-stereo && pactl -- set-sink-volume 0 80% && paplay /home/milesdredd/Downloads/FROM\ FIREFOX/tune/robo.wav &&pactl -- set-sink-volume 0 60%
i used this command on terminal in terminal , and there it work
**but its not working at startup .**why?
pls help me.
not working ,
also different audio device is selected
after running this commend , system should select "speaker-built-in audio"
but its not happening
at the boot its still selected as default to "analog output " which is not running
I made a separate python script and call it from the startup since I thought it was easier to edit this scrip for fine adjustments rather than touching the startup statement every time I wanted to make a change.
Recommend that you use canberra-gtk-play.
From your start up, you can put the command /usr/bin/canberra-gtk-play --id="desktop-login" --description="startup login" You can add the sound file to your system sounds directory.
(I had to look up the directory) /usr/share/sounds/zorin/stereo
And i think the set of command i added in startup are working , but my default selected audio output device is not working i cant able to hear the sound , how to change ? Default audio devices