This .pet (startup_welcome_alert-mk1) provides a verbal multilingual welcome plus an alarm should a working internet connection not have been established.
The spoken welcome varies according to the time of day & the script also verifies that a working Internet connection exists.
If it does not, an alarm will sound instead of the welcome.
Both the greeting and the alarm are supplemented by on-screen messages in English.
Only a single mp3 audio file is included in the .pet for the alarm, everything else including translation is handled by TTS.
This pet is suitable for use with recent WoofCE Pups and has been tested with 666philb's Bionicpup64 7.9.8 CE RC & 8.0
Installation:
1. Use ppm to install xdotool & mpv if not currently present.
2. Use ppm to install translate-shell_0.9.6.6-1 plus it's dependencies.
3. Install the attached pet, then reboot ensuring that you save the session.The pet will activate following a further reboot & save.
Final thoughts & additional info:
A. Whilst Google Translate is used as the default translation engine other engines may be specified:-
- root# trans -S
aspell
* google
deepl
bing
spell
hunspell
apertium
yandex
root#
C. No browsers are involved in this process.
D. The text to be spoken can easily be changed. In addition once you have translate-shell installed you can issue spoken messages from either
the command line or from within any script, perhaps to warn of impending meltdown or lack of free memory.
A simple example CLI command follows which will be translated from English text and spoken in French.
Code: Select all
trans -b -p en: :fr "Good day Wee Hamish","Internet access is confirmed. Would you like to play the square game?"
EDIT: 10th June 2020
The latest mk6 pet issued on 10th June 2020 can be found HERE.