Compile the code using go command line.

After compilation to run the code: go run main.go <mp3file_path.mp3>

How it works:

  1. Press any arrow key when you breathe. The onscreen counter will keep increasing until 108, and the song will start playing.
  2. On reaching 108, you have to stop breathing and feel the vibrations in your body.
  3. When you are ready to breathe again, hit enter.

On hitting enter, the screen will show how long did you hold your breath.

Hit Esc to close the app.


View Github