Show the waveform of an audio sample. You can play with a demo of the app here. There are two projects in this repo:
- api- backend API written in Golang
- audiowave- frontend React app
Install ffmpeg (instructions for debian/ubuntu:)
sudo add-apt-repository ppa:jonathonf/ffmpeg-4
sudo apt-get update
sudo apt-get install ffmpeg
Go dependencies:
go get -u github.com/aws/aws-sdk-go/...
go get github.com/gorilla/mux
go get github.com/gorilla/handlers
cd api
./api
cd audio-wave
yarn
yarn start
There's only one:
- string: The string to make a waveform for
example response body:
{
"audio":"http://68.183.30.161/assets/audio/audio-252134362.mp3",
"wave":"http://68.183.30.161/assets/images/audio-252134362.png",
"duration":"2.377167s"
}
In the React app, run yarn test
.
The app works on screens of any size.