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-3.0.0.tar.gz (455.7 kB view details)

Uploaded Source

Built Distribution

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

speechlight-3.0.0-py3-none-any.whl (336.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for speechlight-3.0.0.tar.gz
Algorithm Hash digest
SHA256 7fa6ca1348c8753667c94b3b5c21480f63d8810324d4e2755c71ea8748c040e6
MD5 adc3dc1c01c129c2b1974d3e8b3177bc
BLAKE2b-256 6599abe67c633f19f664629ac0c10d60b848c901a7bd30d3f3bf782494e5fef2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for speechlight-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 516deb7102c3e9d940e2a73123e59ed4a98679d0d71b96512adb04f373b6608e
MD5 880448dc1d67f911dfc44728e76cb1c2
BLAKE2b-256 ef7b91b0ceab949e6ddf52574c1cd0adea1206e28c682d207964bcf6badbbf66

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