FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
11-13-2023 05:37 PM
Hi all,
recently, I tested successfully the NodeRed Audio Output that converts text to speech - on my VirtualCore. Transferring this flow to the X3 however proved not working. The audio node is triggered correctly, I believe, but I hear no voice. And thinking about it, I wondered from where it should come.
Do you have any idea how to get audio output from NodeRed working on CtrlX Core X3, ideally such that the audio is played on the client device (f.e. laptop connected via http)?
Thanks, Markus
Solved! Go to Solution.
11-13-2023 06:34 PM - edited 11-13-2023 06:35 PM
Hello Markus,
Are you certain the audio is enabled on your client device? Here is a flow I just tested in a Chrome browser client with Node-RED running on the ctrlX CORE X3. The dashboard contains a text entry box which is passed to the audio output node.
[
{
"id": "4e0db89ca589c9f8",
"type": "tab",
"label": "Audio",
"disabled": false,
"info": "",
"env": []
},
{
"id": "b8f71b2c9b431175",
"type": "ui_audio",
"z": "4e0db89ca589c9f8",
"name": "",
"group": "7c014f53d28beb23",
"voice": "Microsoft David - English (United States)",
"always": "",
"x": 420,
"y": 80,
"wires": []
},
{
"id": "4367c59c420f21e2",
"type": "ui_text_input",
"z": "4e0db89ca589c9f8",
"name": "",
"label": "Text To Speach",
"tooltip": "",
"group": "7c014f53d28beb23",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"mode": "text",
"delay": 300,
"topic": "topic",
"sendOnBlur": true,
"className": "",
"topicType": "msg",
"x": 200,
"y": 80,
"wires": [
[
"b8f71b2c9b431175"
]
]
},
{
"id": "7c014f53d28beb23",
"type": "ui_group",
"name": "Default",
"tab": "2fc1ffece0d082f3",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "2fc1ffece0d082f3",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]
11-18-2023 01:02 PM
Hi,
thank you very much for your reply. Indeed, your code is working on my CtrlX Core as well. Digging in, I found the difference to be that I used the Google voice, not the one from Microsoft (which is also default). Upon changing that, my original approach also works on my Core. Not sure why that is, though, particularily since everything is fine on the VirtualCore.
Do you have working google voices on the Core?
Background in case somebody is interested: I wanted to have a spoken warning message when a limit switch is reached by the drive. In the attached code, I brought this to life with two different text messages in different languages, that are synthesized with two different voices and played in an endless loop until the limit switch is not active any more. Only thing that bugged me a bit: I could not figure out how to interrupt the speech immediately when the switch is deactivated. Instead, it always finishes the message it has started.
Cheers,
Markus