In Node.js, how to get the audio duration of an audio file in Google Cloud Storage without downloading?
P粉127901279
P粉127901279 2023-08-17 12:15:55
0
1
501
<p>In Node.js, how to get the audio duration of an audio file in Google Cloud Storage without downloading? </p>
P粉127901279
P粉127901279

reply all(1)
P粉262073176

When looking at the documentation I didn't see anything about checking the file contents, let alone something as specific as calculating the duration of an audio file, so: cannot be implemented .

At a minimum (depending on the file format), you'll need to download enough of the file to read its embedded metadata (I don't see any mention of support for content ranges , so you might Need to get the entire file).

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!