Metadata-Version: 2.2
Name: speekaboo
Version: 0.2.0
Summary: A drop-in replacement for Speaker.bot using Piper TTS
Author-email: easyaspi314 <6258309+easyaspi314@users.noreply.github.com>
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: websockets>=14.2
Requires-Dist: miniaudio>=1.61
Requires-Dist: piper_phonemize_fix>=1.2.1
Requires-Dist: onnxruntime>=1.19.0
Requires-Dist: appdirs>=1.4.4
Requires-Dist: tkfilebrowser
Requires-Dist: darkdetect
Requires-Dist: tkinter-tooltip
Requires-Dist: psutil
Requires-Dist: cachetools
Requires-Dist: sv_ttk
Requires-Dist: cuda_available
Requires-Dist: pywin32; sys_platform == "win32"

# Speekaboo

Speekaboo is a WIP [Speaker.bot](https://speaker.bot) API implementation using the [Piper](https://github.com/rhasspy/piper)
text-to-speech library.

This was designed because on Linux, while Speaker.bot launches with the correct libraries, Sapi5 doesn't work (it's a stub
in Wine), Azure doesn't work, Google Cloud TTS has a weird popping, and basically everything else costs money.

While Speekaboo doesn't have chat integration (as of writing), it supports the same Websockets and UDP API as Speaker.bot, so
it can be integrated with other programs like Streamer.bot.

## Features

Speekaboo is far from complete. For basic functionality, it works good enough to use for a basic TTS bot.
For an EN-US voice, I recommend Amy Medium.

- [ ] Not spaghetti codebase
- [ ] Setup wizard (you need to manually add voices)
- [x] Functional UI
- [ ] Compatibility of the Speaker.bot WS/UDP API
  - [x] Basic speaking functionality
  - [x] Speak requests
  - [x] Speaking subscriptions (needed for Streamer.bot)
  - [x] Other subscriptions
  - [x] Compatibility with Streamer.bot
  - [ ] Document all functions and events
  - [ ] 100% API compatibility (some things are stubbed)
  - [ ] Proper error checking
- [ ] Playing voices
  - [x] Basic TTS
  - [x] Voice customization
  - [ ] Multiple/random voices (each voice alias is one voice only)
  - [x] Speaker IDs
  - [ ] Pitch shift
  - [x] Volume
  - [ ] Arabic support. piper-phonemize-cross does not include Tashkeel.
- [x] Downloading/uninstalling new voices
- [x] Adding custom .onnx voices
- [x] Manually playing text
- [ ] Profanity filter
- [ ] Interface to cancel or review messages
- [ ] Random voices/multiple voice aliases (todo, needs proper memory overhead management)
- [x] In-GUI configuration
  - [x] Creating aliases
- [ ] Chat integration (NOT PLANNED, Streamer.bot can send commands)

## Installation

Requirements:

- Python 3.10-3.12 (3.13 is not compatible yet due to piper-phonemize-cross not being updated yet)
- [Poetry](https://python-poetry.org)

```shell
poetry install
```

## Running

A desktop shortcut may be added in the future.

```shell
speekaboo
```

## Initial setup

1. Launch the program
2. Go to Download Voices, and select a voice. For English (US) I find Amy Medium (en_US-amy-medium) to be a good choice.
3. Click "Install/uninstall selected voice"
4. Go to the Voice Aliases tab, and click "Add new alias", and pick a name
5. Pick the voice name in the Voice dropdown
6. Click "Save changes"
7. Pick the new name in the dropdown, enter some text, and hit enter!
