cancel
Showing results for 
Search instead for 
Did you mean: 
SOLVED

Audio output on CtrlX Core X3

Audio output on CtrlX Core X3

schwaenen
Member

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

2 REPLIES 2

Sgilk
Contributor

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
    }
]

 

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

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist