Add the community nodes to the package.json file

To make these nodes available to your instance of Node-RED, you need to add them to your package.json file.

    1. From your Bluemix page, find your application and stop it.

    1. After your application is stopped, click the application name (not the route).

    1. Find the section with the heading Continuous Delivery and click Add Git Repo And Pipeline.

    1. Click Continue to create the Git repository for your application.

    1. Wait for the Git repository to be created. After it’s created, click Close.

    1. Click Edit Code. In the list of application files, select the file json.

    1. Add the following four lines anywhere in the file. If you add the lines at the end of the file, be sure to remove the final comma.



"node-red-contrib-play-audio": "2.0.x",

"node-red-dashboard": "2.0.x",

    1. Save your changes by clicking File > Save.

      While you are here, make one more change. The microphone node creates temporary files in memory, which means you need to raise the memory allocation for your instance of Node-RED.

    2. Select the file manifest.yml.

    1. Raise the memory allocation to at least 1024M.

    1. Save your changes and redeploy your instance of Node-RED.


      1. Wait for the application to redeploy and restart.

      1. Navigate to the Bluemix dashboard or to your application:

        • To go to the Bluemix dashboard, click the Open the App Overview

        • To open your application, click the Open the Deployed App
      1. Go to your instance of Node-RED in the flow editor. Because this is a browser application, refresh the page.
      2. Search for the microphone

    The microphone node uses the browser capabilities that are available only on Chrome and new versions of Firefox.

      1. If you are not using Chrome, switch to Chrome or Firefox.

        The microphone node will need access to your computer microphone, which is possible only on HTTPS. If your instance of Node-RED is running on a platform such as Bluemix, make sure you are using HTTPS.


        1. Create a new tab and name the tab Interpreter. Then, click Done.


          1. Drag and drop an input microphone node onto the canvas.


            1. Drag and drop a function delay node to the canvas.

            1. Drag and drop an output play audio node to the canvas.

            1. Wire the nodes together and deploy your changes.

            1. Click the tab on the microphone node to start your recording.

            1. If prompted, allow the node to access the microphone.

            1. Speak to the microphone. Then, click the tab to stop the recording.

          After about five seconds, you should hear your recording.