Metadata-Version: 2.4
Name: terminal-voice
Version: 0.1.0
Summary: A programmable terminal personality that speaks when you type wrong commands.
Home-page: https://github.com/yourusername/terminal-voice
Author: KBR
Author-email: koppunoorreddy@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9, <3.12
Description-Content-Type: text/markdown
Requires-Dist: TTS
Requires-Dist: transformers<4.40.0
Requires-Dist: torch<2.6.0
Requires-Dist: torchaudio<2.6.0
Requires-Dist: PyYAML
Requires-Dist: playsound==1.2.2
Requires-Dist: PyObjC; sys_platform == "darwin"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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:
```bash
pip install terminal-voice
```

2. Accept the Coqui TTS Terms of Service (required once):
```bash
export COQUI_TOS_AGREED=1
```

2. Upload a 10-30 second voice sample (a clean `.wav` file is best):
```bash
voice upload-voice path/to/your/voice.wav
```

3. Add some custom rules:
```bash
voice add-rule lss "It's ls, Bhanu."
voice add-rule gti "Bro... it's git."
```

4. Integrate with your shell (e.g., Zsh):
Add the following to your `~/.zshrc`:
```bash
command_not_found_handler() {
    voice speak "$1"
}
```

5. Reload your shell:
```bash
source ~/.zshrc
```

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