audio-len-service
Simple service to return an audio duration of wav, mp3, m4a files. The service is written in Go. It wraps sox and ffprobe to get the real audio duration.
To test the service look into examples/docker-compose.
cd examples/docker-compose
docker compose up -d
curl -X POST http://localhost:8003/duration -H 'content-type: multipart/form-data' -F file=@1.mp3
The result is in seconds:
{"duration":5.20127}
License
Copyright © 2023, Airenas Vaičiūnas.
Released under the The 3-Clause BSD License.