Genesys Engage on-premises

 View Only

Discussion Thread View
  • 1.  Integration with speech server through MRCPV2 protocol

    Posted 01-24-2020 08:45
    Hi Team,

    I am using MRCPV2 protocol to integrate our callflow with speech servers. Now,i want to set SPEECH Language parameter dynamically in SET-PARAMS method. I have tried to set it with APP_ASR_Language and APP_Language variables but then also SPEECH Language is set as en-US (default).Please let me know if there is any way to set it dynamically.Below is request from MRCP Client to MRCP Server.

    asr-default-3 15972 06900000 Sending Message on -34985232: MRCP/2.0 331 SET-PARAMS 12
    Channel-Identifier:3eaa0c4c6d224b79@speechrecog
    Speech-Language: en-US
    Confidence-Threshold: 0.500000
    Sensitivity-Level: 0.500000
    Speed-Vs-Accuracy: 0.500000
    N-Best-List-Length: 1
    No-Input-Timeout: 4000
    Recognition-Timeout: 60000
    Speech-Complete-Timeout: 400
    Speech-Incomplete-Timeout: 1000
    #Integrations
    #Routing(ACD/IVR)

    ------------------------------
    SACHIN GUPTA
    Moksa Technologies Pvt. Ltd.
    ------------------------------


  • 2.  RE: Integration with speech server through MRCPV2 protocol

    GENESYS
    Posted 01-24-2020 08:47
    Hey Sachin,

    I think your post was accidentally sent to moderation. Apologies for that. The user who did it wanted to share the following reply: 

    Try global properyies in entry block OR Try to use setlanguage block before prompt block NOT SURE if working but provide some ideas.

    Cheers,

    ------------------------------
    Matt Lawson
    Genesys - Employees
    Online Community Manager
    ------------------------------



  • 3.  RE: Integration with speech server through MRCPV2 protocol

    Posted 01-25-2020 02:54
    Hi ,
     
    Thanks but i have tried both by setting global properties but it only accepts static value. I have tried using APP_ASR_Language variable also and also tried set language block. It is only setting dynamic value of locale from where all relevant prompts and file to be fetched.The SPEECH-LANGUAGE is en-US in SET-PARAMS request after that also.

    ------------------------------
    SACHIN GUPTA
    Moksa Technologies Pvt. Ltd.
    ------------------------------



  • 4.  RE: Integration with speech server through MRCPV2 protocol

    Posted 01-25-2020 12:14
    What you are saying is that even when you change the language, EN-us is always used? Can you please share your VXML code snippet? Some MCP logs showing the call too. 
    I have done this previously and the MRCP version has nothing to do, it is the VXML code creation only.

    ------------------------------
    Jorge Cornejo
    VS Telecom LTDA.
    ------------------------------



  • 5.  RE: Integration with speech server through MRCPV2 protocol

    Posted 01-27-2020 01:12
      |   view attached
    Hi Jorge, 

    In below logs it is clearly visible that language opted is en-IN but after that also SPEECH-LANGUAGE in SET-PARAMS and RECOGNIZE request is en-US. 
    I have highlighted the same also.I have also attached the snapshot of IVR code.


    0-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000000 VXMLCallLeg.cxx:4309 VXMLCallLeg::HandlePlayAndCollect
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000000 PromptSession.cxx:121 LogPrompts() Prompt: http://10.26.16.81/GVPApps/ASR_Testing/Resources/Prompts/en-IN/RECORD_BANK_ACCOUNT_REQUEST_STATEMENT_CONFIRMATION_en.wav Next:
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000000 PromptSession.cxx:130 LogPrompts() Alternative:
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 03A00000 VGDTMFRecognitionThread.C:532 DropBufferedDigits(): Session ID: 4.
    2020-01-27T10:55:24.772 Int 50018 020201E2-100083AC 30400 prompt
    2020-01-27 10:55:24.772 DBUG 00000000-00000000 9548 00600000 ReportingClient.cpp:351 sendUpstream(): Queuing upstream message: 6|AppID=215|ST=1580102686661|VARsequenceID=33|18|020201E2-100083AC|1580102724772|
    2020-01-27 10:55:24.772 DBUG 00000000-00000000 9548 0A000000 Call.cpp:406 processMetric(): got metric prompt, ts 2020-01-27/10:55:24
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000000 PromptSession.cxx:189 GetNextPrompt() Playing 0x26e2fdb0
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000000 PromptSession.cxx:1045 Using streaming value: 0
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000000 VXMLFetchHelper.cxx:32 VXMLFetchHelper::VXMLFetchHelper[0000000026D97470]
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000000 VXMLFetchObject.cxx:31 VXMLFetchObject() Create VXMLFetchObject 0x26d97470
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-00000173 34812 01F00000 FMThreadQueue.cxx:1385 Processing ReleaseRequest
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-00000173 34812 01F00000 FMUserRequest.cxx:140 Deleting Request
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000000 VXMLInstance.cxx:765 Fetching Document http://10.26.16.81/GVPApps/ASR_Testing/Resources/Prompts/en-IN/RECORD_BANK_ACCOUNT_REQUEST_STATEMENT_CONFIRMATION_en.wav
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000000 VXMLFetchManager.cxx:195 Using FM:CreateRequest as streaming is 0
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-00000174 30400 01F00000 FMUserResponse.cxx:30 UserResponse created. 2a68a5f0
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000500 VXMLFetchManager.cxx:313 Fetching document, uri: http://10.26.16.81/GVPApps/ASR_Testing/Resources/Prompts/en-IN/RECORD_BANK_ACCOUNT_REQUEST_STATEMENT_CONFIRMATION_en.wav, nMaxage: -1, nMaxstale: 0, enctype: (null), post: false, timeout: 30000
    2020-01-27 10:55:24.772 DBUG 00000000-00000000 9548 0A000000 Call.cpp:406 processMetric(): got metric fetch_start, ts 2020-01-27/10:55:24
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000000 VXMLCallLeg.cxx:4390 Start Speech Reco
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 30400 0C000000 VXMLCallLeg.cxx:5806 ASR Grammar 0: http://10.26.16.81/GVPApps/ASR_Testing/Resources/Grammars/en-IN/citystate.grxml 0
    2020-01-27 10:55:24.772 DBUG 00000000-00000000 9740 01C00000 CMMsgBase.h:186 cmapi.msg: CM_MSG_DIALOG_APP_NEW_ASR_START -
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-00000174 34812 01F00000 FMThreadQueue.cxx:1057 Processing GET request, URL: http://10.26.16.81/GVPApps/ASR_Testing/Resources/Prompts/en-IN/RECORD_BANK_ACCOUNT_REQUEST_STATEMENT_CONFIRMATION_en.wav
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 9740 01C00000 CMASRSession.C:606 CMASRSession::StartSession, m_MediaState = 1, m_RecognizerState = 2, m_SessionState = 1, m_strEngine= default, strEngineName= default, strEngineUri=, bPauseStream = true
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-00000174 34812 01F00000 FMThreadQueue.cxx:1180 Not found in cache
    2020-01-27 10:55:24.772 DBUG 00000000-00000000 9740 01C00000 ASRSetupHelper.C:70 Entering PARSERECOGINFO 1

    2020-01-27 10:55:24.772 DBUG 00000000-00000000 9740 01C00000 ASRSetupHelper.C:128 Getting Grammar Type 0 and context http://10.26.16.81/GVPApps/ASR_Testing/Resources/Grammars/en-IN/citystate.grxml

    2020-01-27 10:55:24.772 DBUG 00000000-00000000 9740 01C00000 CMASRSession.C:90 ClearAllDigits - m_strDTMFBuffer=
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC 9740 01C00000 CMASRSession.C:2217 CMASRSession::LoadASR
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:1390 In ASR Set Params
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2Session.C:78 Checking the request for 13
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2Session.C:153 Getting the ASR state
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2Session.C:165 State is valid.
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:1425 Calling Translate ASR SetParam Args
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-00000174 34812 01F00000 FMThreadQueue.cxx:461 Found bundle for host 10.26.16.81: 0x29e0c20 [can pipeline]

    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:2448 Setting Language en-US
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:2456 Setting Incompletetimeout 1000
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:2463 Setting Complete 400
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:2480 Adjusting MaxSpeechTimeout to 60000
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:2488 Setting Sensitivity 50
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-00000174 34812 01F00000 FMThreadQueue.cxx:461 Re-using existing connection! (#3) with host 10.26.16.81

    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:2495 Setting SpeedVSAccurarcy 50
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:2509 Setting NBest 1
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-00000174 34812 01F00000 FMThreadQueue.cxx:461 Connected to 10.26.16.81 (10.26.16.81) port 80 (#3)

    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:2524 Setting Confidence Threshold 50
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:1859 Setting vendor specific parameter: loadgrammartimeout 30s
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:1859 Setting vendor specific parameter: bargeintype speech
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:1461 Calling SetParam Request SetContent
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:1468 Adding Set Param request to request manager
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:973 Running ASR Load Grammar
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2Session.C:78 Checking the request for 12
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2Session.C:153 Getting the ASR state
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2Session.C:165 State is valid.
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:2107 Setting fetchtimeout 30000
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:2113 Setting language en-US
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 15972 06900000 Mrcpv2Stack.C:378 Sending SetParams. MsgId[17]...
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:2144 Setting Maxstale 0
    2020-01-27 10:55:24.772 DBUG 020201E2-100083AC-asr-default-5 9740 06B00000 MRCPV2ClientLibrary.C:1084 Load Gramamr Received Grammar ID: 0x00000002 mimeType: text/uri-list Content: URI is: http://10.26.16.81/GVPApps/ASR_Testing/Resources/Grammars/en-IN/citystate.grxml
    2020-01-27T10:55:24.772 Trc 20001 INFO 020201E2-100083AC-asr-default-5 15972 06900000 Sending Message on -34985232: MRCP/2.0 331 SET-PARAMS 17
    Channel-Identifier:204400ff5a4248e6@speechrecog
    Speech-Language: en-US
    Confidence-Threshold: 0.500000
    Sensitivity-Level: 0.500000
    Speed-Vs-Accuracy: 0.500000
    N-Best-List-Length: 1
    No-Input-Timeout: 4000
    Recognition-Timeout: 60000
    Speech-Complete-Timeout: 400
    Speech-Incomplete-Timeout: 1000



    ------------------------------
    SACHIN GUPTA
    Moksa Technologies Pvt. Ltd.
    ------------------------------



  • 6.  RE: Integration with speech server through MRCPV2 protocol

    Posted 01-27-2020 11:58
    Ok but at your ASR block:

    <form id="IN_Loja">
            
            	        
            <script srcexpr="AppState.VOXFILEDIR + '/PromptSwitch.js'" />
            <script srcexpr="AppState.VOXFILEDIR + '/' + 'pt-BR' + '/' + 'pt-BR' + '.js'" />
            <block>
    	        <script>
    	            AppState.PREV_APP_LANGUAGE = AppState.APP_LANGUAGE;
    	            AppState.PREV_APP_ASR_LANGUAGE = AppState.APP_ASR_LANGUAGE;
    	            AppState.APP_LANGUAGE = 'pt-BR';
    	            AppState.APP_ASR_LANGUAGE = 'pt-BR';
    	        </script>
            </block>
    How is yours?

    ------------------------------
    Jorge Cornejo
    VS Telecom LTDA.
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources