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

87
Visualizações
Getting raw opus from MediaRecorder

Okay, I'm getting audio from the MediaRecorder as follows:

if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
    navigator.mediaDevices.getUserMedia(
    // constraints - only audio needed for this app
    {
        audio: 
        { sampleSize: 16, channelCount: 1, sampleRate: 16000 }
    })

    // Success callback
    .then(function (stream) {
        mediaRecorder = new MediaRecorder(stream);
        mediaRecorder.ondataavailable = function (e) {
            if(e.data)
                socket.send(e.data);
        }
        streamstart();
    }) ... 

As I understand, this data available in the callback contains a WebM audio format with opus encoding (Chrome). This I'm sending to my Win32 application in order to transfer the sound from the phone's microphone to it.

Now, I could use libebml to decode this information, but, is there any way to get the raw opus data bytes from it (i.e. to decode in JavaScript)? To avoid wasted bandwidth.

I believe that Opus Media Recorder can't help , it simply converts any sort of non-opus to Webm-based opus, not raw opus stream.

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