Skip to main content

Hrp Properties

caution

These are the properties of the HRP library included in Sample Program 1.1.2 and later.

Hrp.version

Gets the version of the library in use. Used as read-only.

Default value: "Library version set at the time of sample shipment"

Hrp.serverURL

Specifies the URL of the speech recognition server.

The connection destinations for this service are as follows:

https://acp-api.amivoice.com/v1/recognize    (logging)

https://acp-api.amivoice.com/v1/nolog/recognize (no logging)

Default value: window.location.protocol + "//" + window.location.host + window.location.pathname

Hrp.grammarFileNames

Specifies the connection engine name.

Default value: "-"

Hrp.authorization

Specifies the APPKEY. It must be set before calling feedDataResume().

Default value: null

Hrp.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 the My Page 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 the My Page as the profileId.

Default value: ""

Hrp.profileWords

Sets the notation and reading of words you want to register.

Default value: ""

Hrp.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.

Default value: null

Hrp.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.

Default value: null

Hrp.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