Pipewire Controller:
Project description
Python controller with pipewire
Python controller, player and recorder via pipewire's commands
- Pipewire is a project that aims to greatly improve handling of audio and video under Linux. (Better than pulseaudio or jack)
Requirements
- A pipewire version installed (0.3.30+) (clean or via pulseaudio) is needed, to check if you have pipewire installed and running, run this command, if the output is different, you'll need to install pipewire:
pw-cli info 0
# Example output
id: 0
permissions: rwxm
type: PipeWire:Interface:Core/3
cookie: 134115873
user-name: "user"
host-name: "user"
version: "0.3.30" # Possibly more actual than this version
name: "pipewire-0"
...
To uninstall pipewire clic here.
- Python 3.7+
- Ubuntu 20.04+
Install & Tutorial
Install
pip3 install pipewire_python # or pip
Tutorial
from pipewire_python.controller import Controller
# [PLAYBACK]: normal way
audio_controller = Controller(verbose=True)
audio_controller.set_config(rate=384000,
channels=2,
_format='f64',
volume=0.98,
quality=4)
audio_controller.playback(audio_filename='docs/beers.wav')
# [RECORD]: normal way
audio_controller = Controller(verbose=True)
audio_controller.record(audio_filename='docs/5sec_record.wav',
timeout_seconds=5)
ROADMAP
Future implementations, next steps, API implementation and Control over pipewire directly from python in the ROADMAP.
Contributions
PR, FR and issues are welcome.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pipewire_python-0.0.86.tar.gz
(1.2 MB
view hashes)
Built Distribution
Close
Hashes for pipewire_python-0.0.86-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd434093206912f10c162f9d9aa8055269fc3e8c2f6ab846824977620451eac6 |
|
MD5 | a612386577518eca965eb3955b6f1dc6 |
|
BLAKE2b-256 | acb8c03e1d3c7cebca1f9453284777b105ad3c47eb2ce670b5ab62006db56570 |