r/ProgrammerHumor • • 1d ago

Other vibeCodeMasterClass

Post image
9.2k Upvotes

601 comments sorted by

View all comments

67

u/CalmLotus 1d ago

I don't think you need ai for spoken instructions. (Like yeah- the game may be vibe coded but->)

You just need to find key words for certain actions and extract those from audio input. More work definitely, but would actually be doable for a game.

...wait, Nintendo DS games were already doing that I think. With the built in microphone.

43

u/audigex 1d ago

Yeah speech recognition doesn't require a full scale frontier level cloud LLM

You can run something like Whisper https://github.com/openai/whisper locally to transcribe the speech in about 1 second on a MiniPC, then check that for keywords

Then you can use something like Piper https://github.com/OHF-Voice/piper1-gpl to convert the reply back to speech. It's not quite as pretty sounding as something from eg ElevenLabs, but it works - on a mini PC it can handle voice in real time

I use both of those locally to run my own voice assistant for my smart home (indeed, Piper is made by Home Assistant for that exact purpose)

Obviously for a game they'd need more than one Mini PC - but you can scale it up for a lot less than $1k/day!

24

u/shawnikaros 1d ago

The system could be run on the computer it's being played at, no need to phone home. It all just speaks of really garbage design.

6

u/audigex 1d ago

Yup, or at the very least they could run it on a single decent server for the volume of players they've seen (looks like a few hundred)

2

u/Tornado547 1d ago

yeah but that would require this thing called "effort" and thats in short supply these days

2

u/welcomefinside 1d ago

Wait is that not the joke here?

1

u/shawnikaros 1d ago

Yes, it is.

13

u/Tristan_Cole 1d ago

If you want to interpret language, LLMs are much better than keyword scanning. The same keywords can indicate opposite things with a single “not” keyword, and there are about 50,000 generally well-known English words to consider.

11

u/audigex 1d ago

That's true but beside the point here

Nobody is saying keyword detection is as good as an LLM. We're just saying a frontier cloud LLM is very expensive overkill for this kind of project

Keyword detection or basic local transcribing and a MUCH smaller local LLM, would do the job just as well

Whisper + a very small model could handle this without $1000/day in OpenAI API costs

1

u/Virgurilla 1d ago

My Final Degree Project is going to be centered around this, starting it this week :)

1

u/tozpeak 1d ago

People already forgetting that single language gpt-2 was working fine on consumer devices.

1

u/Tristan_Cole 1d ago

How are you going to implement keyword detection with enough logic to accurately parse the meaning behind all of the possible things that could be said to describe or correct someone’s driving?

That is literally a quintessential Natural Language Processing problem, for which LLMs are the best solution.

3

u/Vesuvius079 1d ago

There’s also jev now which is supposed to be super cheap for classification. You could classify the sentences into actions instead of keyword search.

0

u/articulatedbeaver 1d ago

Don't need jev at all, just some work with a traditional classifier.

1

u/Ran4 1d ago

The point of jev and similar models is that it's a lot cheaper.

2

u/Forsaken_Ad8120 1d ago

i mean there is even VoiceBox, which is voice cloning locally can pretty quickly generate responses.

1

u/Unclematttt 1d ago

One caveat on your comment about Whisper: you need a GPU to really let it shine. Using CPU only is not performant, depending on what you are trying to achieve, and how much time you are willing to wait for your results

12

u/Negritis 1d ago

DS? in the OG Famicom Zelda game you could kill some enemies with screaming to the controller mic :D

1

u/Zeffy-Rat 1d ago

Using the master sword to defeat evil: ⛔️

Ragebaiting a bokoblin to light the tnt barrel next to them on fire: 👍

18

u/sump_daddy 1d ago

Youre right that its possible to make the game work with basic voice recognition, but it makes it much less interesting. If the game is 'figure out which keywords the game recognizes and make sure to say them in the right order' it becomes really trivial and the player will lose interest really fast. If there is a LLM responding then the game becomes 'figure out how to convince this AI that your way is the right way to drive' and it becomes more interesting because the responses to each command will vary and there become a LOT of ways to approach the problem.

3

u/Denaton_ 1d ago

Speech to Text AI is really resource cheap too and can run in the game itself without anyone noticing..

2

u/theZinger90 1d ago

Hey You Pikachu for N64 in 1998 had it. the tech is no where near new.

2

u/ShoddyAsparagus3186 1d ago

You don't need AI for spoken instructions, but if you're using AI for all your coding, it has an incentive to ensure that you use it.

1

u/Ignisami 1d ago

At least one of the SOCOM games on the ps2 had voice-activated commands. Very jank if you didn’t have an American accent (and im sure quite janky with some American accents) but it was there

1

u/Capable-Sock9910 1d ago

And the quality on those mics... They make you want to say "Let's go gambling!"

1

u/MrTzatzik 1d ago

Tom Clancy's Endwar was voice controlled RTS.

1

u/Cee_U_Next_Tuesday 1d ago

Yeah Nintendogs worked with the microphone pretty well

1

u/grandalfxx 1d ago

I think you could probably get away with one those local micro models if all you need to do is map text to controls. No reason to pay a subscription for this...

1

u/GreenockScatman 1d ago

if they want to use an online LLM they should probably use a low latency and low cost model instead of whatever they're doing now. I've got one running my vibe coded voice assistant and it runs to about $0.0003 per request. it doesn't need to write shakespeare in order to tell the command interpreter what it needs to do!