# How to change an audio file's volume with a sensor

**URL:** <https://discourse.nodered.org/t/how-to-change-an-audio-files-volume-with-a-sensor/13012>\
**Category:** General\
**Created:** [7 July 2019 21:37 UTC](https://discourse.nodered.org/t/how-to-change-an-audio-files-volume-with-a-sensor/13012 "2019-07-07T21:37:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![f.thinks](https://avatars.discourse-cdn.com/v4/letter/f/f17d59/32.png) [@f.thinks](https://discourse.nodered.org/u/f.thinks)\
**Post date:** [7 July 2019 21:37 UTC](https://discourse.nodered.org/t/how-to-change-an-audio-files-volume-with-a-sensor/13012/1 "2019-07-07T21:37:09Z")

</div>

Hi, i'm new to the node.red world. At university the professor asked my group to do a project with node.red without actually explaining it and i'm really in a bad spot right now.  
The project is really simple: i need to play an audio file and change it's volume with a flex sensor.  
Can someone be gentle enough to find the time to help me, i'm pretty desperate.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [7 July 2019 22:35 UTC](https://discourse.nodered.org/t/how-to-change-an-audio-files-volume-with-a-sensor/13012/2 "2019-07-07T22:35:39Z")

</div>

Well have you broken the task down into sub tasks?  
If so, what are they?  
And what do you have so far?

---

<div class="post-metadata">

**Author:** ![f.thinks](https://avatars.discourse-cdn.com/v4/letter/f/f17d59/32.png) [@f.thinks](https://discourse.nodered.org/u/f.thinks)\
**Post date:** [7 July 2019 22:53 UTC](https://discourse.nodered.org/t/how-to-change-an-audio-files-volume-with-a-sensor/13012/3 "2019-07-07T22:53:03Z")

</div>

I've literally zero experience, i couldn't figure out what to do and i don't really know from where to start

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [7 July 2019 23:46 UTC](https://discourse.nodered.org/t/how-to-change-an-audio-files-volume-with-a-sensor/13012/4 "2019-07-07T23:46:50Z")

</div>

You have a task, play some music and change its volume using sensor. Seems to me the first thing you need to do is create a flow to play some music. Have you googled that?

---

<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 July 2019 08:38 UTC](https://discourse.nodered.org/t/how-to-change-an-audio-files-volume-with-a-sensor/13012/5 "2019-07-08T08:38:04Z")

</div>

Isn't that the purpose of university ? Challenge yourself, learn by doing.  
Start by [following the tutorials](https://nodered.org/docs/tutorials/).

---

<div class="post-metadata">

**Author:** ![f.thinks](https://avatars.discourse-cdn.com/v4/letter/f/f17d59/32.png) [@f.thinks](https://discourse.nodered.org/u/f.thinks)\
**Post date:** [8 July 2019 08:59 UTC](https://discourse.nodered.org/t/how-to-change-an-audio-files-volume-with-a-sensor/13012/6 "2019-07-08T08:59:54Z")

</div>

I totally agree with you if it wasn't something added two weeks before the exam on a whim, otherwise i wouldn't be here.

---

<div class="post-metadata">

**Author:** ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)\
**Post date:** [8 July 2019 09:30 UTC](https://discourse.nodered.org/t/how-to-change-an-audio-files-volume-with-a-sensor/13012/7 "2019-07-08T09:30:00Z")

</div>

Out of interest, what degree are you doing?

---

<div class="post-metadata">

**Author:** ![f.thinks](https://avatars.discourse-cdn.com/v4/letter/f/f17d59/32.png) [@f.thinks](https://discourse.nodered.org/u/f.thinks)\
**Post date:** [8 July 2019 09:41 UTC](https://discourse.nodered.org/t/how-to-change-an-audio-files-volume-with-a-sensor/13012/8 "2019-07-08T09:41:26Z")

</div>

Bachelor degree in product design

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [8 July 2019 10:11 UTC](https://discourse.nodered.org/t/how-to-change-an-audio-files-volume-with-a-sensor/13012/9 "2019-07-08T10:11:13Z")

</div>

Another thing you can do to research is go to the flows tab and search using the term 'sound' then try 'audio' and see what you find.
