I like that. I wish I had a camcorder....
I like that. I wish I had a camcorder....
You can also use espeak or festival to synthetize voice.
heard of espeak but what's festival?
makes your computer say 'hello'.festival "Hello"
Would do this but I already have an huge reputation as a nerd and it could get annoying in lectures
...
Code:niko@home:~$ festival "hello" WARNING No default voice found in ("/usr/share/festival/voices/") either no voices unpacked or voice-path is wrong Scheme interpreter will work, but there is no voice to speak with. WARNING SIOD ERROR: could not open file hello niko@home:~$
It works on lid close for me, but not open. I'm new to Ubuntu and Linux in general, but not to programming, so is there a way for me to see what value is returned when lid state is open? More curiosity than anything. Thanks for the idea though. I found all kinds of files in that directory to play with.
Just read the contents of the file "/proc/acpi/button/lid/LID/state":
I don't know why it doesn't work on lid open for you though. :/Code:cat /proc/acpi/button/lid/LID/state
@nikoPSK and simplyw00x:
works, but for festival, the syntax is different:Code:espeak "hello"
From the man page:
So you can use:--tts Synthesize text in files as speech no files means read from stdin (implies no interaction by default)
or:Code:echo "hello" | festival --tts
where "speak.txt" is a text file containing the text you wish to hear. (very practical )Code:festival --tts speak.txt
The state seems to show correctly. I have seen posts throughout the forum where laptop lid detection for suspend/hibernate doesn't always work for certain laptops. Mine probably doesn't throw the event (is that what it's called in Linuxspeak?) when the lid opens for some reason, or I need to delay the sound from playing long enough for the screen to re-illuminate. Something to play with in my spare time. The close by itself is still fun. I let my coworker shut the lid. When the computer asked him "Hey! Who turned out the lights?", he was quite startled. There is also fun to be had with power.sh...
does anyone know how i can make this work when i plug a usb device in?
HEY!
I just got some voices from Red Alert 2 to use as my system sounds! It's so cool!
When I close the lid, I hear Sophia saying "On hold", and when I open it, a conscript says: "Good to see you, Sir. What are our orders?". As I was with this, I also put the "Low power" message for when my laptop's battery gets to 10%.
I love it! Thanks for the idea!
Bookmarks