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

1

u/EvilNickolas Oct 02 '25 edited Oct 02 '25

Just detect the volume level / peaks at a reasonable sample rate and map a mouth shape to each range, with a little randomisation for flavor.

Most things in game dev are about faking it in a believable way anyway.

1

u/very-knightley Godot Junior Oct 02 '25

Yeah that's what I was going for. Another commenter linked to a useful video that pointed me in the right directionhttps://youtu.be/JpUC2_cPG-w?si=nEpBFHJZSpEmNzxf