semvec/pypi-packages huggingface dataset:
speekaboo 0.2.0
A drop-in replacement for Speaker.bot using Piper TTS
License: MIT
Requires Python: >=3.10

# 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!