A Flet extension package for playing audio.
It is based on the audioplayers Flutter package.
Detailed documentation to this package can be found here.
| Platform | Windows | macOS | Linux | iOS | Android | Web |
|---|---|---|---|---|---|---|
| Supported | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
To install the flet-audio package and add it to your project dependencies:
-
Using
uv:uv add flet-audio
-
Using
pip:pip install flet-audio
After this, you will have to manually add this package to your
requirements.txtorpyproject.toml.
Note
On Linux/WSL, you need to install GStreamer library.
If you receive error while loading shared libraries: libgstapp-1.0.so.0, it means GStreamer is not installed in your WSL environment.
To install it, run the following command:
apt install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-toolsFor examples, see these.