Class: SpeakTextAction
- Inherits:
-
DeviceAction
- Object
- MacroObject
- Action
- DeviceAction
- SpeakTextAction
- Defined in:
- lib/ruby-macrodroid.rb
Overview
Category: Device Actions
Instance Attribute Summary
Attributes inherited from Action
Attributes inherited from MacroObject
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ SpeakTextAction
constructor
A new instance of SpeakTextAction.
- #to_s(colour: false) ⇒ Object
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SpeakTextAction
Returns a new instance of SpeakTextAction.
3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 |
# File 'lib/ruby-macrodroid.rb', line 3388 def initialize(h={}) = { 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(.merge h) end |
Instance Method Details
#to_s(colour: false) ⇒ Object
3405 3406 3407 |
# File 'lib/ruby-macrodroid.rb', line 3405 def to_s(colour: false) "Speak Text (%s)" % @h[:text_to_say] end |