Skip to main content

No project description provided

Project description

Rhasspy Hermes

Continous Integration PyPI package version Python versions GitHub license

Python classes for Hermes protocol support in Rhasspy.

Installation

pip install rhasspy-hermes

Command-Line Usage

A command-line interface is available to do some basic transcription, intent recognition, text to speech, and wakeword tasks. Run the following command:

python3 -m rhasspyhermes --help

to see the available commands and their options. You can add a --debug argument to see DEBUG information.

Each command will print the appropriate Hermes response message(s) as JSON (one per line). With the --print-topics flag, the MQTT topic will be printed before each JSON message.

Examples

Transcribe multiple WAV files:

python3 -m rhasspyhermes transcribe-wav /path/to/my-1.wav /path/to/my-2.wav ...
{ ... }  # prints hermes/asr/textCaptured message for my-1.wav
{ ... }  # prints hermes/asr/textCaptured message for my-2.wav

Transcribe a WAV file (stdin):

python3 -m rhasspyhermes transcribe-wav < /path/to/my.wav
{ ... }  # prints hermes/asr/textCaptured message

Recognize an intent from text:

python3 -m rhasspyhermes recognize-intent 'turn on the living room lamp'
{ ... }  # prints hermes/intent/<intentName> message

Speak a sentence:

python3 -m rhasspyhermes speak-sentence --language en 'what can I do for you, human?'
{ ... }  # prints hermes/tts/sayFinished message

Wait for wake word:

python3 -m rhasspyhermes wait-wake
{ ... }  # prints hermes/hotword/<wakewordId>/detected message

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

rhasspy-hermes-0.1.6.tar.gz (11.7 kB view details)

Uploaded Source

File details

Details for the file rhasspy-hermes-0.1.6.tar.gz.

File metadata

  • Download URL: rhasspy-hermes-0.1.6.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.9

File hashes

Hashes for rhasspy-hermes-0.1.6.tar.gz
Algorithm Hash digest
SHA256 dd7d11da78b53b6cfd5659b6ca39d2fd155c3214ed6151fff4df4f833c4825d5
MD5 be11903aab86b54676e12ad6b53a0529
BLAKE2b-256 e617bd0f6190230ef57db94f1bf47871214cb53061eee5f5e115914e8053e33b

See more details on using hashes here.

Provenance

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