say Debian

Posted by okkez Mon, 26 May 2008 15:43:00 GMT

mac で say してる人が羨ましくて Debian で say ししてみた。

まずは、festival をインストール。

$ sudo aptitude install festival

うちの場合は、 何か勝手に入ってたので問題無し。

まずは Hallo World

$ festival festival> (SayText “Hello, World!”) festival> (quit)

こんだけで喋ってくれる。(コードが Scheme っぽい)

で、 say コマンドの実装。 今回は zsh script でやってみた。

function say() { echo “(SayText "$*")” | festival –pipe }

こんだけ。

$ say Hello World

it sounds so cool!

enjoy!

Posted in | 2 comments | タグ | atom

Trackbacks

Use the following link to trackback from your own site:
http://typo.okkez.net/trackbacks?article_id=say-debian&day=27&month=05&year=2008

Comments

Leave a response

  1. no6v
    about 3 hours later:

    おー、簡単。

    festival.el とかあって、 M-x festival-say-region とか出来るのね。

    あと、okkez が「おっきー」にならなかったので、バグ報告しときます。

  2. okkez
    about 19 hours later:

    no6v さん

    festival.el は便利そう。

    バグ報告よろしくお願いします!

Leave a comment