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 API key. It must be set before calling feedDataResume().

Default value: ""

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 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 Account Information on MyPage as the profileId.

Default value: ""

Hrp.profileWords​

Sets the written and the spoken of words you want to register.

Default value: ""

Hrp.segmenterProperties​

Specifies parameters related to the ease of detecting speech segments and speaker diarization. For details on the parameters, please see segmenterProperties.

Default value: ""

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

Hrp.maxDecodingTime​

Specifies the maximum recognition processing time in milliseconds. For details, please see maxDecodingTime.

Default value: ""

Hrp.maxResponseTime​

Specifies the maximum response time in milliseconds. For details, please see maxResponseTime.

Default value: ""

Hrp.maxDecodingRate​

Specifies the maximum RT. For details, please see maxDecodingRate.

Default value: ""

Hrp.targetResponseTime​

Specifies the target response time in milliseconds. For details, please see targetResponseTime.

Default value: ""

Hrp.targetDecodingRate​

Specifies the target RT. For details, please see targetDecodingRate.

Default value: ""

Hrp.recognitionTimeout​

Specifies the recognition completion timeout in milliseconds. For details, please see recognitionTimeout.

Default value: ""

Hrp.extension​

Specifies the usage aggregation tag. For details, please see Usage Aggregation Tag.

Default value: ""

Hrp.sid​

Sets the service ID when obtaining an API key (service authentication key string). The service ID is listed on MyPage of this service. However, for accounts created after the MyPage renewal on 2025/06/30, the service ID is not displayed on MyPage.

Default value: null

Hrp.spw​

Sets the service password when obtaining an API key (service authentication key string). The service password is listed on MyPage of this service. However, for accounts created after the MyPage renewal on 2025/06/30, the service password is not displayed on MyPage.

Default value: null

Hrp.epi​

Sets the validity period (in milliseconds) when obtaining an API key (service authentication key string). If this value is not set, the API key with a validity period of 30 seconds (30000ms), which is the default value of the API key issuance service, will be issued.

Default value: null