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 ⇒ Object
Methods inherited from Action
Methods inherited from MacroObject
Constructor Details
#initialize(h = {}) ⇒ SpeakTextAction
Returns a new instance of SpeakTextAction.
2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 |
# File 'lib/ruby-macrodroid.rb', line 2868 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 ⇒ Object
2885 2886 2887 |
# File 'lib/ruby-macrodroid.rb', line 2885 def to_s() "Speak Text (%s)" % @h[:text_to_say] end |