Create or Update ASR Properties for a Language
Creates or updates properties of classic ASR and context ASR for a given language.
Endpoint
Method: PUT
URL: https://uselfserve-<tenant-name>.uniphore.com/cse/connector/asrProperty/{language}
curl -X PUT "http://localhost:port/connector/asrProperty/English-US" -H "accept: text/plain" -H "Authorization: Bearer <token>" -H "Content-Type: application/json" -d "{ "url": "wss://hostname:port", "contenderUrl": "wss://hostname:port/en-us", "considerOnlyFinal": true, "bufferSize": 8160, "passThreshold": 0, "failThreshold": 0, "worldLevelThreshold": 0, "wordPassPercentage": 0, "contextAsrUrl": "wss://hostname:port", "contextAsrConsiderOnlyFinal": true, "contextAsrBufferSize": 8160, "contextAsrPassThreshold": 0, "contextAsrFailThreshold": 0, "contextAsrWorldLevelThreshold": 0, "contextAsrWordPassPercentage": 0 }"
Warning
Do not change any Parameter Value when a call is in progress.
Header Parameter
Authorization - Bearer <Token>
Path Parameter
Path Parameter Name | Data Type | Description | Required/ Optional |
---|---|---|---|
language | String | Language for which ASR properties need to be created or updated. | Required |
Request Parameter
Request Parameter Name | Data Type | Description | Required/ Optional |
---|---|---|---|
| String | The classic ASR URL of the language. | Required |
| String | The additional ASR URL of the language. The ASR traffic can be divided between the | Optional. |
| Number | The default value is 4076 which represents the size of the packet to be sent to classic ASR. Always use the given default value. Do not modify the value unless required. | Required |
| String | Discards the partial transcripts sent by classic ASR and uses the final transcript only. To enable the feature, the value is set to true by default. Do not modify the value. | Required |
| Number | Enter the default value 0 (zero). Do not modify the default value unless required. If the over all confidence returned by classic ASR for a turn is less than the given value then the transcription is discarded. | Required |
| Number | Enter the default value 0 (zero). Do not modify the default value unless required. If the over all confidence returned by classic ASR for a turn is more than or equal to the given value then the transcription is processed. | Required |
| Number | Enter the default value 0 (zero). Do not modify the default value unless required.
The Threshold percentage returned by the classicASR for each word in a turn. | Required |
| Number | Enter the default value 0 (zero). Do not modify the default value unless required.
Example: (Number of of words with the confidence higher than Total number of words returned by classic ASR is 10. Number of of words with the confidence higher than The | Required |
| String | The context ASR URL of the language. | Required |
| Number | The default value is 4076 which represents the size of the packet to be sent to context ASR. Always use the given default value. Do not modify the value unless required. | Required |
| String | Discards the partial transcripts sent by context ASR and uses the final transcript only. To enable the feature, the value is set to True by default. Do not modify the value. | Required |
| Number | Enter the default value 0 (zero). Do not modify the default value unless required. When the over all confidence returned by context ASR for a turn is less than the given value, the transcription is discarded. | Required |
| Number | Enter the default value 0.5. Do not modify the default value unless required. When the over all confidence returned by context ASR for a turn is more than or equal to the given value, the transcription is processed. | Required |
| Number | Enter the default value 0 (zero). Do not modify the default value unless required.
The Threshold percentage returned by the context ASR for each word in a turn. | Required |
| Number | Enter the default value 0 (zero). Do not modify the default value unless required.
Example: (Number of of words with the confidence higher than Total number of words returned by context ASR is 10. Number of of words with the confidence higher than The | Required |
Response and Error Codes
Response Code | Condition |
---|---|
200 | OK |
401 | Unauthorized |
403 | Forbidden |
500 | Internal Sample Error |
Note
With the error codes, a summary containing the reason for failure is provided.