Working with Audio

The Librem 5 phone is supplied with various peripherals for playing and recording audio. This guide provides an overview of how the system manages audio and describes how to use audio features in applications.



This section will cover the use of audio in general and the APIs available. It will also cover the sound devices (speaker, headphones, microphone, modem) and specific APIs used to interact with them.

Playing Sounds

Applications written using Python and GTK can play sounds using the GSound API that is used for playing sounds when system events occur. The Play Sounds example uses this API to play both standard event sounds and sound files provided with the application.