# ⭐ SAMMY: Text-To-Speech / Speech Synthesizer Extension!

**URL:** https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499
**Category:** Show & Tell
**Tags:** music, extension, tool
**Created:** [September 26, 2025, 2:30am UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499 "2025-09-26T02:30:26Z")
**Posts on this page:** 20
**Page:** 1

<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: [September 26, 2025, 2:30am UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/1 "2025-09-26T02:30:26Z")

</div>

# Do you wish your characters could really speak?⭐

> [@How to add our own mp3 audio in our project](https://forum.makecode.com/t/how-to-add-our-own-mp3-audio-in-our-project/18132/1):
>
> I was finding text to speech for a project but I havent found anything like that

> [@Every Single @Richard Extension!](https://forum.makecode.com/t/every-single-richard-extension/34395/8):
>
> kind of like Text to speech but for makecode … Or it this just a hopeless topic

**For the first time, you CAN!**

[You can get the extension here](https://github.com/rando-muser/sammy), and everything you need to know is right here on the [SAMMY website!  
  ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/7/b/7b53124ce1f6d205103c3987e5d049a0516f379d.png)](https://rando-muser.neocities.org/sammy)

This audio illusion is based on the principles of **‘formant synthesis’** , where multiple sounds called ‘formants’ are layered to synthesize a human voice.  
So the formants making up ‘m’ ‘a’ ‘k’ and ‘e’ are about the same every time you say them, cutting out the need to record audio or store massive amounts of data. _ **SAMMY can speak with just 3 sine waves at a time!** _

SAMMY (Short for [Software Automatic Mouth](https://discordier.github.io/sam/) Makecode Yippee) can speak whatever your heart desires! You can either program sounds in manually or use the automatic generator on the website, then SAMMY will do the rest.

**Blocks**

> **Say**
>
> Make SAMMY say anything!  
> The function takes a **two-dimensional number array** as an input!
> 
> What does this mean!?
> 
> ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/8/18387496b127f9c18838b02b4c21152313e7ec49.png)  
> The function takes one array as its unput. Each value of that array is another array with two numbers. The first number determines the sound SAMMY will make, while the second determines how long he holds the sound for.
> 
> The block will then play the sound until done. More info on the inputs to this function are available in the how-to section of the website!

**Notes**

This project has been in the works for quite a few years now, on and off, and I’m happy I was finally able to polish it and make a tool to hopefully make it easier to use. 😊  
I’d like to thank other users who have experimented with formant synthesis like @chembot @richard and @BLADEr , the moderators (of course!), and @unique for running the [UAT2](https://forum.makecode.com/t/unique-a-thon-2-finale-non-official-game-jam/33962) where SAMMY began. This extension wouldn’t have been possible without their help and the rest of the forum’s overwhelming support for the project! 💓  
I’d be happy to answer any questions you have, fix any bugs, or see what you make!!  
– Randomuser / Dragondoodle

---

<div class="post-metadata">

### Author: ![Unique](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unique/32/32724_2.png) [@Unique](https://forum.makecode.com/u/Unique)
#### Post date: [September 26, 2025, 4:23pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/2 "2025-09-26T16:23:30Z")

</div>

woke up from the grave to like this peak post.

---

<div class="post-metadata">

### Author: ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)
#### Post date: [September 26, 2025, 4:23pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/3 "2025-09-26T16:23:31Z")

</div>

YOU DID IT!!! I cant believe this is real…

---

<div class="post-metadata">

### Author: ![Longlinh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/longlinh/32/6525_2.png) [@Longlinh](https://forum.makecode.com/u/Longlinh)
#### Post date: [September 26, 2025, 4:23pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/4 "2025-09-26T16:23:33Z")

</div>

You’re kidding me.  
You are kidding me.

---

<div class="post-metadata">

### Author: ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)
#### Post date: [September 26, 2025, 4:23pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/5 "2025-09-26T16:23:44Z")

</div>

omg this is so insane!!! I think it would be great if you could input the phonetic alphabet though or be able to automatically convert words into the correct format, just to make it easier to use. can’t wait for more blocks for pitch control, i wanna make my boi sing hello world by louie zong lol

[![](https://img.youtube.com/vi/Yw6u6YkTgQ4/maxresdefault.jpg "hello world") ](https://www.youtube.com/watch?v=Yw6u6YkTgQ4)

---

<div class="post-metadata">

### Author: ![BlueYoshi507](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blueyoshi507/32/32630_2.png) [@BlueYoshi507](https://forum.makecode.com/u/BlueYoshi507)
#### Post date: [September 26, 2025, 4:23pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/6 "2025-09-26T16:23:48Z")

</div>

If I am honest, it kinda sounds more like a melody than speaking.

---

<div class="post-metadata">

### Author: ![Ima.notarobot](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ima.notarobot/32/26551_2.png) [@Ima.notarobot](https://forum.makecode.com/u/Ima.notarobot)
#### Post date: [September 26, 2025, 4:23pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/7 "2025-09-26T16:23:52Z")

</div>

Wait. @randomuser does this mean that I can have voice lines in my game torment?

---

<div class="post-metadata">

### Author: ![babol](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/babol/32/27355_2.png) [@babol](https://forum.makecode.com/u/babol)
#### Post date: [September 26, 2025, 4:23pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/8 "2025-09-26T16:23:54Z")

</div>

who’s making the mp3 player now

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [September 26, 2025, 4:45pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/9 "2025-09-26T16:45:24Z")

</div>

quick meme ![](https://i.imgflip.com/a794sy.jpg) @AlexK

---

<div class="post-metadata">

### Author: ![Not-a-creepy-doll](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/not-a-creepy-doll/32/28255_2.png) [@Not-a-creepy-doll](https://forum.makecode.com/u/Not-a-creepy-doll)
#### Post date: [September 26, 2025, 4:47pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/10 "2025-09-26T16:47:28Z")

</div>

Finally, my son can speak

> **["Hi, my name is Funkly. I am a bear."](https://arcade.makecode.com/S80682-03270-38604-53836)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

you definitely got my vote for the reelection ms. president 🫡

---

<div class="post-metadata">

### Author: ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)
#### Post date: [September 26, 2025, 11:11pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/11 "2025-09-26T23:11:19Z")

</div>

I can’t entirely make it out…

Solid Extension, Solid.

---

<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: [September 26, 2025, 11:12pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/12 "2025-09-26T23:12:18Z")

</div>

Thank you, this is great!!

---

<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: [September 26, 2025, 11:12pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/13 "2025-09-26T23:12:20Z")

</div>

Yesss!! I can help you make them if you need, or you can use the tool on the website!

---

<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: [September 26, 2025, 11:12pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/14 "2025-09-26T23:12:22Z")

</div>

That’s so fair, it is an auditory illusion so it can be harder for some people to understand it as a voice!  
One tip is to subtitle the voice, so the speech is more obvious.

---

<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: [September 26, 2025, 11:12pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/15 "2025-09-26T23:12:23Z")

</div>

YESSS I love this song!!!  
I have pretty basic pitch control available on the website, but it just adds some number to the frequency (Instead of multiplying the frequency by a number, like Richard pointed out on stream)  
I was going to say I’ll get started on a dictionary if the extension takes off.. but WOW! 31 likes already, thank you all so much! 🥹

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [September 27, 2025, 2:17am UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/16 "2025-09-27T02:17:29Z")

</div>

That’s fine. I’ll put it back the way it was. Better?

---

<div class="post-metadata">

### Author: ![BLADEr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blader/32/16422_2.png) [@BLADEr](https://forum.makecode.com/u/BLADEr)
#### Post date: [September 27, 2025, 6:09pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/17 "2025-09-27T18:09:19Z")

</div>

This is so amazing. I’m crying right now.  
Great work @randomuser.  
You will get a special thanks in every one of my games with your extension

---

<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: [September 27, 2025, 6:26pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/18 "2025-09-27T18:26:38Z")

</div>

Nooo! 😆 it’s just : Star : for me now, I appreciate your previous help to get it working!!

---

<div class="post-metadata">

### Author: ![a012](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/a012/32/24099_2.png) [@a012](https://forum.makecode.com/u/a012)
#### Post date: [September 27, 2025, 7:03pm UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/19 "2025-09-27T19:03:19Z")

</div>

Yeah good job @randomuser I like it so much and I will very soon might can even make a speech synthesizer with advanced speech probably, good job.

---

<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: [September 28, 2025, 3:07am UTC](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499/20 "2025-09-28T03:07:59Z")

</div>

Thank you so much!! 😊

[Next page](https://forum.makecode.com/t/sammy-text-to-speech-speech-synthesizer-extension/39499.md?page=2)
