Inspiration
I love golf, but I don't have much time to practice. Visualization is a proven way to improve sports performance. I wanted to build a tool that I could use to prepare before rounds, and increase my performance.
What it does
Hole 0 generates personalized MP3s that help you visualize a golf course and all the shots you will take on it. It takes in a course of your choice, as well as how far you hit each club, and generates a guided meditation that walks you through the course.

How we built it
Hole 0 works like this:
- Gets a description for each hole of a golf course based on a yardage book or website
- Takes a user-input of their average yardage by club
- Passes info about the course and the player's game to GPT-4 which generates a script for a guided visualization as if it were an expert golf caddy
- Once the script is made, it gets passed to Play.HT to generate audio
- After the audio is generated, I use ffmpeg to edit it and add background music
Challenges we ran into
Working with ffmpeg and determining where to put pauses was the most difficult part.
For meditation/visualization type audio, getting proper pauses is crucial. Commercial Text-To-Speech APIs aren't that good at creating pauses right now, so I had to write a lot of custom ffmpeg code to put pauses in the right spots to make it sound natural.
Accomplishments that we're proud of
I got a working sample built in 24hrs.
What we learned
How to use ffmpeg to make AI-generated audio sound more realistic.
What's next for Hole 0
I am building a company that connects people with hypnotherapists to help them change their habits, and I plan on using some of the technology behind Hole 0 to make personalized self-hypnosis recordings for my customers.
Built With
- gpt-4
- play.ht
- react
- typescript
Log in or sign up for Devpost to join the conversation.