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

206
Visualizações
Creating a wav file from a blob

I'm using the audio-react-recorder library to record audio from a user that want to eventually send to my back-end (as a wav-file). The react-recorder is generating a blob ({blob: Blob, url: 'blob:http://localhost:3000/c572ac68-6b7c-4992-b134-947df05ef32b', type: 'audio/wav'}) but I am unsure on how to convert it to a .wav file to be sent to the back-end. What I've tried so far:

let f = new File([audio], 'test.wav', { lastModified: new Date().getTime(), type: audio.type });

which causes an error when I try to pass to the API (wit.ai) I'm using. Also when I try to download this file, it is unplayable so I assume I'm not creating the file properly. Any ideas how to properly create the .wav file from the blob?

about 4 years ago · Juan Pablo Isaza
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