Home / Companies / Deepgram / Blog / Post Details
Content Deep Dive

Playing With P5.js: Creating a Voice-Controlled Game

Blog post from Deepgram

Post Details
Company
Date Published
Author
Kevin Lewis
Word Count
1,626
Company Posts That Month
32
Language
English
Hacker News Points
-
Post removed?
No
Summary

In this tutorial, a voice-controlled game is created using P5.js, a creative coding library that simplifies working with the Canvas API. The game features an enemy appearing from one of four directions every few seconds and moving towards the player. If the player says a specific word associated with each direction correctly, a bullet will fly in that direction. The final code for this project can be found on GitHub. To create the game, various P5 functions are used such as preload(), setup(), draw(), and keyPressed(). Additionally, Deepgram's Speech Recognition API is integrated to enable voice control of the game.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.