Urgent.News

What's breaking now, across thousands of outlets.

Tech

I built a browser game that asks your microphone to imitate a robot

I wanted a microphone project with a very small brief: hear a sound, copy it, and see how close you got. That became Mimic Party Online , a browser game where each round gives you a short sound cue and one recording attempt. The cue might be a meme clip, an animal call, a machine noise, or something that is hard to describe without making the sound yourself. It looks like a toy, and it is. It…

A browser-based game called Mimic Party Online invites players to record their voices in imitation of various sounds. The game provides a sound cue, such as a meme clip, animal call, or machine noise, and the player records a single attempt. The recording process occurs entirely within the browser, utilizing the microphone stream to convert the take into mono PCM at 16 kHz.

The game then analyzes the recorded sound by examining signals like pitch contour, timing, active duration, attack, energy, rhythm, onset positions, and spectral shape. Different sound types require different aspects of the audio to be emphasized in the scoring. For instance, a pitched cue focuses on contour, while a machine noise prioritizes shape and attack.

Rhythmic sounds require the hits to be timed correctly. The scoring system takes into account the differences between the reference and the player's recording, providing feedback in the form of a score ranging from 0 to 100. The game also includes features such as different modes, routes, and quality checks to enhance the player experience.

By keeping the audio processing local, the game avoids any concerns about uploading or remote processing. This approach allows for immediate feedback and maintains player engagement. The game encourages players to experiment with various sounds, providing a clear path for improvement based on the detailed scoring breakdown.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

What I learned building an enemy state machine in Godot 4

I wrote "just use a match statement, it's fine" three times before I stopped saying it. It is fine, right up until an enemy needs a fourth state and two of the transitions start depending on each…

  • Match statement works for simple enemies but becomes unwieldy with four or more states
  • Transition bugs often stem from data or flags not properly handled between states
  • Node-per-state approach simplifies managing multiple enemy types with shared and distinct behaviors

More from Friday 4 September →