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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voiddecreaseMasterVolume(float percent) static floatstatic voidincreaseMasterVolume(float percent) static voidstatic voidstatic voidstatic voidstatic voidplaySound(String sink, String filename, PercentType volume) static voidplaySound(String filename, PercentType volume) static voidplayStream(String url) static voidplayStream(String sink, String url) static voidsetMasterVolume(float volume) static voidsetMasterVolume(PercentType percent) 
- 
Constructor Details- 
Audiopublic 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
 
 
-