# How to keep the volume of alexa messages constant

**URL:** <https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920>\
**Category:** General\
**Created:** [29 December 2022 21:06 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920 "2022-12-29T21:06:14Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![franz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/franz/32/71949_2.png) [@franz](https://discourse.nodered.org/u/franz)\
**Post date:** [29 December 2022 21:06 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/1 "2022-12-29T21:06:14Z")

</div>

- How to keep the volume of alexa messages constant, always at the same level?

- Sometimes the volume of the echodot at home is lowered either by voice command or manually with the button and no longer restored, when an alarm message arrives then it is not heard.

- I've read that there is a particular function to activate from the alexa app, the adaptive volume, but it seems to work only in the U.S. and not in my country.

- I tried in the alexa speak routine the command Volume announcement set but I got only the adjustment of the sound alert before the message.

- Can you tell me the correct command to use?

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [29 December 2022 23:02 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/2 "2022-12-29T23:02:32Z")

</div>

Sorry, Im struggling to understand what this has to do with Node RED?  
Shouldn't you be asking Amazon or some Amazon Alexa community on how to control Alexa's volume

Unless I am completely missing something?  
If I am missing something - then you need to provide more in your thread.

---

<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:** [29 December 2022 23:06 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/3 "2022-12-29T23:06:24Z")

</div>

You are not really clear on which nodes you have tried or are using.  
The alexa remote2 nodes allow speakAtVolume, using a routine node you can send a custom json.

 ![chrome_screenshot_1672355027566](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/c/0cb57ae65cab2ed0249f4ac4d0355d5f9cba01d9.jpeg)  
Or use the preset speakAtvolume typed inputs.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [29 December 2022 23:10 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/4 "2022-12-29T23:10:28Z")

</div>

@E1cid Now it makes sense 😅

@franz  
When starting a thread, always add some context about your setup to your question, to help those passing by

---

<div class="post-metadata">

**Author:** ![franz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/franz/32/71949_2.png) [@franz](https://discourse.nodered.org/u/franz)\
**Post date:** [29 December 2022 23:29 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/5 "2022-12-29T23:29:53Z")

</div>

@marcus Excuse me if I did not put examples , but I just made some tests ,@e1cid I use this node node-red-contrib-alexa-remote2-applestrudel , I tried speak at volume but I get only the change of the beep before the message.

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [29 December 2022 23:34 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/6 "2022-12-29T23:34:02Z")

</div>

If you look at the help info you will see -

- **Speak At Volume** or **Volume** with the _Add_ mode can only change the volume if the echo has recently been active playing music!

Based on the fact that you mention **"the beep before the message"** then I assume you are using the announcement option ?

- Announcement and SSML speak options will speak to all devices if you don't specify any device ( **does not work with _Speak At Volume_** )

So this may be your issue.

---

<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:** [29 December 2022 23:49 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/7 "2022-12-29T23:49:29Z")

</div>

You need to send type `regular` and use set mode, or custom routine.  
This works fine for me

```auto
[{"id":"f9fc24c34d19b761","type":"alexa-remote-routine","z":"da8a6ef0b3c9a5c8","name":"","account":"c8738129.d902c","routineNode":{"type":"speakAtVolume","payload":{"type":"regular","text":{"type":"str","value":"With the Custom"},"volume":{"type":"num","value":"70"},"mode":"set","devices":["G090LF1182850C6D"]}},"x":190,"y":1420,"wires":[[]]},{"id":"11fcee5069184309","type":"inject","z":"da8a6ef0b3c9a5c8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":100,"y":1360,"wires":[["f9fc24c34d19b761"]]},{"id":"c8738129.d902c","type":"alexa-remote-account","name":"alexa remote 2","authMethod":"proxy","proxyOwnIp":"localhost","proxyPort":"3456","cookieFile":"","refreshInterval":"14","alexaServiceHost":"layla.amazon.co.uk","amazonPage":"amazon.co.uk","acceptLanguage":"en-GB","onKeywordInLanguage":"","userAgent":"","useWsMqtt":"on","autoInit":"off"}]

```

---

<div class="post-metadata">

**Author:** ![franz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/franz/32/71949_2.png) [@franz](https://discourse.nodered.org/u/franz)\
**Post date:** [30 December 2022 00:09 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/8 "2022-12-30T00:09:42Z")

</div>

thanks for the info , tomorrow morning I will try your examples and report back now I can not .

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [30 December 2022 00:12 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/9 "2022-12-30T00:12:21Z")

</div>

> [@E1cid](#):
>
> You need to send type `regular` and use set mode, or custom routine

What no JSONator for this 😉

---

<div class="post-metadata">

**Author:** ![franz](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/franz/32/71949_2.png) [@franz](https://discourse.nodered.org/u/franz)\
**Post date:** [30 December 2022 08:30 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/10 "2022-12-30T08:30:29Z")

</div>

Thank you e1cid 👍 ,  
it works perfectly was just what I was trying to do, I had tried regular and ssml without getting any result perhaps, I had also tried the parameters set and add.

@Sean-McG,  
yes I had chosen the 'Announcement option,  
it is by reading the instructions commented that I got the' idea that it was a command that worked only after a music playback. I'll allow myself ... but if they had written in another way that 'Announcement' is inherent to the 'acoustic warning, and that 'regular' intervenes on the message announced the newbies like me, would not have to stress people on the forums ... 😁  
P.S. I didn't understand the sense JSONator .... I'm Italian unfortunately !!!

---

<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:** [30 December 2022 08:59 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/11 "2022-12-30T08:59:26Z")

</div>

> [@franz](#):
>
> P.S. I didn't understand the sense JSONator ..

JSONata is a Lightweight query and transformation language for JSON data.

It can be used in a lot of node-red nodes.

@Sean-McG was making a joke, as a lot of my replies i use it. Normally where it is easier to do so rather than a function node. In this example there was no need for either.

---

<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:** [13 January 2023 09:00 UTC](https://discourse.nodered.org/t/how-to-keep-the-volume-of-alexa-messages-constant/72920/12 "2023-01-13T09:00:05Z")

</div>

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