Web Audio API
The stream property of the AudioContext interface represents a MediaStream containing a single audio MediaStreamTrack with the same number of channels as the node itself.
You can use this property to get a stream out of the audio graph and feed it into another construct, such as a Media Recorder.
Value
A MediaStream containing a single audio track. The audio track is a MediaStreamTrack whose MediaStreamTrack.kind is audio.
Examples
See AudioContext.createMediaStreamDestination() for example code that creates a MediaStreamAudioDestinationNode and uses its stream property as a source for audio to be recorded.
Specifications
Browser compatibility
See also
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
