Skip to main content

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.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}

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

pvrecorderdemo-1.2.8.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

pvrecorderdemo-1.2.8-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file pvrecorderdemo-1.2.8.tar.gz.

File metadata

  • Download URL: pvrecorderdemo-1.2.8.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pvrecorderdemo-1.2.8.tar.gz
Algorithm Hash digest
SHA256 96d09aa487ba7364b0b8b74c8d3dc2b2fb1c03901c55f9fb6fb96f8c7b1a4efb
MD5 f89e95d8bf8a18abbe48f35bdde7b6d7
BLAKE2b-256 9fcb0e60b124bc9ed8214398010c9d99872b398eff5dcfc2b333e8f55179a125

See more details on using hashes here.

File details

Details for the file pvrecorderdemo-1.2.8-py3-none-any.whl.

File metadata

  • Download URL: pvrecorderdemo-1.2.8-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.10.12

File hashes

Hashes for pvrecorderdemo-1.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bed5c2e4a445b417c1e68ee84188da5c0776de4b2ccfd38cd436a28906576d78
MD5 2c33aaad4739e25c3968cf3efc0b34db
BLAKE2b-256 3f862d05c4f20c6f1f2b16b0d5f5b48a75ed8167b84dcc8fab5a0c42f1d659f3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page