Class: OpenHAB::Core::Actions::Voice
- Inherits:
-
Object
- Object
- OpenHAB::Core::Actions::Voice
- Defined in:
- lib/openhab/core/actions/voice.rb
Overview
Class Method Summary collapse
-
.say(text, voice: nil, sink: nil, volume: nil) ⇒ void
Say text via openHAB Text-To-Speech service, Voice.say().
Class Method Details
.say(text, voice: nil, sink: nil, volume: nil) ⇒ void
This method returns an undefined value.
Say text via openHAB Text-To-Speech service, Voice.say()
28 29 30 31 |
# File 'lib/openhab/core/actions/voice.rb', line 28 def say(text, voice: nil, sink: nil, volume: nil) volume = PercentType.new(volume) unless volume.is_a?(PercentType) || volume.nil? raw_say(text.to_s, voice&.to_s, sink&.to_s, volume) end |