Skip to main content

An offline voice command system for terminal use based on Vosk.

Project description

voice-cmd

A production-ready Python library and CLI tool providing an offline voice command system for terminal use.

It uses Vosk for speech recognition and PyAudio for microphone input, requiring absolute no cloud APIs.

Installation

pip install voice-cmd

Ensure you have PyAudio prerequisites installed on your OS (e.g., portaudio on macOS/Linux).

Usage

from voice_cmd import VoiceAssistant

assistant = VoiceAssistant()

@assistant.command("open chrome")
def open_chrome():
    import os
    os.system("google-chrome")

if __name__ == "__main__":
    assistant.start()

CLI

You can also run the tool directly:

voice-cmd

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

voice_cmd-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

voice_cmd-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file voice_cmd-0.1.0.tar.gz.

File metadata

  • Download URL: voice_cmd-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for voice_cmd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8d98fee70704e57e81f1278129ef8fbb32d819d0dbbcfb208b1c03274fc1641a
MD5 6392d84988fcbe272f6fc893afa62b22
BLAKE2b-256 d14298f297ad5f57ee08fe212786f214f8b14e395f83991642b031d7cc6ecf4a

See more details on using hashes here.

File details

Details for the file voice_cmd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: voice_cmd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for voice_cmd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 15e76c54a936ef9d0d4d542a0a870a181725f89333c7ed6ced68c37e1f661c31
MD5 0a055fb949a8abeac98bbee129b94b10
BLAKE2b-256 6569fd17eebbfad5b4c38e07738c2f53dc2e9c2e3ca30bc3ef5afc4dbbf0dbb5

See more details on using hashes here.

Supported by

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