A audio player extension for schemdule.
Project description
schemdule-extensions-audioplay
A audio player extension for Schemdule.
- Platform
- Python
- All extensions
Install
Install dependencies:
# Install dependencies on Linux (only)
sudo apt-get install -y python3-dev libasound2-dev
# Install ffmpeg
choco install ffmpeg # Windows
apt-get install -y ffmpeg # Linux
brew install ffmpeg # MacOS
Use pip:
pip install schemdule-extensions-audioplay
Or use pipx:
pipx inject schemdule schemdule-extensions-audioplay
# Upgrade
pipx upgrade schemdule --include-injected
Check if the extension installed:
schemdule ext
Usage
This extension provide a AudioPlayerPrompter
and add the following extension methods on PrompterBuilder
and PayloadBuilder
.
class PrompterBuilder:
def useAudioPlayer(self, final: bool = False) -> "PrompterBuilder":
...
class PayloadBuilder:
def useAudio(self, files: Iterable[str]) -> "PayloadBuilder":
...
Use the extension in the schema script.
# schema.py
ext("audioplay")
at(..., payloads().useAudio(["file1"]))
prompter.useAudioPlayer()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for schemdule-extensions-audioplay-0.0.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 057e486f1f06f7eaead5edc5d3402c1244f690d6c08262b036356f72d318d7ad |
|
MD5 | e6f69684577e0dfbe4adf1dde10b7d9f |
|
BLAKE2b-256 | 3be19f7f87611b63fe874889797602d0cb7ccb1ea52d6b5ae204e90a3e5d44ba |
Close
Hashes for schemdule_extensions_audioplay-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fd876c72e1f41130742d78872ede0c3c41508331a9c96b4d9256dd2c93e963a |
|
MD5 | 07bb3afd4914394937c0cc086e7657c7 |
|
BLAKE2b-256 | d47e12f99ccd22d40fab283d2c09c2699a73a18c3ef014ad4638fc5e93f45e26 |