sdk/python/packages/flet-audio/README.md
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.txt or pyproject.toml.
[!NOTE] On Linux/WSL, you need to install
GStreamerlibrary.If you receive
error while loading shared libraries: libgstapp-1.0.so.0, it meansGStreameris not installed in your WSL environment.To install it, run the following command:
bashapt 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-tools
For examples, see these.