PvSpeaker Demo for Python
This project contains a Python command-line demo for PvSpeaker that demonstrates how to use PvSpeaker to play audio from a WAV file.
PvSpeaker
PvSpeaker is an easy-to-use, cross-platform audio player designed for real-time speech audio processing. It allows developers to send raw PCM frames to an audio device's output stream.
Compatibility
- Python 3.9+
- Runs on Linux (x86_64), macOS (x86_64 and arm64), Windows (x86_64, arm64), and Raspberry Pi (3, 4, 5).
Installation
pip3 install pvspeakerdemo
Usage
In the following instructions, we will refer to {AUDIO_DEVICE_INDEX} as the index of the audio device to use, and {INPUT_WAV_PATH} as the path to the pcm wav file that will be played.
{AUDIO_DEVICE_INDEX} defaults to -1 and {INPUT_WAV_PATH} must not be empty.
To show the available audio devices run:
pv_speaker_demo --show_audio_devices
To run PvSpeaker run:
pv_speaker_demo --audio_device_index {AUDIO_DEVICE_INDEX} --input_wav_path {INPUT_WAV_PATH}
Hit Ctrl+C if you wish to stop playing audio before it completes. If no audio device index (-d) is provided, the demo will use the system's default audio player device.
Metadata
Release files for pvspeakerdemo 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pvspeakerdemo-1.0.5.tar.gz | 7.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pvspeakerdemo-1.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.9 kB
Release files / pvspeakerdemo-1.0.5.tar.gz
| Download URL | pvspeakerdemo-1.0.5.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
208ddee87007e51e4b981aee7cfd09e0e5f318e0329da5e5a3619f2dfe0b5df0
|
|
BLAKE2b-256 checksum How to use checksums |
4e3ee4d1698f346c292b61917ecd29a0622ea6573c212c0210eca8275fc41449
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / pvspeakerdemo-1.0.5-py3-none-any.whl
| Download URL | pvspeakerdemo-1.0.5-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8aa25b2476056293a44e40b3b0e2cf477d1c5c58d0299663d79a1909d4b28e58
|
|
BLAKE2b-256 checksum How to use checksums |
b4753799ea7ec6440a8e62c7cb1e38dec9077d7bf4d9b7028ae8d4ab95a407d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for pvspeakerdemo 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.