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

Uploaded Python 3

File details

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

File metadata

  • Download URL: speechlight-2.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 0a7fc4e89548d6c261b2e7b92cdea20455e9bd2b4e785e56328ed381d95b787a
MD5 e95ac6b40b62d1dd8ee39fada75c4bff
BLAKE2b-256 7b5a5162a1c2d1755ddb5cb27eab8a48283b0ffcb7dd3ba350ea6ec727925ae9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for speechlight-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e383fa50051c5b7fae105b73ba11c598be5a0f570a27f8ca6f316412a8eef57
MD5 339cf3a4e0cb53943cdffe711d13db22
BLAKE2b-256 f7e9881de2989931b251eeb2c349c49e374c36365e6dd4317b6032509d628ec6

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