Saturday, 27 November 2021

How to get sample rate, bit depth, and number of channels with Web Audio API?

I am wondering how I can get the following audio metadata after uploading a file and embedding within <audio> tag.

  • Sample rate
  • Bit depth
  • Number of channels

Is this possible with Web Audio API? Or do I need to parse the binary data of each audio file?



from How to get sample rate, bit depth, and number of channels with Web Audio API?

No comments:

Post a Comment