Module: YandexSpeechApi::MP3_Player
- Defined in:
- lib/yandex_speech/mp3_player.rb,
lib/yandex_speech/mp3_player/base.rb,
lib/yandex_speech/mp3_player/mac_mp3_player.rb,
lib/yandex_speech/mp3_player/linux_mp3_player.rb
Defined Under Namespace
Classes: Base, Linux_MP3_Player, Mac_MP3_Player, UnknownOs
Class Method Summary collapse
-
.init ⇒ Linux_MP3_Player, Mac_MP3_Player
Creates MP3 player instance.
Class Method Details
.init ⇒ Linux_MP3_Player, Mac_MP3_Player
Creates MP3 player instance. Depends from OS.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/yandex_speech/mp3_player.rb', line 14 def self.init @player ||= case Helpers::recognize_operation_system when :linux Linux_MP3_Player.new when :mac_os Mac_MP3_Player.new else raise UnknownOs end end |