Method GetMono16kSamples
GetMono16kSamples(CancellationToken)
Returns the per-frame average across all channels, normalized into [-1, 1], and resampled to 16 kHz if necessary.
public IReadOnlyList<float> GetMono16kSamples(CancellationToken cancellationToken = default)
Parameters
cancellationTokenCancellationTokenToken to cancel the read operation.
Returns
- IReadOnlyList<float>
Read-only list of normalized float samples at 16 kHz.
Remarks
The returned list is a read-only view of the internal sample buffer. Do not attempt to cast and modify it.
Exceptions
- OperationCanceledException
Thrown if the read is cancelled via
cancellationToken.- CorruptedAudioException
Thrown if the WAV data chunk ends prematurely.