# How to add our own mp3 audio in our project

**URL:** https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132
**Category:** Arcade
**Created:** [February 23, 2023, 4:59pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132 "2023-02-23T16:59:39Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Japanjot](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Japanjot](https://forum.makecode.com/u/Japanjot)
#### Post date: [February 23, 2023, 4:59pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/1 "2023-02-23T16:59:39Z")

</div>

Hi  
I was finding text to speech for a project but I havent found anything like that  
So I was searching for importing your own audio instead of text to speech  
But havent found anything like that  
Please help

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [February 23, 2023, 5:12pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/2 "2023-02-23T17:12:51Z")

</div>

You can’t do that yet, but maybe in the future!

---

<div class="post-metadata">

### Author: ![Japanjot](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Japanjot](https://forum.makecode.com/u/Japanjot)
#### Post date: [February 24, 2023, 6:00pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/3 "2023-02-24T18:00:05Z")

</div>

But is there any inderect way?

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [February 24, 2023, 6:03pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/4 "2023-02-24T18:03:35Z")

</div>

Are you hinting at your speech simulation @randomuser ;)?

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [February 24, 2023, 6:21pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/5 "2023-02-24T18:21:02Z")

</div>

Hehehe of course! The instant I finished unique-a-thon yesterday I started back on it, i’m so excited to have it finished!

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [February 24, 2023, 6:27pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/6 "2023-02-24T18:27:20Z")

</div>

You finished it? 😮 Will you share it soon? I could build an interpreter that takes in sounds in letter form and plays them out through your system

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [February 24, 2023, 6:41pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/7 "2023-02-24T18:41:01Z")

</div>

Oh nooo i’m so sorry, its just wierd english grammar! I mean that I am excited to finish it in the future, not quite yet :\<  
I am interested in your system though! How would you receive sounds?

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [February 24, 2023, 10:13pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/8 "2023-02-24T22:13:24Z")

</div>

I would use letters as code to convey what sound the user wants. (ex. /b/ would be written as b, and /ē/ would be written as -e etc.)  
So a word like “banana” would be coded as (only an example, i’m coming up w/ this on the spot):

```auto
b?enan?e
(/bəˈnɑːnə/)

b = /b/
?e = /ə/
...

```

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [February 24, 2023, 10:36pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/9 "2023-02-24T22:36:10Z")

</div>

Ah you mean a sort of dictionary to convert the English text into phonemes! Smart, it does seem easier than having the user input the odd-looking phoneme representations that they may not understand.

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [February 24, 2023, 11:17pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/10 "2023-02-24T23:17:00Z")

</div>

Erm… that’s exactly what I meant. The english word dictionary is roughly 400k words. Inputting phoneme markers would be a little janky, sure, but at least it would be easier to work with for the people that know what they’re doing instead of manually adding the sound for every sound of a word.

---

<div class="post-metadata">

### Author: ![Japanjot](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Japanjot](https://forum.makecode.com/u/Japanjot)
#### Post date: [February 26, 2023, 8:50pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/11 "2023-02-26T20:50:58Z")

</div>

So now  
How can i use text to speech or mp3?

---

<div class="post-metadata">

### Author: ![Japanjot](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Japanjot](https://forum.makecode.com/u/Japanjot)
#### Post date: [February 26, 2023, 8:51pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/12 "2023-02-26T20:51:09Z")

</div>

> [@Sarge](#):
>
> ```auto
> b?enan?e
> (/bəˈnɑːnə/)
> 
> b = /b/
> ?e = /ə/
> ..
> 
> ```

this code will make voice if , I copy it in my project?

---

<div class="post-metadata">

### Author: ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)
#### Post date: [February 27, 2023, 6:18pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/13 "2023-02-27T18:18:43Z")

</div>

Nope! That’s just a representation

---

<div class="post-metadata">

### Author: ![naim514](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/naim514/32/5634_2.png) [@naim514](https://forum.makecode.com/u/naim514)
#### Post date: [March 1, 2023, 11:44pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/14 "2023-03-01T23:44:15Z")

</div>

hi please do you mean how to play an mp3 file using makecode and so microbit?

---

<div class="post-metadata">

### Author: ![naim514](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/naim514/32/5634_2.png) [@naim514](https://forum.makecode.com/u/naim514)
#### Post date: [March 1, 2023, 11:44pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/15 "2023-03-01T23:44:23Z")

</div>

please you said that you found text to speech for a project what do you mean ?do you mean that you can transform a text to speech using makecode???  
thx in advance for your answer  
best regards

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [March 2, 2023, 12:28am UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/16 "2023-03-02T00:28:46Z")

</div>

I’m working on it!! Seems to be in very high demand… Thanks for the support, it helps me stay motivated : D

---

<div class="post-metadata">

### Author: ![Japanjot](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Japanjot](https://forum.makecode.com/u/Japanjot)
#### Post date: [March 2, 2023, 6:03pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/17 "2023-03-02T18:03:28Z")

</div>

Yes  
I need help

---

<div class="post-metadata">

### Author: ![Japanjot](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Japanjot](https://forum.makecode.com/u/Japanjot)
#### Post date: [March 2, 2023, 6:03pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/18 "2023-03-02T18:03:31Z")

</div>

I have not found  
But i want that to be added in my project

---

<div class="post-metadata">

### Author: ![Japanjot](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@Japanjot](https://forum.makecode.com/u/Japanjot)
#### Post date: [March 2, 2023, 6:04pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/19 "2023-03-02T18:04:21Z")

</div>

I have not found  
But i want to find

---

<div class="post-metadata">

### Author: ![naim514](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/naim514/32/5634_2.png) [@naim514](https://forum.makecode.com/u/naim514)
#### Post date: [March 2, 2023, 7:47pm UTC](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/20 "2023-03-02T19:47:03Z")

</div>

yes me to i want to add this bloc and create customised extensin

[Next page](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132.md?page=2)
