Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio output via TTS #61

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

torchipeppo
Copy link

Trying to figure out what automatic audio output for penalties and set plays might sound like. This version relies on simple TTS backends such as Speech Dispatcher, favoring simplicity over fancy but heavy neural models.

At the moment, this is an early draft not fit for release.
It does what it's supposed to (on my machine at least), but has no settings and lacks many good practices such as error checking, having been written quickly and with next to no prior experience in Rust.
It is intended for testing and gathering feedback about the general idea.

Linux requisites for this version:

  • Speech Dispatcher (should be pre-installed in most Ubuntu desktop installations and Ubuntu derivatives such as Linux Mint due to its usage as a screen reader)
  • The development headers for Speech Dispatcher (listed on APT as libspeechd-dev, I assume they'll be on other package managers as well)
  • GLIBC_2.32 or higher (if using Ubuntu or a derivative, this means OS version 22.04 or higher)

The tts crate description says it is compatible with other backends on other operating systems, so this should work on Windows or Mac with a different setup rather than Speech Dispatcher in theory, but I don't know any specifics.
Also, note that this branch adds the tts crate as a dependency, which should be automatically taken care of by cargo when compiling.

A very minimal draft, pretty rough rn but it'll do its job
for testing purposes, will improve b4 candidating for actual release.

To compile on Linux, requires GLIBC_2.32 or higher
(if using Ubuntu, this means OS version 22 or higher)
and the dev headers for libspeechd
(installable via APT or similar package manager)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant