Options
Menu

Class Encoder

The Encoder reads audio data via an AudioContext and encodes it to a wav data format. The wav data can be then converted into a blob which can be used for playback.

Hierarchy

  • Encoder

Index

Constructors

constructor

  • new Encoder(stream: MediaStream, audioContext: AudioContext, audioEncoder?: any): Encoder
  • Construct an Encoder instance and and prepares the Web Worker

    Parameters

    • stream: MediaStream

      The input MediaStream to record

    • audioContext: AudioContext

      The AudioContext instance to use for processing audio data

    • Default value audioEncoder: any = waveEncoder

    Returns Encoder

Methods

ondataavailable

  • ondataavailable(): undefined

onstop

  • onstop(): undefined

start

  • start(): void

stop

  • stop(): void

Generated using TypeDoc