WAVRecorder
class NatML.Recorders.WAVRecorder : IMediaRecorder
The WAVRecorder
records audio to *.wav
waveform files.
Creating the Recorder
You will provide the audio sampleRate
and channelCount
in order to specify the audio format of the audio sample buffers that will be committed to the recorder.
When recording audio from Unity (e.g. using an AudioInput
):
Set the
sampleRate
toAudioSettings.outputSampleRate.
Set the
channelCount
to(int)AudioSettings.speakerMode
.
Committing Frames
Refer to the Committing Audio Frames section of the IMediaRecorder
interface for more information.
The WAVRecorder
does not use timestamps on committed frames.
The WAVRecorder
does not support committing video frames. Doing so is a null operation.
Finishing Recording
Refer to the Finishing Recording section of the IMediaRecorder
interface for more information.
Last updated