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 --frozen
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 --frozen
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.2.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.2-py3-none-any.whl (335.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: speechlight-2.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 7c6a625bffc4c33f856bd4d2267b33577ce427c44a14000bc0f9e5c5fe4591be
MD5 1fa073a154055f54f75c726d9bdd3375
BLAKE2b-256 a47fc5bded6bde4a290d423a768dd22e89e42cffe336bbef0133df0ee6f32960

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for speechlight-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a523ee7862df05a876eb18f522ef54445093f48c79c7e72a5e33f2d13c5ba1a4
MD5 0851d6e13c0cdca239a339bfe37de57e
BLAKE2b-256 1fc36ed4b2e1cbfa1b869a6812ad6ff562ea414cb9b597cc5817fec7c0ddb6e0

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