startStream method

Lfm3AudioEncoderStream startStream()

Independent causal state sharing this encoder's weights. The downsampler needs seven future feature frames; only Lfm3AudioEncoderStream.finish pads the tail. Closing this encoder also closes every active stream.

Implementation

Lfm3AudioEncoderStream startStream() {
  if (_closed) throw StateError('Audio encoder is closed');
  final stream = Lfm3AudioEncoderStream._(this);
  _streams.add(stream);
  return stream;
}