PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Talking Clock With Bash On Linux & espeak

Go down

Talking Clock With Bash On Linux & espeak Empty Talking Clock With Bash On Linux & espeak

Post by jamied_uk 22nd May 2016, 23:51

Code:
sudo apt-get install -y espeak



Code:
#!/bin/bash
date +%I:%M%p | espeak



Code:
sudo +x test.sh

Code:
./test.sh


File Update
https://app.box.com/s/vz1cmu4hpywotznal8o2sm0cshjachck


Idea came from
fitzcarraldoblog.wordpress.com/2012/01/19/setting-up-a-talking-clock-easily-in-linux


Last edited by jamied_uk on 23rd May 2016, 00:11; edited 3 times in total
jamied_uk
jamied_uk
Admin

Posts : 2952
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Talking Clock With Bash On Linux & espeak Empty Re: Talking Clock With Bash On Linux & espeak

Post by jamied_uk 22nd May 2016, 23:52

jamied_uk
jamied_uk
Admin

Posts : 2952
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Talking Clock With Bash On Linux & espeak Empty Re: Talking Clock With Bash On Linux & espeak

Post by jamied_uk 23rd May 2016, 00:55

Add a function to your .bashrc file



Code:
function clock(){
date +%I:%M%p | espeak
}
jamied_uk
jamied_uk
Admin

Posts : 2952
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Talking Clock With Bash On Linux & espeak Empty Re: Talking Clock With Bash On Linux & espeak

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum