Skip to main content

A lightweight Python library providing a common interface to multiple TTS and screen reader APIs.

Project description

Speechlight

Current Version on PyPi License Supported Python Versions PyPi Downloads in Last 7 Days PyPi Downloads in Last 30 Days PyPi Total Downloads

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 MIT License. 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-uv.txt
uv sync
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-uv.txt
uv sync
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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

speechlight-2.0.0.tar.gz (446.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

speechlight-2.0.0-py3-none-any.whl (336.0 kB view details)

Uploaded Python 3

File details

Details for the file speechlight-2.0.0.tar.gz.

File metadata

  • Download URL: speechlight-2.0.0.tar.gz
  • Upload date:
  • Size: 446.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.2

File hashes

Hashes for speechlight-2.0.0.tar.gz
Algorithm Hash digest
SHA256 0dfe710acf71be1fcb3c2d6d309d086f319a74393b3f6babc1e23cd2af56f033
MD5 db3302d206ae2ffa1fb89551b9853367
BLAKE2b-256 6bf43fb6d7f1e20d3862f7ab826054bdd451aa4fb6563c09ddf00e0af9a33698

See more details on using hashes here.

File details

Details for the file speechlight-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for speechlight-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a84784107d344fce07954d0b934d618740808b1f496640a18e2189ca7f0affa3
MD5 afebc9fc35b6f2257cd97b7db32819f3
BLAKE2b-256 493ca75a326445ce2305f6b8b477a460b1bdf2d75bab02b611c6dab43d7a38b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page