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
prek install -t pre-commit
prek 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.1.0.tar.gz (481.0 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.1.0-py3-none-any.whl (338.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: speechlight-3.1.0.tar.gz
  • Upload date:
  • Size: 481.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for speechlight-3.1.0.tar.gz
Algorithm Hash digest
SHA256 2469bcf21a5898b3c08ef2e2c18105d07a2dec8590350174224bd908265c6ed0
MD5 2be3ca04e0c5694288965575d9c35d38
BLAKE2b-256 f0fe455ec18e31373e026ec0b8af900745a8bef427f31daae4600bf4c42ce02b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: speechlight-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 338.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for speechlight-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60378c6c4ab55a9b9d868418fcf62eef4eeb54e92f9c7ed32303567dcacae8ae
MD5 95ec721f40a5821c96b1b1e579070db2
BLAKE2b-256 12ab44cf48b4b3fe4342c7c9273b74f03238a5abc0233e526dc7440d45453781

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