Skip to main content

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)

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.2.1.tar.gz (483.1 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.2.1-py3-none-any.whl (342.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: speechlight-3.2.1.tar.gz
  • Upload date:
  • Size: 483.1 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.2.1.tar.gz
Algorithm Hash digest
SHA256 22326f61d1af1587b91f2f607e59d98d7f81a15865aea6b028bb9e9742808287
MD5 7e9122b8ed3b537d7105ddbd574f17d3
BLAKE2b-256 7fd72cd3ef1de618630d922639c6530709afbbdb17af8e79e982bb62cd938397

See more details on using hashes here.

File details

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

File metadata

  • Download URL: speechlight-3.2.1-py3-none-any.whl
  • Upload date:
  • Size: 342.1 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b5da5daca22cefd7c08b0c9707d1718af6f2274fd64d067427cfb2d31ecf607
MD5 56d7707b90671491fa53305b510f8691
BLAKE2b-256 f8c2ef2862d58db98adc0fe9fb63bf2794bd03fe8a40d17049deba4a19dbba70

See more details on using hashes here.

Release history Release notifications | RSS feed

3.2.2

2 files

This release

3.2.1 This release

2 files

3.2.0

2 files

3.1.0

2 files

3.0.0

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.8.0

2 files

1.7.6

2 files

1.7.5

2 files

1.7.4

2 files

1.7.3

2 files

1.7.2

2 files

1.7.1

2 files

1.7.0

2 files

1.6.2

2 files

1.6.1

2 files

1.6

2 files

1.5

2 files

1.4

2 files

1.3

2 files

1.2

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page