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.5+
- Runs on Linux (x86_64), macOS (x86_64 and arm64), Windows (x86_64), Raspberry Pi (all variants), NVIDIA Jetson (Nano), and BeagleBone.
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
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
Built Distribution
Hashes for pvrecorderdemo-1.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1eaa7df2532717e7a9d06c63fb0b6957dbe4c682b4246e5ceb5be2e4f218dc7c |
|
MD5 | a584a776c3224e1c4da6776f18df5672 |
|
BLAKE2b-256 | 813c5dc654d4b9fe5e89cf32150f5bf511f9d02f7bf1d1ac26aa0810b92e60e5 |