Nathan Gathright on Nostr: npub1jtm4d…rrxtn Since Transcribefm uses duration to price API requests of remote ...
npub1jtm4dxvu3ccgk60wvvt0uw9j9vz7nuc80f7agrv0vgkkushxk5zq0rrxtn (npub1jtm…rxtn) Since Transcribefm uses duration to price API requests of remote audio URLs, I had to go down this rabbit hole earlier this year.
Stackoverflow has many suggestions for rough estimations, but my needs required perfect accuracy. Ultimately, I wrote a serverless function to download the audio and invoke `ffprobe` to retreive the most accurate duration.
Stackoverflow has many suggestions for rough estimations, but my needs required perfect accuracy. Ultimately, I wrote a serverless function to download the audio and invoke `ffprobe` to retreive the most accurate duration.