# 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
```console
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:
```console
pv_recorder_demo --show_audio_devices
```
To run PvRecorder run:
```console
pv_recorder_demo --audio_device_index {AUDIO_DEVICE_INDEX} --output_wav_path {OUTPUT_WAV_PATH}
```
Raw data
{
"_id": null,
"home_page": "https://github.com/Picovoice/pvrecorder",
"name": "pvrecorderdemo",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.5",
"maintainer_email": "",
"keywords": "Audio Recorder",
"author": "Picovoice",
"author_email": "hello@picovoice.ai",
"download_url": "https://files.pythonhosted.org/packages/e4/a3/c4b590812150ddf4f6a49ebe6f41e5db2bfc95f74b8dc402b3d233559e11/pvrecorderdemo-1.2.2.tar.gz",
"platform": null,
"description": "# PvRecorder Demo for Python\n\nThis project contains a Python command-line demo for PvRecorder that demonstrates how to use PvRecorder to record audio to a WAV file.\n\n## PvRecorder\n\nPvRecorder 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.\n\n## Compatibility\n\n- Python 3.5+\n- Runs on Linux (x86_64), macOS (x86_64 and arm64), Windows (x86_64), Raspberry Pi (all variants), NVIDIA Jetson (Nano), and BeagleBone.\n\n## Installation\n\n```console\npip3 install pvrecorderdemo\n```\n\n## Usage\n\nIn 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.\n\n`{AUDIO_DEVICE_INDEX}` defaults to -1 and `{OUTPUT_WAV_PATH}` can be empty if you wish to not save any data.\n\nTo show the available audio devices run:\n\n```console\npv_recorder_demo --show_audio_devices\n```\n\nTo run PvRecorder run:\n\n```console\npv_recorder_demo --audio_device_index {AUDIO_DEVICE_INDEX} --output_wav_path {OUTPUT_WAV_PATH}\n```\n\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Recorder library for Picovoice.",
"version": "1.2.2",
"project_urls": {
"Homepage": "https://github.com/Picovoice/pvrecorder"
},
"split_keywords": [
"audio",
"recorder"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "813c5dc654d4b9fe5e89cf32150f5bf511f9d02f7bf1d1ac26aa0810b92e60e5",
"md5": "a584a776c3224e1c4da6776f18df5672",
"sha256": "1eaa7df2532717e7a9d06c63fb0b6957dbe4c682b4246e5ceb5be2e4f218dc7c"
},
"downloads": -1,
"filename": "pvrecorderdemo-1.2.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a584a776c3224e1c4da6776f18df5672",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.5",
"size": 7470,
"upload_time": "2024-01-30T19:17:49",
"upload_time_iso_8601": "2024-01-30T19:17:49.288972Z",
"url": "https://files.pythonhosted.org/packages/81/3c/5dc654d4b9fe5e89cf32150f5bf511f9d02f7bf1d1ac26aa0810b92e60e5/pvrecorderdemo-1.2.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "e4a3c4b590812150ddf4f6a49ebe6f41e5db2bfc95f74b8dc402b3d233559e11",
"md5": "3bd6aa1a2766fdb45a60ba64414f722e",
"sha256": "25e939c01fa3e28edd153d03a4c90e4b955d6e452b5667a422453227ba62956b"
},
"downloads": -1,
"filename": "pvrecorderdemo-1.2.2.tar.gz",
"has_sig": false,
"md5_digest": "3bd6aa1a2766fdb45a60ba64414f722e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.5",
"size": 7021,
"upload_time": "2024-01-30T19:17:50",
"upload_time_iso_8601": "2024-01-30T19:17:50.865401Z",
"url": "https://files.pythonhosted.org/packages/e4/a3/c4b590812150ddf4f6a49ebe6f41e5db2bfc95f74b8dc402b3d233559e11/pvrecorderdemo-1.2.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-01-30 19:17:50",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Picovoice",
"github_project": "pvrecorder",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pvrecorderdemo"
}