Class: YandexSpeechApi::MP3_Player::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/yandex_speech/mp3_player/base.rb

Overview

no-doc

Direct Known Subclasses

Linux_MP3_Player, Mac_MP3_Player

Defined Under Namespace

Classes: FileNotFound, UnknownExtension

Instance Method Summary collapse

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