I would like to figure out how to detect speech, and was considering microphone loudness. if the microphone picked up something reasonable (not too loud, not too quiet) it would change a boolean or something. is there a way to do this?
Bubble
March 18, 2025, 1:27am
2
Hi SummerTime, I searched for microphone here in the forum and user giannpls made an extension last year but it doesn’t seem to be in GD for me anyway. Here is the forum link
I would love to create music players in Gdevelop and an audio visualiser that would react to different audio channels
I noticed that someone else mentioned this +8 years though I wouldn’t know where to start to code this myself:
and here is the GitHub link where you can download the extension if it’s not in GD for you either. Please note that I haven’t used the extension and don’t know if it meets your requirements.
opened 05:58AM - 12 Oct 24 UTC
✨ New extension
### Description
This extension provides the ability to record audio from the … microphone and play it back through the speakers. It also provides the ability to monitor real-time audio data from the microphone and master output, which can be used to create audio visualizations such as a spectrogram, oscilloscope, RMS/Peak meter, or other animations which respond to properties of the audio signal.
### How to use the extension
The extension provides events (StartMicRecording/StopMicRecording) to record audio from the microphone using the MediaStream Recording API, and then the SaveMicRecording event pushes those recordings to the project data so that the recording can be played back through the sound manager with the PlayMicRecording event. It also provides access to real-time audio data from the microphone and the Howler master output with GetAnalyzerFrequencyData/GetAnalyzerTimeDomainData events (which use WebAudio AnalyserNode objects), to allow a user to create audio visualizations
### Checklist
- [X] I've followed all of [the best practices](http://wiki.compilgames.net/doku.php/gdevelop5/extensions/best-practices).
- [X] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
- [X] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.
### What tier of review do you aim for your extension?
Community (Unreviewed)
### Example file
[42db3c5d-d779-4c9f-b95e-b81f0f802bd7.zip](https://github.com/user-attachments/files/17469698/42db3c5d-d779-4c9f-b95e-b81f0f802bd7.zip)
### Extension file
[AudioVisualizer.zip](https://github.com/user-attachments/files/17469701/AudioVisualizer.zip)
1 Like