How to Play:
Press "Start" and enable the microphone to begin. Two random words will appear: the top word is yours, and the bottom word belongs to the computer. Your objective is to think of a word that connects both and say it out loud. The computer, powered by a GPT model, will also attempt to guess a connecting word. The game continues until you and the computer arrive at the same word.
When I found out there’s a voice detection API built into the browser, I thought it would be a fun way to make a version of the improv game "Mind Meld" that you could play with a computer.
I made this in an afternoon and think there’s a few improvements that could be made – the Web Audio API actually gives estimates of the words you’re saying quite quickly, but it takes a moment before it’s confident that a word has completed, adding a bit of latency. I hope to add in the in-between words it thinks you’ve said to lower this latency and make the visual feedback more immediate.
I also played a bit with doing the word computation on the front-end using a word2vec dictionary, but it was a bit too tricky to get working in an afternoon. This approach also has some pretty big issues to overcome, such as n^2 word distance calculations and a limited dictionary.