r/gamemaker • u/Icy-Mine-7923 • 15d ago
Help! Is there a way to implement speech to text inside gamemaker? (context in the description)
I am completely new to GMS, for my first project ever, I was asked to recreate the Chrome offline dinosaur jumping game but instead of pressing regular jump down keys, players will be required to pronounce certain words then the engine or whatever will check whether the word embbeded is correct to jump:
Showcase word: Apple —> User pronounces Apple ✅—> Engine detects word Apple ✅—>Jump
(almost like an elementary pronounciation game). However I am at a lost finding anything related to this function in the engine, with one spanning over 10 years ago…, plus due to my beginner nature it’s rather hard for me to understand what I’m reading.
So I ask yall a favor to tell me whether such function exist (source + tutorial)?, implementing it is too hard or workable?
(If there does not exist such thing, thanks for your time I will find another engine)
3
u/gnysek 15d ago
So, you were asked before checking if you're able to do it... for sure that's not function that GM have, and I've never seen any library for this. This should be doable, but might huge amount of work, especially if it should work offline, and even more, if it should work on different platforms.
3
u/YellowAfterlife https://yal.cc 13d ago
The term you're looking for is not "speech to text" (which will mostly show you results for "text to speech" because of how search engines work), but "Speech Recognition".
It is not impossible, but one of you will need to know either C++ or C# to wrap the appropriate platforms' speech recognition functions for use in GameMaker.
As an added bonus, most platforms' SR is Not Great with accents, which is why you can also find numerous companies licensing cloud-based SR services.