Back to Flet

flet-audio

sdk/python/packages/flet-audio/README.md

0.85.0.dev22.0 KB
Original Source

flet-audio

A Flet extension package for playing audio.

It is based on the audioplayers Flutter package.

Documentation

Detailed documentation to this package can be found here.

Platform Support

PlatformWindowsmacOSLinuxiOSAndroidWeb
Supported

Usage

Installation

To install the flet-audio package and add it to your project dependencies:

  • Using uv:

    bash
    uv add flet-audio
    
  • Using pip:

    bash
    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 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:

bash
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-tools

Examples

For examples, see these.