Rate this page:

NoiseSuppression

Constructors

constructor
Copy URL

Methods

addEventListener
Copy URL
addEventListener(event: 

Events

|

NoiseSuppressionEvents

,
callback:

Function

):

void

Adds a handler for the specified Hush.NoiseSuppressionEvents or Hush.Events event. Use only functions as handlers; anything except a function leads to the error and scenario termination when a handler is called.

Parameters

Returns

  • type:

    void

clearMediaBuffer
Copy URL
clearMediaBuffer(parameters: 

ClearMediaBufferParameters

):

void

Clears the NoiseSuppression WebSocket media buffer.

Parameters

Returns

  • type:

    void

close
Copy URL
close(): 

void

Closes the NoiseSuppression connection (over WebSocket) or connection attempt.

Returns

  • type:

    void

id
Copy URL
id(): 

string

Returns the NoiseSuppression id.

Returns

  • type:

    string

removeEventListener
Copy URL
removeEventListener(event: 

Events

|

NoiseSuppressionEvents

,
callback:

Function

):

void

Removes a handler for the specified Hush.NoiseSuppressionEvents or Hush.Events event.

Parameters

Returns

  • type:

    void

reset
Copy URL
reset(): 

void

Resets the Hush ONNX streaming state and resampler buffers.

Returns

  • type:

    void

sendMediaTo
Copy URL
sendMediaTo(mediaUnit: 

VoxMediaUnit

,
parameters:

SendMediaParameters

):

void

Starts sending denoised media from the NoiseSuppression (via WebSocket) to the media unit.

Parameters

Returns

  • type:

    void

stop
Copy URL
stop(): 

void

Stops the noise suppression session on the connector.

Returns

  • type:

    void

stopMediaTo
Copy URL
stopMediaTo(mediaUnit: 

VoxMediaUnit

):

void

Stops sending media from the NoiseSuppression (via WebSocket) to the media unit.

Parameters

Returns

  • type:

    void

webSocketId
Copy URL
webSocketId(): 

string

Returns the NoiseSuppression WebSocket id.

Returns

  • type:

    string

Rate this page: