Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface for test microphone options.

Hierarchy

  • TestMicrophoneOption

Index

Properties

maxRecordDuration?: number

The maximum seconds to record, the user needs to record. Default is 10 seconds.

microphoneId?: string

The microphone ID. If not specified, the SDK uses the default microphone.

recordAndPlay?: boolean

Whether the user needs to record and play an audio fragment to test the microphone.

speakerId?: string

The speaker ID. The Speaker to play the recording.

Methods

  • onAnalyseFrequency(averageFrequency: number): void
  • The average frequency of the stream, usually used to create audio visualization.

    Parameters

    • averageFrequency: number

    Returns void

  • onStartPlayRecording(): void
  • When to start playing the recording.

    Returns void

  • onStartRecording(): void
  • When to start recording.

    Returns void

  • onStopPlayRecording(): void
  • When to stop playing the recording.

    Returns void

  • onStopRecording(): void
  • When to stop recording.

    Returns void