# Node-red-node-ui-microphone

**URL:** https://discourse.nodered.org/t/node-red-node-ui-microphone/82956
**Category:** General
**Tags:** node-red-dashboard
**Created:** [17 November 2023 04:02 UTC](https://discourse.nodered.org/t/node-red-node-ui-microphone/82956 "2023-11-17T04:02:54Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![T3chn0](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@T3chn0](https://discourse.nodered.org/u/T3chn0)
#### Post date: [17 November 2023 16:46 UTC](https://discourse.nodered.org/t/node-red-node-ui-microphone/82956/2 "2023-11-17T16:46:53Z")

</div>

i´ve solved 🙂  
ive found this solution: [Msg in initController dashboard - #2 by hotNipi](https://discourse.nodered.org/t/msg-in-initcontroller-dashboard/10551/2)

simply call it and listen to "msg" with the $scope.$watch  
Solution:

```auto
$scope.$watch('msg', function (msg) {
                            if (!msg) {								
                                return;
                            }else{
                                console.log(msg);
                                $scope.toggleMicrophone();
                            }                    
                        });

```

---

_[View the full topic](https://discourse.nodered.org/t/node-red-node-ui-microphone/82956)._
