Test ServerΒΆ
Use the command cpqdasr-test
to run a speech recognition test and evaluate if the ASR server is working properly. Follow the instructions below:
Warning
To perform the recognition test, the CPQD ASR service must be running and you must have the needed licenses to perform the test. See how to start the CPQD ASR and to verify its operational status in the section Start Server.
1) Open a console on the machine where the ASR server has been installed
2) Run cpqdasr-test
Run
cpqdasr-test
. In the following example, the CPQD ASR was installed together with the acoustic model and free speech model (SLM) for Brazilian Portuguese, with 8 kHz audio, as can be seen in the highlighted lines:$ cpqdasr-test === Recognition test === Created: 2018-12-04T11:02:47+0000 Language: ptbr Audio sampling rate: 8kHz SLM enabled: builtin:slm/general >> Testing grammar: OK >> Testing SLM: OK
3) Check the test results
Check the data returned by the
cpqdasr-test
command. The command presents some general information and the results of a speech recognition test using grammar (Testing grammar) and using a free speech model (Testing SLM).$ cpqdasr-test === Recognition test === Created: 2018-12-04T11:02:47+0000 Language: ptbr Audio sampling rate: 8kHz SLM enabled: builtin:slm/general >> Testing grammar: OK >> Testing SLM: OKIf the free speech model (SLM) has not been installed, the result will display only the result of the grammar test, and the SLM will be shown as disabled:
=== Recognition test === Created: 2018-12-04T11:04:29+0000 Language: ptbr Audio sampling rate: 8kHz SLM enabled: -- >> Testing grammar: OKThe test is performed according to the installed language package (Portuguese or Spanish, for example), as well as the audio sampling rate.
4) Warning messages
This command can also display warning messages (WARNING MESSAGES Section) that users need to check to determine if they are critical or not. In the example, the free speech model is installed, but has not been enabled to be preloaded.
##### WARNING MESSAGES ##### * Found an SLM package installed but it is not configured using '--lm.preloadModels' property in 'engine.conf' file