Class: YandexSpeechApi::MP3_Player::Base
- Inherits:
-
Object
- Object
- YandexSpeechApi::MP3_Player::Base
- Defined in:
- lib/yandex_speech/mp3_player/base.rb
Overview
no-doc
Direct Known Subclasses
Defined Under Namespace
Classes: FileNotFound, UnknownExtension
Instance Method Summary collapse
-
#play(filename) ⇒ Object
Plays sound.
Instance Method Details
#play(filename) ⇒ Object
Plays sound
10 11 12 13 14 15 16 |
# File 'lib/yandex_speech/mp3_player/base.rb', line 10 def play(filename) @filename = Pathname.new filename validate_file_presence validate_mp3_format validate_requirements play_mp3 end |