# My current problems using NR / TTS solution do you use / boost NR performance :) AiO ;)

**URL:** https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649
**Category:** General
**Created:** [6 October 2022 18:46 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649 "2022-10-06T18:46:02Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)
#### Post date: [6 October 2022 18:46 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/1 "2022-10-06T18:46:02Z")

</div>

Dear friends,

two years a ago I began to try different ways for using voice commands to control Node Red.  
My goal was to keep things local. So I used mostly stuff from @ [johanneskropf](https://github.com/johanneskropf) DeepSpeech -\> Coqui. But with the update to NR V3 some flows stopped working and beside that it has never been a good solution. Coqui is great but the model for German just sucks. It has no wake word and workarounds didn t work so well.  
[- Any ideas on that where I am not forced to call "Alexa" "Google". I really hate that wake-words.]  
So I removed it but with my growing number of IoT devices in my home things are getting slower. My Family is not amused to wait for the NR Dashboard ~10 seconds to be loaded for switching the light or so. Thanx to JavaScript and its single threaded being I don t expect that things speed up in the future from software side. Currently I do use a Raspberry Pi 4 4GB running at 2GHz OC. And thinking about to upgrade to x86 to speed things up.  
[Are there any benchmarks / experiences for my propose that prove I will get faster with a i5 Gen 6 NUC or so ?]  
Thanx to our "nice" Government we suffer from four times higher energy costs in germany compared to 2021. So I can not buy a power machine sucking much energy.  
Until now I did not really find a good way to solve my problems. Maybe you have ideas on that ?  
Thx in advanced!

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [6 October 2022 19:30 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/2 "2022-10-06T19:30:50Z")

</div>

> [@WhiteLion](#):
>
> wait for the NR Dashboard ~10 seconds to be loaded

What device are you running the browser on?

---

<div class="post-metadata">

### Author: ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)
#### Post date: [6 October 2022 19:43 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/3 "2022-10-06T19:43:10Z")

</div>

I tested on differente devices (PCs / Android phones) and different browsers (most webkit) like brave, chrome, opera, firefox, edge.... on a PC its a little faster maybe 8-9 seconds while on a midrange Android it takes even 11 - 13 seconds.  
I cloned my SD-Card and disabled 95% of the flows, run it on a Raspberry 3B 1GB and its much much faster. So its my massive use of node red that slows it down.

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [6 October 2022 19:51 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/4 "2022-10-06T19:51:15Z")

</div>

> [@WhiteLion](#):
>
> wait for the NR Dashboard ~10 seconds to be loaded for switching the light or so

How many pages are in your dashboard?  
Are you using charts?  
Are you sending fast frequent messages to dashboard (sub 1 second)  
Are you sending large payloads to dashboard (images, video etc?

---

<div class="post-metadata">

### Author: ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)
#### Post date: [6 October 2022 20:22 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/5 "2022-10-06T20:22:52Z")

</div>

- I separated to pages as good as I can and don t think a single page it overloaded with elements.  

- Charts are carefully (very less data points) used and not saved. So when I restart node red all charts are empty. - On exzessive use of charts it should then load faster if charts are the a problem. - But it does not or just minor.

- I do send a counter (light is burning for xxx seconds) to a gauge node. But only in case of switches and if there is a counter and not a permanent switch state. I tested that and the result was: If there is not a counter -\> gauge node counting or if there are 10 at the same page time makes no or minor difference. Beside that this counter - thing does only affect two pages calling other pages without that gauge element does go a little faster may be 2 seconds for pages where only very less elements are present.

- I do send ffmpeg (web cam) streams to a node from kevinGodell. I know to be careful with sending big data through node red and kept it like the flow in the examples. This was my last implementation and if many ffmpeg - streams are running it costs me about 1-2 seconds of loading time.  
Maybe I could optimize here a bit because when leaving the camera - page the ffmpeg process keeps running. I do not know how to trigger an event on leaving a page. Maybe you an idea on that?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [6 October 2022 21:41 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/6 "2022-10-06T21:41:00Z")

</div>

> [@WhiteLion](#):
>
> I separated to pages as good as I can and don t think a single page it overloaded with elements

Dashboard is an SPA (single page application). What that means under the hood is it is actually one huge application (with bits hidden/shown on demand)

I suspect a combination of everything you mention attributes to the slow loading. On top of that, ffmpeg will definitely have additional impact.

---

<div class="post-metadata">

### Author: ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)
#### Post date: [7 October 2022 08:22 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/7 "2022-10-07T08:22:36Z")

</div>

ok, so I can not do much about it... just reduce stuff or maybe get an faster PC with more single core speed than the raspberry Pi 4, I guess ?

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [7 October 2022 08:27 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/8 "2022-10-07T08:27:28Z")

</div>

> [@WhiteLion](#):
>
> so I can not do much about it..

I'm certain there will be optimisations. For example,

- make sure FFMPEG is stopped when not being viewed,
- consider moving image processing to a different PI
- dont push image data through node-red (e.g. supply video feed from a different server to an iFrame in a tab)
- rewrite the dashboard in a standard web pages (extreme but has the most rewards)

---

<div class="post-metadata">

### Author: ![RandomSporadicProjs](https://avatars.discourse-cdn.com/v4/letter/r/e19adc/32.png) [@RandomSporadicProjs](https://discourse.nodered.org/u/RandomSporadicProjs)
#### Post date: [7 October 2022 14:11 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/9 "2022-10-07T14:11:49Z")

</div>

If you wanted to keep with speech recognition and also keep it local, have you tried Rhasspy ? [Rhasspy](https://rhasspy.readthedocs.io/en/latest/) may work with your current setup and I have no idea if it'll be lighter on resources - did check and it does support German. I played with an earlier version and it worked quite well, does use a wake word though (customisable)

HTH

---

<div class="post-metadata">

### Author: ![WhiteLion](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/whitelion/32/12266_2.png) [@WhiteLion](https://discourse.nodered.org/u/WhiteLion)
#### Post date: [7 October 2022 20:49 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/10 "2022-10-07T20:49:24Z")

</div>

> [@Steve-Mcl](#):
>
> I'm certain there will be optimisations. For example,
> 
> - make sure FFMPEG is stopped when not being viewed,
> - consider moving image processing to a different PI
> - dont push image data through node-red (e.g. supply video feed from a different server to an iFrame in a tab)
> - rewrite the dashboard in a standard web pages (extreme but has the most rewards)

- How can I get an event when leaving the tap with webcam views ?
- I use iFames where ever I can. some cams do not support it so I have to use RTSP protocol == ffmpeg
- Using a second machine leads me to the question: Wouldn´t it get better if I move to a x86 machine with a much higher single performance than the Raspberry Pi 4 ?
- No no ... I don´t want to rewrite the web pages 🙂

> [@RandomSporadicProjs](#):
>
> If you wanted to keep with speech recognition and also keep it local, have you tried Rhasspy ? [Rhasspy](https://rhasspy.readthedocs.io/en/latest/) may work with your current setup and I have no idea if it'll be lighter on resources - did check and it does support German. I played with an earlier version and it worked quite well, does use a wake word though (customisable)
> 
> HTH

Thanx! That looks promising. I will take a deeper look and hope there is german language available!

---

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [8 October 2022 08:08 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/11 "2022-10-08T08:08:37Z")

</div>

Just FYI, open AI just released an open source library Whisper, it is local and multilingual. [Repo.](https://github.com/openai/whisper)  
Very easy to use, not sure how well this would perform on a raspberry though. [Demo](https://www.youtube.com/watch?v=HbY51mVKrcE)

---

<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: [7 December 2022 08:08 UTC](https://discourse.nodered.org/t/my-current-problems-using-nr-tts-solution-do-you-use-boost-nr-performance-aio/68649/12 "2022-12-07T08:08:49Z")

</div>

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