Skip to main content

A programmable terminal personality that speaks when you type wrong commands.

Project description

terminal-voice

A programmable terminal personality that intercepts failed shell commands and triggers a voice response generated from a custom voice model.

Setup

Note: This package requires Python 3.9, 3.10, or 3.11. Python 3.12+ is not supported due to underlying AI library dependencies.

  1. Install via pip:
pip install terminal-voice
  1. Accept the Coqui TTS Terms of Service (required once):
export COQUI_TOS_AGREED=1
  1. Upload a 10-30 second voice sample (a clean .wav file is best):
voice upload-voice path/to/your/voice.wav
  1. Add some custom rules:
voice add-rule lss "It's ls, Bhanu."
voice add-rule gti "Bro... it's git."
  1. Integrate with your shell (e.g., Zsh): Add the following to your ~/.zshrc:
command_not_found_handler() {
    voice speak "$1"
}
  1. Reload your shell:
source ~/.zshrc

Now, typing lss or any other unknown command will trigger the voice response!

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

terminal_voice-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

terminal_voice-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for terminal_voice-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a9f6fce32014fb27a68440fc4ca2b42f0b36f195d0da499df0b2310ba7fed184
MD5 7f780a5857362fcfe9ad4ef9b09ba9d4
BLAKE2b-256 9a1cdca20e979ccf5582511ebd578ba2bf9c0fddb1cb71603357353d95ea0b20

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for terminal_voice-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0af5d8939f9ae4541e2e3ea815dffe06fe70cd163d93de1979216616e25689f
MD5 caade8b75fc50534c62bb0fc9c124d7e
BLAKE2b-256 9a1e9253e10508478cc81d6c28487af8107b7a47a893abb521c09c4f1f613698

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