Recorder library for Picovoice.
Project description
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.8+
- Runs on Linux (x86_64), macOS (x86_64 and arm64), Windows (x86_64), 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}
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
File details
Details for the file pvrecorderdemo-1.2.3.tar.gz
.
File metadata
- Download URL: pvrecorderdemo-1.2.3.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68821d613349025cb6aec68e16621ad5212b35de973af4b5d1115e8f01217bf7 |
|
MD5 | af93d863ddd18fa71845955e4456ccfe |
|
BLAKE2b-256 | 776748f7fe6bd84f2461c0fcbf4f13b84ae011acfc4f772b3f415052492d4af7 |
File details
Details for the file pvrecorderdemo-1.2.3-py3-none-any.whl
.
File metadata
- Download URL: pvrecorderdemo-1.2.3-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfef5f61156253309b6c37461ca085bb41c2e625f2f7240a48180a914dff18fe |
|
MD5 | 2152ab369ea9e10597fb254f20128fbc |
|
BLAKE2b-256 | 9e82097dd1b814f6efe81fedb655e7d663794620ee5256da34a244800f06c52c |