Class: SpeakTextAction

Inherits:
DeviceAction show all
Defined in:
lib/ruby-macrodroid.rb

Overview

Category: Device Actions

Instance Attribute Summary

Attributes inherited from MacroObject

#options, #type

Instance Method Summary collapse

Methods inherited from Action

#invoke

Methods inherited from MacroObject

#to_h

Constructor Details

#initialize(h = {}) ⇒ SpeakTextAction

Returns a new instance of SpeakTextAction.



2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
# File 'lib/ruby-macrodroid.rb', line 2054

def initialize(h={})

  options = {
    text_to_say: '',
    queue: false,
    read_numbers_individually: false,
    specify_audio_stream: false,
    speed: 0.99,
    pitch: 0.99,
    wait_to_finish: false,
    audio_stream: 0
  }

  super(options.merge h)

end