Module: Gtts
- Defined in:
- lib/gtts.rb,
lib/gtts/tts.rb,
lib/gtts/lang.rb,
lib/gtts/version.rb
Defined Under Namespace
Modules: Lang Classes: Error, GTTS, GttsError, Speed
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
-
.create(text, **options) ⇒ Object
Shortcut for creating a new GTTS instance.
-
.language_supported?(lang_code) ⇒ Boolean
Check if a language is supported.
-
.languages ⇒ Object
Get list of supported languages.
Class Method Details
.create(text, **options) ⇒ Object
Shortcut for creating a new GTTS instance
11 12 13 |
# File 'lib/gtts.rb', line 11 def self.create(text, **) GTTS.new(text, **) end |
.language_supported?(lang_code) ⇒ Boolean
Check if a language is supported
21 22 23 |
# File 'lib/gtts.rb', line 21 def self.language_supported?(lang_code) Lang.supported?(lang_code) end |