Record audio input with Microphone

I would like the ability to access a device’s microphone and record and play back short audio clips (<10 seconds).

I’m a speech therapist and would like to add this feature to my game so my students can play back clips of what they said and compare.

Evidently there used to be a microphone extension but it isn’t available anymore.


Thanks! I actually didn’t realize Gdevelop is built on Javascript so that’s good to know

Considering the importance of audio feedback in speech therapy, how can I incorporate microphone access and the ability to record/playback short audio clips (less than 10 seconds) into my educational game for students, especially given the unavailability of the previous microphone extension?

Hey wadu,
Someone had replied with a suggestion to look into some code in Javascript that allows this. I have not had the time to do so yet, but I think that’s a good place to start!

Can you be more specific about what you want?

How would you apply it in more detail?

I just need the client to hear their own speech played back to them. For example, there is an icon of a radio on the screen and I want to record the client saying the word ‘radio’. I’d like a button that, when touched, would use the mic to record short audio clips, which would be played via a different button. Once the record button is pressed again, the previous recording should be overwritten–I don’t need to save recordings long-term.

Okay, ill see what i can do, check back later! :slight_smile:

Nope i give up…

I wasted an entire morning on this and nothing…

I can get the microphone to work, thats easy, i can get it to record audio into a specific folder and audio file, i can get it to re write the file…

But heres the issue, GDevelop dosent play overwritten files once the game launches.

I also cant use an expression to play Audio files, so i cant even make temporary different files and then play them based on their name…

I can probably do it with more scripting, but honestly i have my own work to do…

I gave it my best, but some one smarter than me needs to make this stuff work.

The sad part is, this stuff is simple to get going, the only issue im having is that it would take the rest of the day to work out the system with java by going into the source code to see how the audio manager handles playing stuff, so that i can then play temporary sounds…

If someone knows the engine, they can make this stuff in minutes…

Thanks for trying!
I have ideas for other games where recording isn’t a necessity so I’ve just been working on those in the meantime.

1 Like