[Solved] Increase loudness of Alarm Clock

Gloster

Active Member
Joined
Feb 7, 2024
Messages
149
Reaction score
25
Credits
1,365
I use Ubuntu-Mate 24.04, there the Gnome Alarm Clock :

Bildschirmfoto zu 2025-01-06 18-59-02.png


Is there any way to increase the loudness (link to an mp3 file or a configuration file or something else) ?
 


There's no way to do so in the program itself. (I just checked.)

If you can find the file that's used by the alarm clock, you might be able to edit it with Audacity. You'd highlight the whole file and then increase the volume. You'd then export the file. You can then override the file that Gnome Clocks is using.

(That's the name. It took a minute for me to find it. sudo apt install gnome-clocks)

I haven't a clue what file it's using, nor where it is located. You could ask the people who wrote/support the program.

Workspace 1_001.png


It would look something like that, though mine is pretty heavily customized as I do most of my music production/editing right there in Audacity.
 
Thank you, the file : alarm-clock-elapsed.oga, (refer to https://github.com/GNOME/gnome-clocks, can be played with vlc) but it will be also integrated in the binary.
It is a meson build, I will try it to replace the file and try a meson build (as "usual" for open source (e.g., the Avionik-SW-Industry does open source for the customer), no dependencies given, try and error will be necessary).
 
It's a bit crazy that you have to rebuild the project, but hopefully that works.

Just use Audacity to crank it up as far as it can go without clipping. It will likely default to those settings and all you'll need to do is apply it. Again, be sure to select the entire .oga file before applying the volume change.

If it's already at full volume, I'm not sure what we can do to it. However, files usually aren't full volume in my experience (and I've tweaked a bunch of stuff like that.)
 
If the compilation works, I will replace the file by very loud hard rock.
 
My usual alarm is Crazy Train. Waking up to Ozzy (and Randy) is a good way to start the day.

Though, I seldom need an alarm. I'm usually awake before the chickens.
 
What I did :
installed valac
with the result : meson.build:15:6: ERROR: Dependency "gtk4" not found
It bores me to tears, a simple open source application, hidden as possible, to compile.
Any idea ? But please the command line !
 
You can disable the max-volume limit within gnome and then turn up your sound settings? Run the following, then you should be able to increate your system sound settings which will also increase the sound volume for the alarm clock.
Code:
 gsettings set org.gnome.desktop.sound allow-volume-above-100-percent true
Or you can use the graphical "dconf-editor" to set that.
 
I did try to compile, but gtk4 newest version will be needed. I did try to compile with the result :
Dependency wayland-protocols found: NO found 1.34 but need: '>= 1.36' (cached)
The complete meson build log attached.
gtk4, the newest version also as deb-package available ?
 

Attachments

You can disable the max-volume limit within gnome and then turn up your sound settings?

Hmm... I didn't ask that question. I probably should have.

My impression was that they wanted just that file to play louder than other sounds on their device.

(The image is me doing the same thing, but for notifications. It didn't need to be cranked to full volume in the media file. So, the graph shows that it can go quite a bit louder.)
 
My impression was that they wanted just that file to play louder than other sounds on their device.
Search in dconf-editor for alarm and if there is a setting for, probably not. That's why I made the suggestion that I mentioned.
 
PulseAudio Volume Control:

Use pavucontrol (PulseAudio Volume Control) to adjust the volume of individual applications.
Install it using the command:sudo apt-get install pavucontrol

Open PulseAudio Volume Control and go to the "Playback" tab. When the alarm is playing, you can adjust its volume independently from the system volume.
 
Now I have found a solution to replace the existing sound file : beep, beep by a new created file alarm-clock-elapsed.oga
(refer to ./gnome-clocks-45.0/data/sounds (respective sources))
What I did :

0.download the sources : https://github.com/GNOME/gnome-clocks/tags and there use Tag 45 (the most you will need you will have preinstalled in Mate 24.04) and unzip it.

1. Generate a new alarm-clock-elapsed.oga and copy it to /gnome-clocks-45.0/data/sounds
I did cut with ffmpeg 9sec of the mp3 file
Increased the loudness of the file via Audacity (filter) and via ffmpeg generated the respective oga-file :

Code:
ffmpeg -ss 0 -t 9 -i '"Queen - Another One Bites the Dust.mp3" output.mp3

Read output.mp3 with Audacity to increase loudness => output.m4a

Code:
ffmpeg -i output.m4a -c:a libvorbis -b:a 256k alarm-clock-elapsed.oga

2 cd to the directory where you will find meson.build
Code:
meson builddir

The respective builddir will be created, if you get some error messages, use synaptic to install the respective packages.
And try again until no error.

3.
Code:
cd builddir
ninja

4. The binary gnome-clocks you will find in :
gnome-clocks-45.0/builddir/src

5. open caja as administrator. Open /usr/bin and rename the existing gnome-clocks to gnome-clocks_old and copy the new created binary to /usr/bin.
(It is necessary to have a preinstalled version of gnome-clocks)

How to install meson, ninja, an easy description you will find here : https://github.com/vivictorg/vivictpp -> Building Ubuntu

Attached a screen-record with calling clocks + elapsed time + new sound
 

Attachments

If someone will be interested : The binary of the new "beep, beep" attached as jpg : file extension renamed

It does not work, only jpg files will be accepted by the system.
 


Members online


Top