文件名称:tts:使用Google翻译服务的“用于语音合成”的Ruby
文件大小:9KB
文件格式:ZIP
更新时间:2024-06-14 22:19:03
Ruby
TTS 使用Google Translate服务作为语音引擎,此gem从任何给定的字符串生成.mp3语音文件。 用法 require 'tts' # Will download "Hello World!.mp3" to your current directory # Supported languages: ["zh", "en", "it", "fr"] "Hello World!" . to_file "en" # i18n "人民代表代表人民" . to_file "zh" # Save the file to a specific location "Light rain with highs of 5 degrees" . to_file "en" , "~/weather.mp3" # Supports large text files, as the gem wil
【文件预览】:
tts-master
----.gitignore(806B)
----bin()
--------text2mp3(246B)
--------tts(230B)
----Gemfile(134B)
----tts.gemspec(2KB)
----Gemfile.lock(2KB)
----spec()
--------tts_spec.rb(3KB)
----README.rdoc(2KB)
----example()
--------play_hello_world_en.rb(44B)
--------gen_hello_world_en.rb(43B)
----LICENSE.txt(1KB)
----VERSION(6B)
----lib()
--------tts.rb(3KB)
----Rakefile(1KB)