examples/video_stream/broadcaster/client/index.js
/**
 * initializes Web API audio context with 16000 sampling rate
 * */
initializes Web API audio context with 16000 sampling rate
initializes Web API audio context with 16000 sampling rate
function initAudio() {
    window.AudioContext = window.AudioContext||window.webkitAudioContext;
    audioContext = new AudioContext({sampleRate: 16000});
    navigator.getUserMedia({audio: true}, setupAudioStream, function(err){});
    speexWorker.postMessage({
        command : "initialize"
    });
}
function initAudio ( ) { window . AudioContext = window . AudioContext || window . webkitAudioContext ; audioContext = new AudioContext ( { sampleRate : 16000 } ) ; navigator . getUserMedia ( { audio : true } , setupAudioStream , function ( err ) { } ) ; speexWorker . postMessage ( { command : "initialize" } ) ; }
initializes Web API audio context with 16000 sampling rate
initializes Web API audio context with 16000 sampling rate