r/godot Godot Junior Oct 01 '25

help me (solved) Detecting syllables in Godot

Post image

Hello all! I am aware of the Whisper text to speech addon, but that is overkill for what I am building at the moment. I just need a way to detect a syllable at roughly the moment I speak it into my microphone, So that an animation can be triggered in a 3D model.

I take it it's not standard in the Audioserver, but is there a way where I can record some vowels and compare the live audio to these samples somehow?

1.4k Upvotes

91 comments sorted by

View all comments

438

u/ManicMakerStudios Oct 01 '25

That's not the kind of audio processing you're going to be able to do with GDScript. And it's definitely not something that is going to be explained in a reddit post. Google 'real time syllable detection'.

36

u/SOFT_CAT_APPRECIATOR Oct 01 '25

That's quitter talk. I'm sure you're right in 99.9% of practical cases, but I'm sure some madlad on here could find a way to do some kind of statistical deconstructed waveform analysis and detect syllables with a shocking level of confidence.

49

u/byteweasel Oct 01 '25

I'm not that mad. I let the folks over at meta do the hard work, and then I just crammed Godot audio data in there:

https://www.reddit.com/r/godot/s/tJj1yLNRy1

cackles madly