Blockly internet audio sink SILENT, however playsound webaudio sink rule DSL script works superb?

Blockly internet audio sink SILENT, however playsound webaudio sink rule DSL script works superb?

  • Platform info:
    • Hardware: _X86 (vmware digital machine)
    • OS: OpenHabian4
    • Java Runtime Environment: openjdk 17.0.11
    • openHAB model:4.1.3

I’m attempting to create scripts with blockly to pay audio information by means of the net audio sink. When I create the only blockly script it by no means performs audio, but when I create a easy one line script with DSL utilizing playsound, it really works superb taking part in on the browser that’s linked to OH4 utilizing the BasicUI.
I seen that if I have a look at the script that blockly creates, it’s creating an audio object and if I insert this declaration on the prime of my DSL script it additionally fails to execute.

audio = Java.sort('org.openhab.core.mannequin.script.actions.Audio')
playSound("webaudio","barking.mp3")

I don’t see any errors within the developer log view when the script fires, however I think there’s something unsuitable with that first line that’s inflicting each scripts to fail. Any concepts what could possibly be unsuitable there? It is the default code generated by Blockly, additionally there may be an error logged in /var/log/openhab/openhab.log:

2024-09-08 16:13:04.222 [ERROR] [internal.handler.ScriptActionHandler] – Script execution of rule with UID ‘f6a6df74a3’ failed: ___ audio = ___ Java.sort(‘org.openhab.core.mannequin.script.actions.Audio’)
playSound(“webaudio”,“barking.mp3”)

  1. The technique audio(Object) is undefined; line 1, column 0, size 5
  2. The technique or discipline Java is undefined; line 1, column 8, size 4

1 submit – 1 participant

Read full subject

HI-FI News

through openHAB Community – Latest matters https://ift.tt/9Ll5dU6

September 8, 2024 at 10:07PM