Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
How can user's audio output be accessed in javascript

I am trying to get the user's audio output that is heard in the user's speaker and not from the user's microphone. I currently get's audio input from the microphone with this code

  startRecording.onclick = function() {

        navigator.getUserMedia({
            audio: true
        }, function(stream) {
                recordAudio = RecordRTC(stream, {
                type: 'audio',
                mimeType: 'audio/webm',
                sampleRate: 44100,
                desiredSampRate: 16000,
                
                recorderType: StereoAudioRecorder,
                numberOfAudioChannels: 1,

                timeSlice: 4000,

                
                ondataavailable: function(blob) {
                    console.log('ondataavailable');
                   
                    var stream = ss.createStream();
                    
                    ss(socket).emit('stream-media', stream, {
                        name: 'stream.wav', 
                        size: blob.size
                    });
                    
                    ss.createBlobReadStream(blob).pipe(stream);
                }
            });

            recordAudio.startRecording();

        }, function(error) {
            console.error(JSON.stringify(error));
        });
    };

the code above works fine to get the audio input from the microphone but how can I get user's audio output separate from the microphone input?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda