No project description provided
Project description
Rhasspy PyAudio Hermes MQTT Service
Records audio from PyAudio and publishes WAV chunks according to the Hermes protocol.
Running With Docker
$ docker run -it rhasspy/rhasspy-microphone-pyaudio-hermes:<VERSION> <ARGS>
Building From Source
Clone the repository and create the virtual environment:
$ git clone https://github.com/rhasspy/rhasspy-microphone-pyaudio-hermes.git
$ cd rhasspy-microphone-pyaudio-hermes
$ ./configure --enable-in-place
$ make
$ make install
Run the rhasspy-microphone-pyaudio-hermes
script to access the command-line interface:
$ ./rhasspy-microphone-pyaudio-hermes --help
Building the Docker Image
Run scripts/build-docker.sh
with a local docker registry:
$ DOCKER_REGISTRY=myregistry:12345 scripts/build-docker.sh
Requires Docker Buildx. Set PLATFORMS
environment to only build for specific platforms (e.g., linux/amd64
).
This will create a Docker image tagged rhasspy/rhasspy-microphone-pyaudio-hermes:<VERSION>
where VERSION
comes from the file of the same name in the source root directory.
NOTE: If you add things to the Docker image, make sure to whitelist them in .dockerignore
.
Command-Line Options
usage: rhasspy-microphone-pyaudio-hermes [-h] [--list-devices]
[--device-index DEVICE_INDEX]
[--sample-rate SAMPLE_RATE]
[--sample-width SAMPLE_WIDTH]
[--channels CHANNELS]
[--output-site-id OUTPUT_SITE_ID]
[--udp-audio-host UDP_AUDIO_HOST]
[--udp-audio-port UDP_AUDIO_PORT]
[--host HOST] [--port PORT]
[--username USERNAME]
[--password PASSWORD]
[--site-id SITE_ID] [--debug]
[--log-format LOG_FORMAT]
optional arguments:
-h, --help show this help message and exit
--list-devices List available input devices
--device-index DEVICE_INDEX
Index of microphone to use
--sample-rate SAMPLE_RATE
Sample rate of recorded audio in hertz (e.g., 16000)
--sample-width SAMPLE_WIDTH
Sample width of recorded audio in bytes (e.g., 2)
--channels CHANNELS Number of channels in recorded audio (e.g., 1)
--output-site-id OUTPUT_SITE_ID
If set, output audio data to a different site id
--udp-audio-host UDP_AUDIO_HOST
Host for UDP audio (default: 127.0.0.1)
--udp-audio-port UDP_AUDIO_PORT
Send raw audio to UDP port outside ASR listening
--host HOST MQTT host (default: localhost)
--port PORT MQTT port (default: 1883)
--username USERNAME MQTT username
--password PASSWORD MQTT password
--site-id SITE_ID Hermes site id(s) to listen for (default: all)
--debug Print DEBUG messages to the console
--log-format LOG_FORMAT
Python logger format
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
Hashes for rhasspy-microphone-pyaudio-hermes-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c51dd8acc4c334aaf6beaa6edff18a0de426e6076d649d2e008586e4e9274cd |
|
MD5 | a9ed86e509c3c159af6c0d481ffb68d7 |
|
BLAKE2b-256 | a6cc566ce93d37fa8d0c496f1d9005da828c6fde1f466237def412dfd7f83d0a |