Skip to main content

Module audio

Module audio 

Source
Expand description

The audio a transcription reads from.

Structs§

Samples
Samples already in memory, the shape a file or a test uses.

Constants§

SAMPLE_RATE
Sample rate every model in this crate expects, which is the rate capture opens a device at: one constant, so the two cannot drift. Sample rate every model in forge reads, and the rate open delivers.

Traits§

AudioSource
A pull-based source of mono audio.

Functions§

resample_mono
A buffer at another rate, brought to SAMPLE_RATE with the capture path’s own filtered resampler: the one way a source declaring another rate becomes a source this crate accepts. A buffer of mono audio at from, converted to to with the input path’s own filter. The same rate hands the buffer straight back.