Rate this page:

VAD

Constructors

constructor
Copy URL

Methods

addEventListener
Copy URL
addEventListener(event: 

VADEvents

,
callback:

Function

):

void

Adds a handler for the specified Silero.VADEvents 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

close
Copy URL
close(): 

void

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

Returns

  • type:

    void

id
Copy URL
id(): 

string

Returns the VAD id.

Returns

  • type:

    string

removeEventListener
Copy URL
removeEventListener(event: 

VADEvents

,
callback:

Function

):

void

Removes a handler for the specified Silero.VADEvents event.

Parameters

  • event:

    VADEvents

    Event class (i.e., Silero.VADEvents.Result)

  • callback:

    Function

    Optional

    Optional. Handler function. If not specified, all handler functions are removed

Returns

  • type:

    void

reset
Copy URL
reset(): 

void

Reset the VAD context.

Returns

  • type:

    void

webSocketId
Copy URL
webSocketId(): 

string

Returns the VAD WebSocket id.

Returns

  • type:

    string

Rate this page: