返回列表 發帖

google TTS

I got an update on Text to Speech.

If you have an asterisk server, you may try this agi

Detailed set up can be found here

http://211.72.203.62/VoIP/IP_PBX ... 8B_TTS_-_Google_TTS

Language support

-------------------
Supported Languages
-------------------
"af" Afrikaans, "sq" Albanian, "am" Amharic, "ar" Arabic, "hy" Armenian, "az" Azerbaijani,
"eu" Basque, "be" Belarusian, "bn" Bengali, "bh" Bihari, "bs" Bosnian, "br" Breton, "bg" Bulgarian,
"km" Cambodian, "ca" Catalan, "zh-CN" Chinese (Simplified), "zh-TW" Chinese (Traditional),
"co" Corsican, "hr" Croatian, "cs" Czech, "da" Danish, "nl" Dutch, "en" English, "eo" Esperanto,
"et" Estonian, "fo" Faroese, "tl" Filipino, "fi" Finnish, "fr" French, "fy" Frisian, "gl" Galician,
"ka" Georgian, "de" German, "el" Greek, "gn" Guarani, "gu" Gujarati, "xx-hacker" Hacker, "ha" Hausa,
"iw" Hebrew, "hi" Hindi, "hu" Hungarian, "is" Icelandic, "id" Indonesian, "ia" Interlingua, "ga" Irish,
"it" Italian, "ja" Japanese, "jw" Javanese, "kn" Kannada, "kk" Kazakh, "rw" Kinyarwanda,
"rn" Kirundi, "xx-klingon" Klingon, "ko" Korean, "ku" Kurdish, "ky" Kyrgyz, "lo" Laothian,
"la" Latin, "lv" Latvian, "ln" Lingala, "lt" Lithuanian, "mk" Macedonian, "mg" Malagasy,
"ms" Malay, "ml" Malayalam, "mt" Maltese, "mi" Maori, "mr" Marathi, "mo" Moldavian, "mn" Mongolian,
"sr-ME" Montenegrin, "ne" Nepali, "no" Norwegian, "nn" Norwegian (Nynorsk), "oc" Occitan, "or" Oriya,
"om" Oromo, "ps" Pashto, "fa" Persian, "xx-pirate" Pirate, "pl" Polish, "pt-BR" Portuguese (Brazil),
"pt-PT" Portuguese (Portugal), "pa" Punjabi, "qu" Quechua, "ro" Romanian, "rm" Romansh, "ru" Russian,
"gd" Scots Gaelic, "sr" Serbian, "sh" Serbo-Croatian, "st" Sesotho, "sn" Shona, "sd" Sindhi,
"si" Sinhalese, "sk" Slovak, "sl" Slovenian, "so" Somali, "es" Spanish, "su" Sundanese, "sw" Swahili,
"sv" Swedish, "tg" Tajik, "ta" Tamil, "tt" Tatar, "te" Telugu, "th" Thai, "ti" Tigrinya, "to" Tonga,
"tr" Turkish, "tk" Turkmen, "tw" Twi, "ug" Uighur, "uk" Ukrainian, "ur" Urdu, "uz" Uzbek,
"vi" Vietnamese, "cy" Welsh, "xh" Xhosa, "yi" Yiddish, "yo" Yoruba, "zu" Zulu.

I found the quality in Chinese not bad

TOP

I try this. good audio quality
exten => 1003,1,Answer
exten => 1003,n,Wait(2)
exten => 1003,n,AGI(googletts.agi,"你好嗎? 歡迎光臨我的電話系統",zh-TW)
;exten => 1003,n,Background(thank-you-for-calling,m)
;exten => 1003,n,Background(vm-enter-num-to-call,m)
exten => 1003,n,AGI(googletts.agi,"請輸入你需要的內線號碼",zh-TW)
exten => 1003,n,WaitExten()
exten => 1003,n,Hangup
exten => i,1,AGI(googletts.agi,"內線號碼不正確",zh-TW)
exten => i,2,Goto(1003,1)
exten => t,1,AGI(googletts.agi,"再見",zh-TW)
exten => t,2,Hangup

TOP

今早從街上打回再試,基本上非常清晰。

TOP

My test result is the other way round.  The TTS in English is better while Chinese is garbled.

I doubt I don't have appropriate codec installed.  Do you have any ideas which codec should I use for the conversion.  Also, have you installed *.wav in the system?

TOP

我想這與 codec 沒有直接的關係,至少使用 ulaw/alaw 一定可以工作,另外也不需安裝任何語音檔 *.wav,因為這是利用 stdin 方式,類似播放語音串流方式。

https://plus.google.com/u/0/1101 ... 0/posts/ZQ9kjoFdc1R
OSSLab Blog :: VoIP & IT Consultant

TOP

回復 6# alang


    或者是網絡的問題,我現在只設定普通話,但效果好好。昨晚試英文就不堪入耳,比OBi AA 還差

TOP

回復 6# alang


   
謝謝Alang 師兄回覆,因為昨晚半夜安裝測試,可能有遺漏也說不定。稍後再查找原因。

TOP

回復 7# ckleea


    OBi AA 英文現在的確好一些,GoogleTTS 英文稍遜,GoogleTTS 中文暫時很差,可能是我本身的問題,要再測試才能作比較。

TOP

你可以先到這裡,聽聽它的語調,其實我也不喜歡它的語調,不過免費的中文 TTS 實在很難見,就湊合著用了。
http://translate.google.com/?hl=en&tab=mT
OSSLab Blog :: VoIP & IT Consultant

TOP

終於成功地聽到 Google TTS  的中文了,還不錯嘛,可以接受啊!
我把extension.conf 在Gnome 上以UTF-8 儲存,就可以聽到了。Default 好像是 western 8859 ISO之類的設置,所以一直不成功也沒有留意。而且之前多數以WinSCP 修改及儲存APL所寫的dial plan,所以....

TOP

回復 11# bubblestar


    You may need to create a special .conf file to handle this. E.g. I use googletts.conf and use include => googletts.conf in the extensions.conf

TOP

回復 12# ckleea


   
我也是這樣想。就跟其它一些Macro 都想這樣做。

TOP

回復 13# bubblestar


    You ought to do this for better file and scripts management

TOP

回復 14# ckleea


I have splitted extensions.conf into several configuration files for easy managements now.  It runs without problem.

TOP

返回列表