Skip to main content

Wrp Methods

caution

These are WRP library methods included in <Sample Program 1.1.2> and later.

Wrp.connect()

Opens a WebSocket and connects to the speech recognition server.

Wrp.disconnect()

Closes the WebSocket and disconnects from the speech recognition server.

Wrp.feedDataResume()

Starts recording audio data from the recording device and notifies the speech recognition server of the start of audio data supply.

Wrp.feedDataPause()

Stops recording audio data from the recording device and notifies the speech recognition server of the stop of audio data supply.

Wrp.isConnected()

Retrieves whether currently connected to the speech recognition server.

Wrp.isActive()

Retrieves whether audio data is currently being supplied to the speech recognition server.

Wrp.issue()

Retrieves a one-time APPKEY (service authentication key string).