Class Audio
java.lang.Object
org.openhab.core.model.script.actions.Audio
The static methods of this class are made available as functions in the scripts.
This allows a script to use audio features.
- Author:
- Kai Kreuzer - Initial contribution, Christoph Weitkamp - Added parameter to adjust the volume
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
decreaseMasterVolume
(float percent) static float
static void
increaseMasterVolume
(float percent) static void
static void
static void
static void
static void
playSound
(String sink, String filename, PercentType volume) static void
playSound
(String filename, PercentType volume) static void
playStream
(String url) static void
playStream
(String sink, String url) static void
setMasterVolume
(float volume) static void
setMasterVolume
(PercentType percent)
-
Constructor Details
-
Audio
public Audio()
-
-
Method Details
-
playSound
-
playSound
-
playSound
-
playSound
-
playSound
-
playSound
-
playStream
-
playStream
-
getMasterVolume
- Throws:
IOException
-
setMasterVolume
- Throws:
IOException
-
setMasterVolume
- Throws:
IOException
-
increaseMasterVolume
- Throws:
IOException
-
decreaseMasterVolume
- Throws:
IOException
-