So, we created a new file "vkp" (shorthand for viikonpäivät) and wrote all the weekdays there in Finnish. Vim was very easy this time, but typing all those words was challenging. Yet we triumphed. We used both the "o" (new line) and "a" (append) commands this time.
We used cat to print out the file contents, then piped the output to say to hear the computer speak out the weekdays. That was a bit disappointing, because the English voice is really really bad at speaking Finnish. I wish there was a way to get a Finnish voice on a Snow Leopard Mac. But I guess there isn't. Maybe we'll install Linux next time. I heard there's a Finnish voice there.
We googled for badger and watched the video. Then we practised the badger dance while brushing teeth.
function sano { mplayer -really-quiet "http://translate.google.com/translate_tts?tl=fi&q=$1"; }
ReplyDeletesano "Jos ei ääkkösiä lasketa, tämä kuulostaa aika lailla suomelta."
(Adapted from http://findingscience.com/linux/os_x/2010/11/28/os-x-say-command-on-linux.html )
Not bad! Works on a Mac too, after "brew install mplayer".
ReplyDeletesano "Ääkkösiä kun vielä sais viilattua:) Voiskohan putkittaa sedin läpi?"
I got my Mac to talk in Finnish by downloading and unzipping this http://espeak.sourceforge.net/download.html.
ReplyDeleteThere is binary called `speak` that you can use. Something like `speak -v finnish "Toimii myös putken läpi"`. The voice is very artificial but the sounds like Finnish.