# Playing mp3 Audio

**URL:** https://discourse.nodered.org/t/playing-mp3-audio/8188
**Category:** General
**Created:** [20 February 2019 14:46 UTC](https://discourse.nodered.org/t/playing-mp3-audio/8188 "2019-02-20T14:46:38Z")
**Posts on this page:** 4
**Page:** 2

<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: [3 July 2020 20:55 UTC](https://discourse.nodered.org/t/playing-mp3-audio/8188/21 "2020-07-03T20:55:13Z")

</div>

As @BartButenaers suggested you can't download mp3 from youtube. There is a tool called youtube-dl, which will download from youtube and convert it to mp3. However, if what you actually want to do is to play from youtube on the dashboard I expect you could do that directly in an iframe in the browser, though I have never done that.

---

<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: [3 July 2020 21:11 UTC](https://discourse.nodered.org/t/playing-mp3-audio/8188/22 "2020-07-03T21:11:51Z")

</div>

> [@Colin](#):
>
> download from youtube and convert it to mp3

Indeed Colin is right:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/7/f78a0022e10c7614b6a29af2e970ee2ee7c58d49.png)

1. If [youtube.com](http://youtube.com) should offer a music file xxx.mp3 then you can download that via the http-request node, and pass it (via an output message) to other nodes to play that sound.  
However I assume youtube offers e.g. yyy.mp4 (which includes _ **video and audio** _). You could download that mp4 file via the httprequest node, but then the audio nodes in your flow have no clue how to play the audio inside that mp4 file. And so they give you that _ **error** _...
2. So you need to _ **convert** _ the yyy.mp4 file to a yyy.mp3 file (e.g. via an online youtube downloader/converter).
3. But you need to store that yyy.mp3 somewhere, at a _ **location** _ where your http-request node can access it. E.g. on a public server or on your local server, but then you need to make it public available (read for "httpStatic" on this forum...).

---

<div class="post-metadata">

### Author: ![JGKK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgkk/32/18515_2.png) [@JGKK](https://discourse.nodered.org/u/JGKK)
#### Post date: [3 July 2020 21:15 UTC](https://discourse.nodered.org/t/playing-mp3-audio/8188/23 "2020-07-03T21:15:01Z")

</div>

**Edit**  
just saw @Colin already recommended youtube-dl

---

<div class="post-metadata">

### Author: ![tiby007](https://avatars.discourse-cdn.com/v4/letter/t/b487fb/32.png) [@tiby007](https://discourse.nodered.org/u/tiby007)
#### Post date: [6 July 2020 06:14 UTC](https://discourse.nodered.org/t/playing-mp3-audio/8188/24 "2020-07-06T06:14:08Z")

</div>

Alright, I will check it after work.

[Previous page](https://discourse.nodered.org/t/playing-mp3-audio/8188.md?page=1)
