create static method
- [AudioCaptureOptions? options]
Creates a new audio track from the default audio input device.
Implementation
static Future<LocalAudioTrack> create([
AudioCaptureOptions? options,
]) async {
options ??= const AudioCaptureOptions();
final stream = await LocalTrack.createStream(options);
return LocalAudioTrack(
TrackSource.microphone,
stream,
stream.getAudioTracks().first,
options,
);
}