Function resampleStream

  • Resamples an audio stream to a target sample rate.

    WARINING: The input stream will be locked until the resampled stream is closed.

    Parameters

    • __namedParameters: {
          outputRate: number;
          stream: ReadableStream<AudioFrame>;
      }
      • outputRate: number
      • stream: ReadableStream<AudioFrame>

    Returns ReadableStream<AudioFrame>

    A new stream with the resampled audio.