Options
All
  • Public
  • Public/Protected
  • All
Menu

Class responsible for managing Iris Voice Isolation functionalities.

Hierarchy

  • IrisNoiseCancellation

Index

Constructors

  • Creates an instance of the IrisVoiceIsolation service.

    example
    const irisVoiceIsolationService = new IrisVoiceIsolation('/path/to/audioWorklet.js');
    

    Parameters

    • audioWorkletPath: string

    Returns IrisNoiseCancellation

Properties

audioCode?: any
audioElement?: HTMLAudioElement
call?: any
config: IrisOptions = ...
credentials: { key: string; team: string; user: string } = ...

Type declaration

  • key: string
  • team: string
  • user: string
inCall: boolean = false
iris: IrisSetup
irisLoaded: boolean = false
localStream?: MediaStream
logger: Logger = ...
onCallStatusChanged: Subject<CXoneVoiceCall>
onConnectionStatusChanged: Subject<CXoneVoiceConnection>
remoteStream?: MediaStream

Accessors

  • set micProcessing(value: boolean): void
  • Enables or disables microphone processing for noise cancellation.

    example
    irisNCService.micProcessing = true;
    

    Parameters

    • value: boolean

    Returns void

  • set mixLevelMic(value: number): void
  • Sets the microphone mix level for noise cancellation in the Iris service.

    example
    irisNCService.mixLevelMic = 30;
    

    Parameters

    • value: number

    Returns void

  • set mixLevelSpeaker(value: number): void
  • Sets the speaker mix level for noise cancellation in the Iris service.

    example
    irisNCService.mixLevelSpeaker = 30;
    

    Parameters

    • value: number

    Returns void

  • set speakerProcessing(value: boolean): void
  • Enables or disables speaker processing for noise cancellation.

    example
    irisNCService.speakerProcessing = true;
    

    Parameters

    • value: boolean

    Returns void

Methods

  • connect(): void
  • Establishes connections for both sending and receiving audio streams using Iris Voice Isolation.

    example
    irisService.connect();
    

    Returns void

  • connectLocal(): void
  • Establishes a connection to a remote audio stream and processes it for playback.

    example
    connectLocal();
    

    Returns void

  • connectRemote(): void
  • Establishes a connection to a remote audio stream and processes it for playback.

    example
    connectRemote()
    

    Returns void

  • disconnect(): void
  • Disconnects the Iris Voice Isolation service from the current call.

    example
    disconnect()
    

    Returns void

  • init(): Promise<void>
  • Initializes the Iris Voice Isolation service.

    example
    const irisService = new IrisVoiceIsolation();
    await irisService.init();

    Returns Promise<void>

Generated using TypeDoc