PvRecorder Demo for Python
This project contains a Python command-line demo for PvRecorder that demonstrates how to use PvRecorder to record audio to a WAV file.
PvRecorder
PvRecorder is an easy-to-use, cross-platform audio recorder designed for real-time speech audio processing. It allows developers access to an audio device's input stream, broken up into data frames of a given size.
Compatibility
- Python 3.9+
- Runs on Linux (x86_64), macOS (x86_64 and arm64), Windows (x86_64 and arm64), and Raspberry Pi (Zero, 3, 4, 5).
Installation
pip3 install pvrecorderdemo
Usage
In the following instructions, we will refer to {AUDIO_DEVICE_INDEX} as the index of the audio device to use, and {OUTPUT_WAV_PATH} as the path to save the audio data in wav format.
{AUDIO_DEVICE_INDEX} defaults to -1 and {OUTPUT_WAV_PATH} can be empty if you wish to not save any data.
To show the available audio devices run:
pv_recorder_demo --show_audio_devices
To run PvRecorder run:
pv_recorder_demo --audio_device_index {AUDIO_DEVICE_INDEX} --output_wav_path {OUTPUT_WAV_PATH}
Metadata
Release files for pvrecorderdemo 1.2.8
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 | |
|---|---|---|---|---|
| pvrecorderdemo-1.2.8.tar.gz | 7.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pvrecorderdemo-1.2.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / pvrecorderdemo-1.2.8.tar.gz
| Download URL | pvrecorderdemo-1.2.8.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96d09aa487ba7364b0b8b74c8d3dc2b2fb1c03901c55f9fb6fb96f8c7b1a4efb
|
|
BLAKE2b-256 checksum How to use checksums |
9fcb0e60b124bc9ed8214398010c9d99872b398eff5dcfc2b333e8f55179a125
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / pvrecorderdemo-1.2.8-py3-none-any.whl
| Download URL | pvrecorderdemo-1.2.8-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bed5c2e4a445b417c1e68ee84188da5c0776de4b2ccfd38cd436a28906576d78
|
|
BLAKE2b-256 checksum How to use checksums |
3f862d05c4f20c6f1f2b16b0d5f5b48a75ed8167b84dcc8fab5a0c42f1d659f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for pvrecorderdemo 1.2.8
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.