RubyからMicrosoft Speech API 5.0を動かして遊んでみたので書いてみます。 以前BEPというプロジェクトでEmacspeakに日英2カ国語をしゃべらせるために、スピーチサーバと呼ばれる音声出力部を自作したことがありました。本家EmacspeakのスピーチサーバはTCL(エンジン制御部はC)で書かれているのですが、その頃の知識の問題もあって、日本語版は全体をC++で開発しました。文字列操作がとても面倒だったことを覚えています。 今ならLinux版はエンジン制御はCで書き、その上にスクリプト系言語をかぶせるのがいいだろうと思っています。RubyにSwigあたりでCライブラリをつなぐのが良さそうです。 ところで、BEPにはWindows版もあり、そちらはCOMを利用したC++のプログラムになっています。COMならRubyのWin32OLEでできるんじゃないか、ということで
saykanaコマンドという素晴らしいコマンドが紹介されていた。コマンドに続けて入力した、ひらがな・かたかな・英数字を日本語で読み上げてくれるのだ。こういうのを見つけると、とりあえず試してみたくなる。 $ saykana にほんごをはなそう $ saykana 123 $ saykana ABC 調子良く読み上げてくれた!面白い! ところが、意地悪く漢字混じりの文章を試すと... $ saykana 日本語を話そう ERR:(105) invalid kana string. 日本語を話そう コマンド名が sayかな なのだから当然の仕様だ。 環境 MacBook OSX 10.5.7 bash mecabの利用 ところで、自分のMacBookでは以前、mecabをインストールしたことを思い出した。 ベイジアンフィルターで日本語を分類する。 - ザリガニが見ていた...。 もしインストール
Comments Filter: All Insightful Informative Interesting Funny Thank you. I'm honored to be with you today for your commencement from one of the finest universities in the world. Truth be told, I never graduated from college and this is the closest I've ever gotten to a college graduation. Today I want to tell you three stories from my life. That's it. No big deal. Just three stories. The first sto
Luxury Hotels In BarcelonaPLA Plastic ResinBed And Breakfast BarcelonaHoteles Y Hostales Baratos En BarcelonaMunicipalAlojamiento Economico En BarcelonaPLACusto Barcelona Vow CamillaBiodegradableCusto Barcelona Cika DressBarcelona Vacation Com BarcelonaBudget Accommodation BarcelonaCar Hire Barcelona SpainHoliday Apartments Barcelonaããã°ãã¸ãã¹
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く