What is Nostr?
Nathan Gathright /
npub1qnh…mugx
2023-11-04 14:33:30
in reply to nevent1q…9e4k

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.
Author Public Key
npub1qnhafca6safgsyq9258qcqergf9fcuda66lhd0u8apqe90qnfvysjqmugx