2

この記事によると、次のコードは OSX と Windows で動作するはずですが、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 );

バージョン 25.0.1323.1 dev の Chrome Dev をダウンロードしましたが、動作しません。

次のフラグを有効にしています。

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

3 に答える 3

1

これも確認できます。公式の Chromium バグ トラッカーでチケットを作成しました:

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

于 2013-02-25T23:52:00.910 に答える
1

ライブ オーディオの Linux サポートがhttps://src.chromium.org/viewvc/chrome?revision=192893&view=revisionに追加されました。

現在、Google Chrome バージョン 28.0.1500.89 ベータ版で動作します。Arch Linux でテスト済み。

于 2013-07-15T20:23:51.687 に答える