Skip to main content

TimeSpeaker

Announce the time every hour similar to Mac OS X. Say the Time using Google TTS or espeak.

Requirements

  • python3.6+
  • playsound
  • gtts or pyttsx3

For development

  • poetry
  • flake8
  • black
  • pytest

TODO

  • Use python: threading.Timer
  • Create tests
  • Add system tray (opcional) by cli
  • Update/Fix to PyPi (pip install timespeaker)
  • Move Makefile to Parent
  • Configure PULL_REQUESTS AND ISSUES template
  • Configure lint
  • Configure github actions (or circleci)
  • Test i3 configs
  • Add support to Cron
  • Use a global DEBUG
  • When merge to main build and publish to PyPi (github actions)

Install

Default (Working In Progress)

pip install timespeaker

Local

On Local User

# pyenv shell +3.6.0
# asdf shell python +3.6.0

# optional (poetry create a virtualenv for you)
python -m venv .venv 

# install dependencies
make install

# clean old builds
make clean

# build package
make build

# install on local user package (python)
pip install --user dist/{path_from_last_command}.whl

Test local install

timespeaker check --speaker gtts

Configure

AutoStart (Working In Progress)

make configure-autostart

i3 (Working In Progress)

make configure-i3

Cron (Working In Progress)

Coming Soon

sudo make configure-cron

Systemd (Working In Progress)

sudo make configure-systemd

Remove configurations

# Systemd
sudo make remove-systemd

# Autostart
make remove-autostart

# i3
# coming soon

# Cron
# coming soon

Usage

Default usage using gtts to speak and saving in /tmp/timespeaker/

# after make install (or poetry install)
poetry run timespeaker start

# OR if configured (local user or via pip install timespeaker)
timespeaker start

Custom command:

poetry run timespeaker start --speaker=pyttsx3 --player=vlc --path-folder=/tmp/timespeaker/

How to check sounds

This speakes sound each 2 second from midnight to 23 hours.

poetry run timespeaker check-hours-sound gtts

Development

Using virtualenv (python venv):

# create virtualenv
# virtualenv .venv [-p /path/to/python3.6+] # require virtualenv
python -m venv .venv

# Enter virtualenv
source .venv/bin/activate

# to exit of virtual env run 
deactivate

Dev install (poetry required)

poetry install

See more commands with

make help

Tests

make test

License

MIT LICENSE

Contributing

I encourage you to contribute to this project! Join us!

Trying to report a possible security vulnerability? Open a issue now

Everyone interacting in this project and its sub-projects' codebases, issue trackers, chat rooms, and mailing lists is expected to follow the code of conduct (building, but respect everyone).

Metadata

Release files for timespeaker 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for timespeaker 0.1.6
File Size Uploaded
timespeaker-0.1.6.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for timespeaker 0.1.6
File Interpreter ABI Platform
timespeaker-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 12.8 kB

Release files / timespeaker-0.1.6.tar.gz

Download URL timespeaker-0.1.6.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b78c6e89b9f2135c1e3884583f6be05721b10293424d9ac73ad13ec1f27cdbd5
BLAKE2b-256 checksum
How to use checksums
1d09ee43500331139ebb9ee656ef88be3ca94ddb6c4f2bf41fdccc5c1589c54c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-88-generic

Release files / timespeaker-0.1.6-py3-none-any.whl

Download URL timespeaker-0.1.6-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2e768a893de3832c82e91dafbb758238c700a72c099e3a5d4dc444ff36975961
BLAKE2b-256 checksum
How to use checksums
670e65dd315c5d0cfbf126c4470b5f67ab968870e4252fe470c5be38f39acc21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.6 CPython/3.9.5 Linux/5.4.0-88-generic

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release 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