Wrp Properties
These are the properties of the WRP library included in Sample Program 1.1.2 and later.
Wrp.version
Gets the version of the library in use. Used as read-only.
Default 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().
Default value: "-"
Wrp.authorization
Specifies the APPKEY. It must be set before calling feedDataResume().
Default value: ""
Wrp.profileId
Specifies the profile ID that identifies the user using registered words.
- profileId should be a string consisting 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 MyPage of this service, specify the string with a colon added to the beginning of the service ID (automatically generated from the user ID) listed in the connection information on MyPage as the profileId.
Default value: ""
Wrp.profileWords
Sets the written and pronunciation of words you want to register.
Default value: ""
Wrp.segmenterProperties
Specifies parameters related to the ease of detecting speech segments and speaker diarization. For details on the parameters, please see segmenterProperties.
Default value: ""
Wrp.keepFillerToken
Specifies whether to automatically delete filler words. Specify 0 to automatically delete filler words, and 1 to keep them. If not specified, it behaves the same as when 0 is specified.
Default value: ""
Wrp.resultUpdatedInterval
Specifies the interval at which recognition-in-progress events are issued. The unit is milliseconds.
Initial value: ""
Wrp.maxDecodingTime
Specifies the maximum recognition processing time in milliseconds. For details, please see maxDecodingTime.
Default value: ""
Wrp.maxResponseTime
Specifies the maximum response time in milliseconds. For details, please see maxResponseTime.
Default value: ""
Wrp.maxDecodingRate
Specifies the maximum RT. For details, please see maxDecodingRate.
Default value: ""
Wrp.targetResponseTime
Specifies the target response time in milliseconds. For details, please see targetResponseTime.
Default value: ""
Wrp.targetDecodingRate
Specifies the target RT. For details, please see targetDecodingRate.
Default value: ""
Wrp.noInputTimeout
Specifies the speech start timeout for waiting for speech to begin. The unit is milliseconds. For details, please see noInputTimeout.
Initial value: ""
Wrp.recognitionTimeout
Specifies the recognition completion timeout in milliseconds. For details, please see recognitionTimeout.
Default value: ""
Wrp.extension
Specifies the usage aggregation tag. For details, please see Usage Aggregation Tags.
Default 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 MyPage of this service.
Default value: null
Wrp.spw
Sets the service password when obtaining a one-time APPKEY (service authentication key string). The service password is listed on MyPage of this service.
Default 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.
Default value: null