audio-len-service

module
v0.2.40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2023 License: BSD-3-Clause

README

audio-len-service

Coverage Status

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.


Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL