itch.io is community of indie game creators and players

Devlogs

Calling Your Game With Your Phone

Robot Dreams
A browser game made in HTML5

What's going on is described in detail in the `game-twilio-deepgram-distributor` posts, but in short, I've set up a Twilio phone number which, when you call it, will stream audio to the server, which then forwards the audio to Deepgram, receives transcripts, checks if a game code/password associated with an independently connected game client was spoken, and if it was, tell that to the game client which will then trigger the game to win. Pretty meta stuff (maybe?). The game will also send text to the server, which forwards audio of that text (via Amazon Polly text-to-speech) to the phone call to let the user know they won.

Anyways, this was a really interesting one to work on, and I intend to use this server for more games in the future - possibly adding chatbots to it to enable you to call NPCs in the game and have conversations! (Order a pizza? Dating sim? Who knows!)

Files

  • RobotDreamsHTML.zip 5 MB
    Mar 19, 2023
Leave a comment