SAM Text-To-Speech (TTS) V1.0
A speech synthesizer bringing the classic SAM (Software Automatic Mouth) algorithm to MakeCode Arcade! Make your games talk with that iconic retro robot voice.
Features 
-
Authentic SAM Algorithm - Formant synthesis with glottal pulse generation for natural-sounding speech
-
6 Voice Presets - SAM, Elf, Little Robot, Stuffy Guy, Little Old Lady, Extra Terrestrial
-
300+ Word Dictionary - Common English words pre-programmed with proper pronunciations
-
Smooth Phoneme Transitions - Advanced interpolation for natural-sounding speech flow
-
Fully Customizable - Adjust pitch, speed, throat, and mouth parameters with sliders
Adding it to your project 
- In the Makecode Arcade editor, press Extensions
- Copy and paste the URL into the Extensions: https://github.com/Monk070/makecode-sam-speech
- Press Enter, and Click on sam-tts:
- SAM has now been added to your project!
Demo Project 
I made a project showcasing it in action here:
6 Likes
I’m being honest this looks like a reskin improv of the official one : SAMMY: Text-To-Speech / Speech Synthesizer Extension!
1 Like
Wait a minute Sammy 2.0? We gotta spider-man situation on our hands. I wonder what @randomuser thinks of this. The extension is really cool and looks fairly easy to use as well, nice job 
2 Likes
Made demo to demonstrate all blocks of this extension.
*And you’re right, @Not-a-creepy-doll,there is a spiderman situation here…
Oh and the mods posted this very fast…
2 Likes
I am a bit confused. Is this a re-post of @randomuser s text to speech extension?
3 Likes
This is not a reskin of Random’s extension! It is actually completely different under the hood.
6 Likes
It seems different, it has multiple voices and none sound like SAMMY. So I guess it’s like an alternate reality Sammy. SAMMY INTO THE SAMVERSE
4 Likes
Hi, all!
Thanks for checking out the extension.
I made this myself from the original, like @randomuser had.
I wanted more clarity and accessibility.
I noticed there was an import speech
module for Mu (micropython), and that’s what took me onto this.
I’ve also made another project to make it simpler to type your own messages and show the words on screen. I recommend the “Little Old Lady” voice for the best clarity.
6 Likes
Oh, thanks for clarifying everyone.
I probably should have paid more attention.
2 Likes
@WoodysWorkshop you should also add a function where you can use the splash block to show what SAM is saying.
The original SAM uses random sounds to create an auditory illusion (or something like it) that make weird sounds sound like words. If you follow that rule, then there no need to go through the hassle of programming words.
Have a look at the last ‘SAM test’ example. I use the text sprite extension for this. I believe the splash prompt pauses things.
You’re almost right. Yes it uses phoneme sounds but in our lovely English language that isn’t always enough for clarity.
Take ‘ough’. Like in enough, bought, dough, for example.
A map of phonemes together with a dictionary works better.
1 Like