A lightweight Python library providing a common interface to multiple TTS and screen reader APIs.
Project description
Speechlight
A lightweight Python library providing a common interface to multiple TTS and screen reader APIs. See the API reference for more information.
License And Credits
Speechlight is licensed under the terms of the Mozilla Public License, version 2.0. Speechlight was originally created by Nick Stockton. macOS support by Jacob Schmude.
Installation
pip install --user speechlight
Running From Source
Windows-specific Instructions
Execute the following commands from the root directory of this repository to install the virtual environment and project dependencies.
py -3 -m venv .venv
.venv\Scripts\activate.bat
pip install --upgrade --require-hashes --requirement requirements-poetry.txt
poetry install --no-ansi
pre-commit install -t pre-commit
pre-commit install -t pre-push
Linux-specific Instructions
Execute the following commands from the root directory of this repository to install the virtual environment and project dependencies.
python3 -m venv .venv
source .venv/bin/activate
pip install --upgrade --require-hashes --requirement requirements-poetry.txt
poetry install --no-ansi
pre-commit install -t pre-commit
pre-commit install -t pre-push
Example Usage
from speechlight import speech
# Say something.
speech.say("Hello world!")
# Say something else, interrupting the currently speaking text.
speech.say("I'm a rood computer!", interrupt=True)
# Cancel the currently speaking message.
speech.silence()
# Braille something.
speech.braille("Braille dots go bump in the night.")
# Speak and braille text at the same time.
speech.output("Read along with me.")
# And to interrupt speech.
speech.output("Rood!", interrupt=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file speechlight-1.8.0.tar.gz
.
File metadata
- Download URL: speechlight-1.8.0.tar.gz
- Upload date:
- Size: 324.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0554dd15c3068d0f0937fd26f3841ce36df155bf46952d0f7d6439c1c9cd8b85 |
|
MD5 | 79ff3eff9a6e5a160c99cb5ee02ff978 |
|
BLAKE2b-256 | 0a41581742c3cabb3c66135900354ef5bf4155f787b8b6e8cd7cc6564226419e |
File details
Details for the file speechlight-1.8.0-py3-none-any.whl
.
File metadata
- Download URL: speechlight-1.8.0-py3-none-any.whl
- Upload date:
- Size: 243.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.13 Linux/6.2.0-1016-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52194bb7f250c9ef0037c3510c53172a408d296f19f8672da6c7af928cac73a7 |
|
MD5 | a0b87d5be1efd7eec296bfed4431151c |
|
BLAKE2b-256 | 8bcb89eab66f53c6b3697dba347f9de7245c9f692730e9692c639283ef019705 |