NoiseSuppression
Constructors
Methods
addEventListener(event: | , 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
event:
Event class (i.e., Hush.NoiseSuppressionEvents.Reset)
callback:
Function
Handler function. A single parameter is passed - object with event information
Returns
type:
void
clearMediaBuffer(parameters: ): void
Clears the NoiseSuppression WebSocket media buffer.
Parameters
parameters:
OptionalOptional. Media buffer clearing parameters
Returns
type:
void
close(): void
Closes the NoiseSuppression connection (over WebSocket) or connection attempt.
Returns
type:
void
id(): string
Returns the NoiseSuppression id.
Returns
type:
string
removeEventListener(event: | , callback: Function
): void
Removes a handler for the specified Hush.NoiseSuppressionEvents or Hush.Events event.
Parameters
event:
Event class (i.e., Hush.NoiseSuppressionEvents.Reset)
callback:
Function
OptionalOptional. Handler function. If not specified, all handler functions are removed
Returns
type:
void
reset(): void
Resets the Hush ONNX streaming state and resampler buffers.
Returns
type:
void
sendMediaTo(mediaUnit: , parameters: ): void
Starts sending denoised media from the NoiseSuppression (via WebSocket) to the media unit.
Parameters
mediaUnit:
Media unit that receives media
parameters:
OptionalOptional interaction parameters
Returns
type:
void
stop(): void
Stops the noise suppression session on the connector.
Returns
type:
void
stopMediaTo(mediaUnit: ): void
Stops sending media from the NoiseSuppression (via WebSocket) to the media unit.
Parameters
mediaUnit:
Media unit that stops receiving media
Returns
type:
void
webSocketId(): string
Returns the NoiseSuppression WebSocket id.
Returns
type:
string