Skip to main content

Speaker library for Picovoice.

Project description

PvSpeaker Demo for Python

This project contains a Python command-line demo for PvSpeaker that demonstrates how to use PvSpeaker to play audio from a WAV file.

PvSpeaker

PvSpeaker is an easy-to-use, cross-platform audio player designed for real-time speech audio processing. It allows developers to send raw PCM frames to an audio device's output stream.

Compatibility

  • Python 3.8+
  • Runs on Linux (x86_64), macOS (x86_64 and arm64), Windows (x86_64), and Raspberry Pi (3, 4, 5).

Installation

pip3 install pvspeakerdemo

Usage

In the following instructions, we will refer to {AUDIO_DEVICE_INDEX} as the index of the audio device to use, and {INPUT_WAV_PATH} as the path to the pcm wav file that will be played.

{AUDIO_DEVICE_INDEX} defaults to -1 and {INPUT_WAV_PATH} must not be empty.

To show the available audio devices run:

pv_speaker_demo --show_audio_devices

To run PvSpeaker run:

pv_speaker_demo --audio_device_index {AUDIO_DEVICE_INDEX} --input_wav_path {INPUT_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

pvspeakerdemo-1.0.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

pvspeakerdemo-1.0.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file pvspeakerdemo-1.0.0.tar.gz.

File metadata

  • Download URL: pvspeakerdemo-1.0.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for pvspeakerdemo-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7de91b9b5b3214e5d3253c2c7376fa76aa1c2102f95fc9125b9784c53e9f232e
MD5 37a4f58423f91c9cd40f7972c2345747
BLAKE2b-256 0c865300a85ee346e07f89b095f360e6e74182ac3aa8b9379c26854b2de7c292

See more details on using hashes here.

File details

Details for the file pvspeakerdemo-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pvspeakerdemo-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bdc15d3400dfca777db9fefd1e1dd4eb388adf43c6b908cdc8661ba54e96677d
MD5 bec9eed5977d4e2d0a28fb5fb2e52124
BLAKE2b-256 6543f4286034945269351b96e247b1aeae055717b2703492db7a95686852bf6a

See more details on using hashes here.

Supported by

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