Getting recognition results on nomatch event

Last Updated : Jan 13, 2020 |

If you use Nuance speech servers with the default configuration, and when the application receives a <nomatch> event in response to a recognition request, the application variable application.lastresult$ is not updated with recognition results.

For the application to receive recognition results when a nomatch event is generated, the Nuance speech servers must use NSS or NRec . Additionally, you must perform the following procedure on each Nuance speech server.

For more information on speech server versions, see Avaya Experience Portal Overview and Specification.

Proposed Solution

Procedure

  1. For a Nuance Speech Server running on Linux:
    1. On the Nuance server, open the file $NSSSVRSDK/config/NSSserver.cfg in a text editor.
    2. Locate the line that reads as follows:
      server.mrcp2.osrspeechrecog.mrcpdefaults.VSP.server.osrspeechrecog.result.sendnomatch
    3. Change the line to read as follows:
      server.mrcp2.osrspeechrecog.mrcpdefaults.VSP.server.osrspeechrecog.result.sendnomatch VXIString true
      Note:

      Ensure that you enter the text in a single line.

      Remove the # character at the beginning of the line, if it is present, to uncomment it.

    4. Locate the line that reads as follows:

      server.mrcp1.osrspeechrecog.result.sendnomatch

    5. Change the line to read as follows:
      server.mrcp1.osrspeechrecog.result.sendnomatch VXIString true
      Note:

      Ensure that you enter the text in a single line.

      Remove the # character at the beginning of the line, if it is present, to uncomment it.

    6. Save and close the file.
    7. Open the file $SWISRSDK/config/Baseline.xml in a text editor.
    8. If you use NRec 9.0.11 or 9.0.12, find the series of lines beginning with the following:
      <param name="swisr_result_enable_speech_mode">
    9. Change the series of lines to read as follows:
      <param name="swisr_result_enable_speech_mode">
          <value>1</value>
      </param>
    10. Save and close the file.
    11. If you use NRec 9.0.13 or later, find the series of lines beginning with the following:
      <param name="swirec_result_enable_speech_mode">
    12. Change the series of lines to read as follows:
      <param name="swirec_result_enable_speech_mode">
          <value>1</value>
      </param>
    13. Save and close the file.
    14. Restart the Nuance server.

    For more information on speech server versions, see Avaya Experience Portal Overview and Specification.

  2. For a Nuance Speech Server running on Windows:
    1. On the Nuance server, open the file %NSSSVRSDK%\config\NSSserver.cfg in a text editor.
    2. Locate the line that reads as follows:
      server.mrcp2.osrspeechrecog.mrcpdefaults.VSP.server.osrspeechrecog.result.sendnomatch
    3. Change the line to read as follows:
      server.mrcp2.osrspeechrecog.mrcpdefaults.VSP.server.osrspeechrecog.result.sendnomatch VXIString true
      Note:

      Ensure that you enter the text in a single line.

      Remove the # character at the beginning of the line, if it is present, to uncomment it.

    4. Locate the line that reads as follows:

      server.mrcp1.osrspeechrecog.result.sendnomatch

    5. Change the line to read as follows:
      server.mrcp1.osrspeechrecog.result.sendnomatch VXIString true
      Note:

      Ensure that you enter the text in a single line.

      Remove the # character at the beginning of the line, if it is present, to uncomment it.

    6. Save and close the file.
    7. Open the file %SWISRSDK%\config\Baseline.xml in a text editor.
    8. If you use NRec 9.0.11 or 9.0.12, find the series of lines beginning with the following:
      <param name="swisr_result_enable_speech_mode">
    9. Change the series of lines to read as follows:
      <param name="swisr_result_enable_speech_mode">
          <value>1</value>
      </param>
    10. Save and close the file.
    11. If you use NRec 9.0.13 or later, find the series of lines beginning with the following:
      <param name="swirec_result_enable_speech_mode">
    12. Change the series of lines to read as follows:
      <param name="swirec_result_enable_speech_mode">
          <value>1</value>
      </param>
    13. Save and close the file.
    14. Restart the Nuance server.

    For more information on speech server versions, see Avaya Experience Portal Overview and Specification.