Wrp Properties
These are the properties of the WRP library included in Sample Program 1.1.2 and later.
Wrp.version
Retrieves the version of the library currently in use. Used as read-only.
Initial value: "Library version set at the time of sample shipment"
Wrp.serverURL
Specifies the URL of the speech recognition server using the WebSocket scheme (wss://). Must be set before calling connect().
The connection destinations for this service are as follows: wss://acp-api.amivoice.com/v1/ (logging) wss://acp-api.amivoice.com/v1/nolog/ (no logging)
Initial value: "wss://" + window.location.host + window.location.pathname
Wrp.grammarFileNames
Specifies the connection engine name. Must be set before calling connect().
Initial value: "-"
Wrp.authorization
Specifies the APPKEY. Must be set before calling feedDataResume().
Initial value: ""
Wrp.profileId
Specifies the profile ID that identifies the user using registered words.
- profileId should be a string composed of alphanumeric characters, "-" (hyphen), and "_" (underscore). However, strings starting with "__" (two underscores) are reserved by the speech recognition engine, so please do not specify strings starting with "__" (two underscores).
*If you have registered words on the My Page of this service, specify the string with a colon at the beginning of the service ID (automatically generated from the user ID) listed in the connection information on the My Page as the profileId.
Initial value: ""
Wrp.profileWords
Sets the notation and reading of words you want to register.
Initial value: ""
Wrp.checkIntervalTime
Sets the timer time for automatically stopping recording. The unit is milliseconds.
Wrp.sid
Sets the service ID when obtaining a one-time APPKEY (service authentication key string). The service ID is listed on the My Page of this service.
Initial value: null
Wrp.spw
Sets the service password when obtaining a one-time APPKEY (service authentication key string). The service password is listed on the My Page of this service.
Initial value: null
Wrp.epi
Sets the validity period (in milliseconds) when obtaining a one-time APPKEY (service authentication key string). If this value is not set, a one-time AppKey with a validity period of 30 seconds (30000ms), which is the default value of the one-time APPKEY issuance service, will be issued.
Initial value: null