IAudioInputSource Interface
This interface defines the methods and properties required for an audio input source. It is used to start and stop recording, check if recording is in progress, and handle events related to recording.
Invoked when the instance starts Recording.
Action OnStartRecordingFailed
Invoked when an AudioClip couldn't be created to start recording.
Action< int, float[], float > OnSampleReady
Invoked everytime an audio frame is collected. Includes the frame.
Invoked when the instance stop Recording.
Returns true if the audio input source is currently recording.
Settings determining how audio is encoded by the source.
NOTE: Default values for AudioEncoding are server optimized to reduce latency.
void StartRecording ( int sampleLen )
Starts recording audio with the specified sample length.
ParameterssampleLenThe length of the audio sample to record.