# \[feature request\] add output level in the ui\_audio

**URL:** <https://discourse.nodered.org/t/feature-request-add-output-level-in-the-ui-audio/37944>\
**Category:** Dashboard\
**Created:** [23 December 2020 20:17 UTC](https://discourse.nodered.org/t/feature-request-add-output-level-in-the-ui-audio/37944 "2020-12-23T20:17:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [23 December 2020 20:17 UTC](https://discourse.nodered.org/t/feature-request-add-output-level-in-the-ui-audio/37944/1 "2020-12-23T20:17:46Z")

</div>

I would like to know if it is possible to add a sound volume control of the file to be played to the `ui_audio` node?

For example from 0 to 100% for files played during the day and at night, and if possible, can be even up to 200% to amplify the read file for alerts / alarms.

It would be adjustable in the node and also by a message ex: `msg.level`

What do you think @dceejay ?

Chris

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [23 December 2020 22:30 UTC](https://discourse.nodered.org/t/feature-request-add-output-level-in-the-ui-audio/37944/2 "2020-12-23T22:30:14Z")

</div>

May be slightly possible. Can reduce I think but not increase.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [23 December 2020 22:54 UTC](https://discourse.nodered.org/t/feature-request-add-output-level-in-the-ui-audio/37944/3 "2020-12-23T22:54:17Z")

</div>

> [@dceejay](#):
>
> Can reduce I think but not increase.

Hey Dave,  
What do you mean with that?  
I assume you are talking about a GainNode, with gain.value between 0 and 1? Or something else?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [23 December 2020 23:22 UTC](https://discourse.nodered.org/t/feature-request-add-output-level-in-the-ui-audio/37944/4 "2020-12-23T23:22:44Z")

</div>

Yes for audio I think you may be able to go \> 1 but it will probably clip the sound. and also speechutterence.volume only does 0 to 1

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [24 December 2020 06:46 UTC](https://discourse.nodered.org/t/feature-request-add-output-level-in-the-ui-audio/37944/5 "2020-12-24T06:46:30Z")

</div>

It could already be quite good: turn the Client's volume level up and play with the gain of the ui\_audio node as needed (night, day, alarm). But adjustable with more possibility than 0 or 1 🤔 0.1 ....0.5 ....1.0 😁

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [24 December 2020 21:19 UTC](https://discourse.nodered.org/t/feature-request-add-output-level-in-the-ui-audio/37944/6 "2020-12-24T21:19:06Z")

</div>

Hi  
so just as it's Xmas... have pushed an update to dashboard master (not on npm) that lets you set msg.level to set the output volume - from 0 to 100%... In audio mode (not TTS) you can go up to 300 - but it may distort.

---

<div class="post-metadata">

**Author:** ![SuperNinja](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/superninja/32/5761_2.png) [@SuperNinja](https://discourse.nodered.org/u/SuperNinja)\
**Post date:** [25 December 2020 08:08 UTC](https://discourse.nodered.org/t/feature-request-add-output-level-in-the-ui-audio/37944/7 "2020-12-25T08:08:57Z")

</div>

Great Christmas gift ![dc](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/8/b8d6803ae0117e6f057af50c44a544e9c07e1354.jpeg) "Santa Dave"  
, and while it's Christmas: MERRY CHRISTMAS for all !

😂

---

<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:** [8 January 2021 08:09 UTC](https://discourse.nodered.org/t/feature-request-add-output-level-in-the-ui-audio/37944/8 "2021-01-08T08:09:15Z")

</div>

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