# Watson STT & TTS "Send is not a function"

**URL:** <https://discourse.nodered.org/t/watson-stt-tts-send-is-not-a-function/24543>\
**Category:** General\
**Created:** [9 April 2020 18:27 UTC](https://discourse.nodered.org/t/watson-stt-tts-send-is-not-a-function/24543 "2020-04-09T18:27:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![radioman192](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@radioman192](https://discourse.nodered.org/u/radioman192)\
**Post date:** [9 April 2020 18:27 UTC](https://discourse.nodered.org/t/watson-stt-tts-send-is-not-a-function/24543/1 "2020-04-09T18:27:23Z")

</div>

I'm trying to work through the Watson project to create a voice enabled Covid-19 chatbot using node-red ([https://developer.ibm.com/tutorials/create-a-voice-enabled-covid-19-chatbot-using-node-red/](https://developer.ibm.com/tutorials/create-a-voice-enabled-covid-19-chatbot-using-node-red/)) but cannot get the STT or TTS modules to work. They both fail with a message indicating that "send is not a function" . The console log advises that we had ....UnhandledPromiseRejectionWarning: TypeError: done is not a function  
at /Users/donald/.node-red/node\_modules/node-red-node-watson/services/text\_to\_speech/v1.js:196:9 and so on.  
I don't believe my Watson STT and TTS instances are at fault as I can run the speech recognition demo and the sample curl programs which can be found elsewhere on [IBM.com](http://IBM.com). I'm guessing it's somewhere in node-red but I'm not sure how to diagnose... Anyone else experiencing the same ?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [9 April 2020 18:29 UTC](https://discourse.nodered.org/t/watson-stt-tts-send-is-not-a-function/24543/2 "2020-04-09T18:29:51Z")

</div>

@radioman192 can you share how you have configured the nodes? Will probably need @chughts to suggest something.

---

<div class="post-metadata">

**Author:** ![chughts](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/chughts/32/139_2.png) [@chughts](https://discourse.nodered.org/u/chughts)\
**Post date:** [10 April 2020 05:06 UTC](https://discourse.nodered.org/t/watson-stt-tts-send-is-not-a-function/24543/3 "2020-04-10T05:06:57Z")

</div>

This will be because the Watson nodes are now Node-RED 1.x compliant. You will need to upgrade Node-RED to at least 1.0.0. They have been tested on 1.0.3

---

<div class="post-metadata">

**Author:** ![radioman192](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@radioman192](https://discourse.nodered.org/u/radioman192)\
**Post date:** [10 April 2020 15:48 UTC](https://discourse.nodered.org/t/watson-stt-tts-send-is-not-a-function/24543/4 "2020-04-10T15:48:35Z")

</div>

I thought all my node-red instances were at the latest level but on checking my main one I see it says "0.20.6" which I need to investigate.  
Thanks!

---

<div class="post-metadata">

**Author:** ![radioman192](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@radioman192](https://discourse.nodered.org/u/radioman192)\
**Post date:** [10 April 2020 16:19 UTC](https://discourse.nodered.org/t/watson-stt-tts-send-is-not-a-function/24543/5 "2020-04-10T16:19:36Z")

</div>

doh!! It seems to be working now. (Apart from not getting my accent too well - Watson clearly wasn't tested by Groundskeeper Willy!!!)

Thank you so much for the push in the right direction...

---

<div class="post-metadata">

**Author:** ![radioman192](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@radioman192](https://discourse.nodered.org/u/radioman192)\
**Post date:** [12 April 2020 10:23 UTC](https://discourse.nodered.org/t/watson-stt-tts-send-is-not-a-function/24543/6 "2020-04-12T10:23:46Z")

</div>

This needs work. Audio from the microphone of my MacBook goes to Watson via STT but doesn't always get transcribed accurately whereas if I record a wav file using the same microphone and send it as a file to STT it has a much higher chance of being transcribed accurately..... I've yet to try this on a RPi with microphone array so we'll see how that works.

In the meantime, I've discovered something else that might be release related...  
Watson Assistant does not respond to an accurately transcribed phrase (like "What is corona virus". It consistently responds with "Resource not found" and I'm pretty certain the node is configured correctly. The console log shows that Assistant is V1. Is this correct? Looking at github the inference is that Assistant should be V2.  
Should I have re-installed the Watson package when I upgraded Node-Red?

---

<div class="post-metadata">

**Author:** ![radioman192](https://avatars.discourse-cdn.com/v4/letter/r/f08c70/32.png) [@radioman192](https://discourse.nodered.org/u/radioman192)\
**Post date:** [12 April 2020 11:03 UTC](https://discourse.nodered.org/t/watson-stt-tts-send-is-not-a-function/24543/7 "2020-04-12T11:03:28Z")

</div>

Opened eyes and note that there is already a V2 Assistant node in the palette. Tried ... no difference  
Also tried Assistant Lite - same result ☹

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [26 April 2020 11:03 UTC](https://discourse.nodered.org/t/watson-stt-tts-send-is-not-a-function/24543/8 "2020-04-26T11:03:29Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
