Question

According to this article the following code should work on OSX and Windows but doesn't mention Linux:

http://updates.html5rocks.com/2012/09/Live-Web-Audio-Input-Enabled

// success callback when requesting audio input stream
function gotStream(stream) {
    var audioContext = new webkitAudioContext();

    // Create an AudioNode from the stream.
    var mediaStreamSource = audioContext.createMediaStreamSource( stream );

    // Connect it to the destination to hear yourself (or any other node for processing!)
    mediaStreamSource.connect( audioContext.destination );
}

navigator.webkitGetUserMedia( {audio:true}, gotStream );

I downloaded Chrome Dev which is version: Version 25.0.1323.1 dev and it's not working.

I have the following flag enabled:

Web Audio Input Mac, Windows, Linux, Chrome OS
Enables live audio input using getUserMedia() and the Web Audio API.
Was it helpful?

Solution

Linux support for live audio was added in https://src.chromium.org/viewvc/chrome?revision=192893&view=revision.

Currently works on Google Chrome Version 28.0.1500.89 beta. Tested on Arch Linux.

OTHER TIPS

As of chrome Version 24.0.1312.69 and Dartium Version 26.0.1403.0 (chromium derivative), I could not manage to make any demo from http://webaudiodemos.appspot.com/ using Live Input work on Ubuntu 12.10. I have the proper chrome://flags enabled.

For me it works fine on MacOS but it fails on Ubuntu using either a microphone or a USB camera. Ubuntu Sound Recorder works fine though so I know my hardware is working.

It would be nice to know whether it is supposed to work on Linux or when it is planned to be officially supported.

I can verify this as well. Created ticket on the official Chromium bug tracker:

http://code.google.com/p/chromium/issues/detail?id=177862

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top