Metadata-Version: 2.5
Name: heystella
Version: 0.1.0
Summary: Voice control for the Atari 2600. Say a word and the console sees a joystick move.
Project-URL: Homepage, https://github.com/retroverse-studios/hey-stella
Project-URL: Repository, https://github.com/retroverse-studios/hey-stella
Project-URL: Issues, https://github.com/retroverse-studios/hey-stella/issues
Author: Michael Borck
License-Expression: MIT
License-File: LICENSE
Keywords: accessibility,atari,atari-2600,joystick,retro,speech-recognition,stella,voice-control
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: End Users/Desktop
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Games/Entertainment
Classifier: Topic :: Multimedia :: Sound/Audio :: Speech
Classifier: Topic :: System :: Hardware
Requires-Python: >=3.11
Provides-Extra: all
Requires-Dist: pynput>=1.7; extra == 'all'
Requires-Dist: pyserial>=3.5; extra == 'all'
Requires-Dist: sounddevice>=0.4; extra == 'all'
Requires-Dist: vosk>=0.3.44; extra == 'all'
Provides-Extra: keys
Requires-Dist: pynput>=1.7; extra == 'keys'
Provides-Extra: serial
Requires-Dist: pyserial>=3.5; extra == 'serial'
Provides-Extra: voice
Requires-Dist: sounddevice>=0.4; extra == 'voice'
Requires-Dist: vosk>=0.3.44; extra == 'voice'
Description-Content-Type: text/markdown

# Hey Stella

Voice control for the Atari 2600. Say "left" and the console sees a joystick pushed left.

This package is the host program. It listens to a microphone, recognises the words in a game profile, and turns them into joystick actions. Those go to the Stella emulator as key presses, or to a small build-it-yourself dongle that plugs into a real console's joystick port.

**Early software.** It works with typed input and recorded speech. It has not been tried with a live microphone yet, no dongle has been built, and nothing has touched a real console. Expect rough edges and please report them.

## Install

```
pipx install "heystella[all]"
```

or with pip:

```
pip install "heystella[all]"
```

Python 3.11 or newer. The extras are optional:

| Extra | Adds | For |
| --- | --- | --- |
| `voice` | vosk, sounddevice | Speech recognition from a microphone |
| `keys` | pynput | Pressing keys in the Stella emulator |
| `serial` | pyserial | Talking to the dongle over USB |

A plain `pip install heystella` has no dependencies and can still run profiles from typed input. On Linux the microphone needs PortAudio, for example `sudo apt install libportaudio2`.

## Use

```
heystella --list                            # the game profiles that come with it
heystella pitfall --input text              # type phrases, see what the joystick does
heystella pitfall                           # speak, see what the joystick does
heystella pitfall --backend keys            # speak, and press keys in Stella
heystella pitfall --backend serial:/dev/ttyACM0    # speak, and drive the dongle
heystella my-game.toml --input wav:take.wav # test your own profile against a recording
```

The first spoken run downloads a 40MB speech model to `~/.cache/vosk`. After that everything runs offline.

## Game profiles

A profile is a short TOML file that says what each spoken word does in one game.

```toml
[game]
title = "Space Invaders"

[profile]
author = "your-name"
mode = "joystick"

[words]
left = { hold = ["left"] }
right = { hold = ["right"] }
stop = { release = "all" }
fire = { tap = ["fire"], aliases = ["shoot"] }
```

Five starter profiles are included. To write your own, pass the path to your `.toml` file in place of a profile name.

## More

The hardware design, the token protocol for homebrew games, a test ROM and the project plan are in the repository.

MIT licence. Atari and Atari 2600 are trademarks of their owner. Stella is also the name of an emulator, which this project works with and is not part of. No connection to either.
