Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
Festivalのソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
Festival
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:アクセシビリティ]] [[Category:音声/動画]] [[en:Festival]] [[ru:Festival]] [http://www.cstr.ed.ac.uk/projects/festival/ Festival] は CSTR ([http://www.cstr.ed.ac.uk/ Centre for Speech Technology Research]) で開発された汎用の多言語音声合成システムです。 Festival には音声合成システムを作成するための汎用フレームワークと様々なモジュールのサンプルが入っています。それらをまとめて、Festival は API を通して完全なテキスト読み上げを提供します: シェルや、Scheme コマンドラインインタプリタ、C++ ライブラリ、Java、Emacs インターフェイスなどから使うことが可能です。Festival は多言語に対応しています (現在利用できるのはイギリス英語、アメリカ英語、イタリア語、チェコ語、スペイン語など)。 == インストール == [[公式リポジトリ]]から {{Pkg|festival}} を[[pacman|インストール]]してください。{{Pkg|festival-english}} や {{Pkg|festival-us}} などの音声パッケージも必要です。様々な言語が公式リポジトリや [[AUR]] からインストールできます。 festival のテスト: $ echo "This is an example. Arch is the best." | festival --tts サンプルテキストを聞くことができたら、TTS システムのインストールは完了です。 何も聞こえない場合、[[#トラブルシューティング|トラブルシューティング]]セクションを見て下さい。デスクトップシステムを使っていて、{{ic|/dev/dsp}} に関するメッセージが表示される場合、指示に従ってください。 == 設定 == {{ic|/etc}} にグローバルな設定ファイルはありませんが、{{ic|~/.festivalrc}} ファイルや {{ic|/usr/share/festival/festival.scm}} を直接編集することで festival の設定を行えます。どちらも scheme のファイルであり、scheme の構文に従って記述されていて、festival が実行されるたびに実行されています。 === サウンドサーバーを使う === PulseAudio の場合、以下の行を {{ic|~/.festivalrc}} ファイルか {{ic|/usr/share/festival/festival.scm}} の最後に追加してください: (Parameter.set 'Audio_Required_Format 'aiff) (Parameter.set 'Audio_Method 'Audio_Command) (Parameter.set 'Audio_Command "paplay $FILE --client-name=Festival --stream-name=Speech") ALSA の場合、以下の行を使ってください ([http://ubuntuforums.org/showpost.php?p=4058268&postcount=16 ソース]): (Parameter.set 'Audio_Method 'Audio_Command) (Parameter.set 'Audio_Command "aplay -q -c 1 -t raw -f s16 -r $SR $FILE") === 音声 === Arch は公式の音声セットを {{Pkg|festival-english}} と {{Pkg|festival-us}} に分けています。[https://aur.archlinux.org/packages/?K=festival The AUR] にも音声パッケージはありますが、メンテナンスの状態によって動作したりしなかったりします。 インストールしている音声とデフォルトの音声を確認するには、Festival のシェルを開いてください (scheme REPL): $ festival Festival Speech Synthesis System 2.1:release November 2010 Copyright (C) University of Edinburgh, 1996-2010. All rights reserved. clunits: Copyright (C) University of Edinburgh and CMU 1997-2010 clustergen_engine: Copyright (C) CMU 2005-2010 hts_engine: The HMM-based speech synthesis system (HTS) hts_engine API version 1.04 (http://hts-engine.sourceforge.net/) Copyright (C) 2001-2010 Nagoya Institute of Technology 2001-2008 Tokyo Institute of Technology All rights reserved. For details type `(festival_warranty)' festival> voice_default voice_cmu_us_slt_arctic_hts ;;<-- THIS IS THE VOICE FESTIVAL SPEAKS WITH festival> default-voice-priority-list (kal_diphone ;;<-- THIS IS THE HARD-CODED LIST OF VOICES FESTIVAL CAME PRE-AWARE OF cmu_us_bdl_arctic_hts cmu_us_jmk_arctic_hts cmu_us_slt_arctic_hts cmu_us_awb_arctic_hts ked_diphone don_diphone rab_diphone en1_mbrola us1_mbrola us2_mbrola us3_mbrola gsw_diphone el_diphone) festival> (voice_ ;;<-- PRESS TAB HERE TO SEE WHAT VOICES FESTIVAL HAS AVAILABLE voice_cmu_us_slt_arctic_hts voice_kal_diphone voice_nitech_us_slt_arctic_hts voice_reset voice_default voice_nitech_us_clb_arctic_hts voice_rab_diphone festival> (voice_cmu_us_slt_arctic_hts) cmu_us_slt_arctic_hts festival> (SayText "Arch makes me happy") #<Utterance 0x7fb5b8c423b0> festival> デフォルトの音声を永続的に変更したい場合は以下のような行を {{ic|~/.festivalrc}} の最後に追加します: (set! voice_default voice_cmu_us_slt_arctic_hts) festival.scm で音声を設定することはできません。グローバルに音声を設定したいときは、{{ic|/usr/share/festival/voices.scm}} で検索する音声の順番を設定してください。 ==== HTS 対応パッチ ==== Some say that HTS voices for Festival are the best ones freely available. Sadly they are not compatible with Festival >2.1 without patching it (and the new voice versions are not made available for downloading). You can install the patched version from [[AUR]]: [https://aur.archlinux.org/packages/festival-patched-hts/ festival-patched-hts ] and [https://aur.archlinux.org/packages/festival-hts-voices-patched/ festival-hts-voices-patched ] ((IS THIS STILL TRUE? {{Pkg|festival-us}} comes with {{ic|cmu_us_slt_arctic_hts}})) ==== 音声を手動でインストール ==== You can also get voices straight from [http://festvox.org/festival/downloads.html festvox.org]. In their downloads, the files named "festvox_*.tgz" each contain a different voice, as built by the festival team. They do work, but you will need to manually unzip and move the folder containing the voice to the appropriate place. On a recent Arch, the appropriate place is /usr/share/festival/voices/english/ and the way to tell what folder contains the voice is to look for a 'festvox/' subfolder inside of it. You can then test that your new voices are found by loading up the festival prompt again. == 使用方法 == テキストファイルを読み上げる: $ festival --tts /path/to/letter.txt Be obnoxious while demonstrating piping $ (echo "Get ready for some pain"; sudo cat /var/log/messages.log) | festival --tts テキストファイルを mp3 に変換: $ cat letter.txt | text2wave | lame - file.mp3 && mplayer file.mp3 === インタラクティブモード (音声のテストなど) === festival にはテスト用の対話式プロンプトがあります。例: $ festival [...] festival> List available voices: festival> (voice.list) (cstr_us_awb_arctic_multisyn kal_diphone don_diphone) Set voice: festival> (voice_cstr_us_awb_arctic_multisyn) #<voice 0x1545b90> Speak: festival> (SayText '"test this is a test oh no a test bla test") inserting pause after: t. Inserting pause [...] id _63 ; name t ; id _65 ; name # ; #<Utterance 0x7f7c0c144810> More: festival> help "The Festival Speech Synthesizer System: Help Quit: ctrl+d or festival> (quit) === サンプルスクリプト === One classic app that can make use of this is ping. Use this script to constantly ping a host, and return ping if success, fail if not: #!/bin/bash while :; do ping -c 1 $1 && (echo "Ping" | festival --tts) || (echo "Fail" | festival --tts) done Note that this does not really work on multisynth voices, as they take a while to prepare before playing. == トラブルシューティング == === Can't open /dev/dsp === festival が以下のエラーメッセージを返す場合: Linux: can't open /dev/dsp 上の [[#サウンドサーバーを使う]] を見て下さい。 === Alsa の再生速度がおかしい === 上の音声でキーキー音が出てしまう場合、aplay のオプションを変更してみてください: (Parameter.set 'Audio_Method 'Audio_Command) (Parameter.set 'Audio_Command "aplay -Dplug:default -f S16_LE -r $SR $FILE") === aplay Command not found === {{Pkg|alsa-utils}} をインストールしてください。 == 参照 == * [http://www.cstr.ed.ac.uk/projects/festival/manual/ Festival マニュアル]
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
Festival
に戻る。
検索
検索
Festivalのソースを表示
話題を追加