Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

196
Visualizações
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?

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

After researching this, I could not find a currently-available API for obtaining the metadata without manually parsing the binary file headers. I opened Git issue WebCodecs #411 with the WebCodecs team. WebCodecs is a new API that could potentially offer this metadata viewing feature.

about 4 years ago · Juan Pablo Isaza Relatório

0

Have you checked out music-metadata? It appears to support parsing all of the metadata mentioned above and supports quite a few formats.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda