返回列表 發帖

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

回復 6# alang


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

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

回復 13# bubblestar


    You ought to do this for better file and scripts management

TOP

回復 15# bubblestar


    Glad to hear this. Please show yours file and how they interact.

For me, I take out the macro into a separate file
skype_trunk into another
incoming call to third, etc

TOP

回復 17# bubblestar

This is the trick. If you somehow need to manage via GUI, the risk will be much lesser.

TOP

回復 17# bubblestar


An update:
http://zaf.github.com/asterisk-googletts/

The change logs are
  1. 2012-03-18 Lefteris Zafiris <zaf.000@gmail.com> - 0.6
  2.         Added speed factor option. Major rewrite of the cli app.
  3.         Many small fixes.

  4. 2012-01-18 Lefteris Zafiris <zaf.000@gmail.com> - 0.5
  5.         Removed the waiting for user input after the end of playback.
  6.         It is now advised to use Waitexten() in IVR to get that behavior.
  7.     Updated dialplan examples in README accordingly.
  8.         Replaced POSIX character class [:punct:] in text splitting regural
  9.         expressions. This fixes a misbehavior with some unicode strings.
  10.         Added sample cli app that does speech synthesis.

  11. 2011-12-20 Lefteris Zafiris <zaf.000@gmail.com> - 0.4
  12.         Added option for verbose debugging messages.
  13.         Fixed interrupt handling and cleaning of temp files.
  14.         Multiline and unicode input is now properly handled.
  15.         Code cleanup.

  16. 2011-12-13 Lefteris Zafiris <zaf.000@gmail.com> - 0.3
  17.         Fixed compatibility with asterisk 1.4 and older.
  18.         Changed the arguments of tempfile() for compatibility
  19.         with older perl versions.
  20.         Encode ampersands and plus sign to ascii values.
  21.         Added check for channel status before answering.
  22.         When 'intkey' is set the script waits for user input.

  23. 2011-12-01 Lefteris Zafiris <zaf.000@gmail.com> - 0.2
  24.         Working cache mechanism. Input sanitisation
  25.         and removal of dangerous characters. Better
  26.         error handling. Support for sampling rates
  27.         other than 8KHz. Cleanup mechanism for
  28.         temporary files.

  29. 2011-11-28 Lefteris Zafiris <zaf.000@gmail.com> - 0.1
  30.         Initial release 0.1
複製代碼

TOP

回復 22# lawleo


    You mean to use Mac OSX voice function to achieve? I think you can but it is a matter of programming

TOP

返回列表