# Text to speech textbox

**URL:** <https://discourse.nodered.org/t/text-to-speech-textbox/41113>\
**Category:** General\
**Created:** [16 February 2021 18:37 UTC](https://discourse.nodered.org/t/text-to-speech-textbox/41113 "2021-02-16T18:37:11Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnyboyneedsurhelp](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@johnyboyneedsurhelp](https://discourse.nodered.org/u/johnyboyneedsurhelp)\
**Post date:** [16 February 2021 18:37 UTC](https://discourse.nodered.org/t/text-to-speech-textbox/41113/1 "2021-02-16T18:37:12Z")

</div>

Hello Everyone,

I'm trying to build a simple textbox to speech application. I am new to node-red and need some help on fundamentals. I have created a website to type the message I want to be sent and am just trying to get everything to work.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/e/ae48de27af4ee6e60fe1f81cddaead84a866fc5f.png)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 February 2021 19:19 UTC](https://discourse.nodered.org/t/text-to-speech-textbox/41113/2 "2021-02-16T19:19:15Z")

</div>

You have not supplied much info, like any errors or debug info. It is very difficult to see what you are doing wrong.

upload your flow and debug of nodes giving you issue

In the meantime, the ui dashboard node will do this very easily.

```auto
[{"id":"b3aa869b.cb8048","type":"inject","z":"5a245aa1.510164","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"hello world","payloadType":"str","x":160,"y":2640,"wires":[["98153b94.abdd9"]]},{"id":"98153b94.abdd9","type":"ui_text_input","z":"5a245aa1.510164","name":"","label":"enter","tooltip":"","group":"8b5cde76.edd58","order":4,"width":0,"height":0,"passthru":true,"mode":"text","delay":"0","topic":"topic","topicType":"msg","x":310,"y":2640,"wires":[["c6d88212.aa24a8"]]},{"id":"c6d88212.aa24a8","type":"ui_audio","z":"5a245aa1.510164","name":"","group":"8b5cde76.edd58","voice":"moz-tts:android:en_GB","always":true,"x":460,"y":2640,"wires":[]},{"id":"8b5cde76.edd58","type":"ui_group","name":"","tab":"8f03e639.85956","order":1,"disp":true,"width":"6","collapse":false},{"id":"8f03e639.85956","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![johnyboyneedsurhelp](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@johnyboyneedsurhelp](https://discourse.nodered.org/u/johnyboyneedsurhelp)\
**Post date:** [16 February 2021 19:49 UTC](https://discourse.nodered.org/t/text-to-speech-textbox/41113/3 "2021-02-16T19:49:37Z")

</div>

Here a little more information:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/e/2eadd90f886e19b372c32735f52b8ca4a0664a3a.png) this is the error i get  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/5/0592f32a2f94c51c693234c586850fc80bc5be93.png) this is the website i created

---

<div class="post-metadata">

**Author:** ![johnyboyneedsurhelp](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@johnyboyneedsurhelp](https://discourse.nodered.org/u/johnyboyneedsurhelp)\
**Post date:** [16 February 2021 19:50 UTC](https://discourse.nodered.org/t/text-to-speech-textbox/41113/4 "2021-02-16T19:50:35Z")

</div>

and here is the function to capture the message ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/d/3d6bcf9abfcdcfcf88c7ab1436135f1b7a975cc8.png)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 February 2021 20:26 UTC](https://discourse.nodered.org/t/text-to-speech-textbox/41113/5 "2021-02-16T20:26:09Z")

</div>

When you click the send button on website, where does it send?

---

<div class="post-metadata">

**Author:** ![johnyboyneedsurhelp](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@johnyboyneedsurhelp](https://discourse.nodered.org/u/johnyboyneedsurhelp)\
**Post date:** [16 February 2021 21:52 UTC](https://discourse.nodered.org/t/text-to-speech-textbox/41113/6 "2021-02-16T21:52:47Z")

</div>

It does not show up properly  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/d/6d0e0080097caf0d5c3b40bd489606160dc07231.png)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 February 2021 21:55 UTC](https://discourse.nodered.org/t/text-to-speech-textbox/41113/7 "2021-02-16T21:55:08Z")

</div>

You are using the wrong node. use the http in node and a http response node.. Not a http request node.  
e.g.

```auto
[{"id":"c832ae5b.33946","type":"http in","z":"5a245aa1.510164","name":"","url":"chatbox","method":"get","upload":false,"swaggerDoc":"","x":140,"y":880,"wires":[["e0c6904d.ab26","68c63513.ac1214"]]},{"id":"e0c6904d.ab26","type":"http response","z":"5a245aa1.510164","name":"","statusCode":"","headers":{},"x":340,"y":920,"wires":[]},{"id":"68c63513.ac1214","type":"function","z":"5a245aa1.510164","name":"","func":"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":380,"y":860,"wires":[[]]}]

```

Also are node-red and the web page on the same machine?

---

<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:** [17 April 2021 21:55 UTC](https://discourse.nodered.org/t/text-to-speech-textbox/41113/8 "2021-04-17T21:55:14Z")

</div>

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