" /> Access ASR attributes through GVP - Genesys CTI User Forum

Author Topic: Access ASR attributes through GVP  (Read 1828 times)

Offline gkhnvrl

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Access ASR attributes through GVP
« on: February 28, 2017, 12:46:03 PM »
Advertisement
Hi all,

We're developing our newly voicexml with ASR integration. Infact, we've done many and have no problem with our 3prd party ASR. However, there's a case that we're challenging.

[b]Our ASR server returns the xml below.[/b]
<Prompt>
<speak><audio src="http://testserver/FileHelper/PlayAnnounceFile?treeName=Testbank&amp;treeVersion=3&amp;fileName=test.wav">Welcome to test bank</audio></speak>
</Prompt>
[b]
However, I cant access audio attribute through compser. I may just access those ones :[/b]
Prompt={speak={audio=Welcome to test bank;audio$={confidence=9900000.050000}};speak$={confidence=9900000.050000}};Prompt$={confidence=9900000.250000};

I need to get "src" attribute and send it to our TTS engine. According to "Genesys Voice Platform 8.1 Legacy Genesys VoiceXML 2.1" doc, I've done necessary steps. Any suggestion will be appreciated.

2017-02-28T15:01:12.444 Int 50026 00CA018B-10008409 15136 asr_trace ASR_DONE:results:<?xml version="1.0"?><result xmlns="http://www.ietf.org/xml/ns/mrcpv2"><interpretation grammar="session:0x0000000d" confidence="99"><input mode="speech">bilgi guncelleme</input><instance><RecognitionResult>bilgi guncelleme</RecognitionResult><callsteering><CallSteeringResultType>EXACT_MATCH</CallSteeringResultType><ExtNodeId>3000</ExtNodeId><IsAllSlotsCollected></IsAllSlotsCollected><IsCustomerConfirmed></IsCustomerConfirmed><IsDialogCompleted>1</IsDialogCompleted><MatchScore>100</MatchScore><MatchingPhraseNodeExtIds></MatchingPhraseNodeExtIds><MatchingPhrases></MatchingPhrases><MatchingTermPlaces>Self|Self</MatchingTermPlaces><MatchingTerms>bilgi|guncellemek</MatchingTerms><NodeId>484</NodeId><NodeText>Bilgi Guncelleme</NodeText><NonTerms></NonTerms><Prompt><speak><audio src="http://127.0.0.1/FileHelper/PlayAnnounceFile?treeName=TestBank&amp;treeVersion=3&amp;fileName=test.wav">Welcome the testbank</audio></speak></Prompt><PromptFilePaths>C:\Program Files\asrvendor\CallSteering\VoiceFiles\Announces\TestBank\3\test.wav</PromptFilePaths><PromptTags></PromptTags><PromptText>Welcome the testbank</PromptText><PromptType>Normal</PromptType><RepeatCount>0</RepeatCount><SeamlessAgentResult>NotUsed</SeamlessAgentResult><SearchingTerms>bilgi guncellemek</SearchingTerms><TermsAndNonTerms>bilgi guncellemek</TermsAndNonTerms></callsteering></instance></interpretation></result>

2017-02-28T15:01:12.444 Int 50025 00CA018B-10008409 15136 input_end MATCHED|voice|Field|external|bilgi guncelleme|99.000000
2017-02-28T15:01:12.445 Int 50076 00CA018B-10008409 15136 filling :InputCS.InputCSField:Field:{RecognitionResult=bilgi guncelleme;RecognitionResult$={confidence=990000.000000};callsteering={CallSteeringResultType=EXACT_MATCH;CallSteeringResultType$={confidence=9900000.250000};ExtNodeId=3000;ExtNodeId$={confidence=9900000.250000};IsAllSlotsCollected$={confidence=9900000.250000};IsCustomerConfirmed$={confidence=9900000.250000};IsDialogCompleted=1;IsDialogCompleted$={confidence=9900000.250000};MatchScore=100;MatchScore$={confidence=9900000.250000};MatchingPhraseNodeExtIds$={confidence=9900000.250000};MatchingPhrases$={confidence=9900000.250000};MatchingTermPlaces=Self|Self;MatchingTermPlaces$={confidence=9900000.250000};MatchingTerms=bilgi|guncellemek;MatchingTerms$={confidence=9900000.250000};NodeId=484;NodeId$={confidence=9900000.250000};NodeText=Bilgi Guncelleme;NodeText$={confidence=9900000.250000};NonTerms$={confidence=9900000.250000};Prompt={speak={audio=Welcome the testbank;audio$={confidence=9900000.050000}};speak$={confidence=9900000.050000}};Prompt$={confidence=9900000.250000};PromptFilePaths=C:\Program Files\asrvendor\CallSteering\VoiceFiles\Announces\TestBank\3\test.wav;PromptFilePaths$={confidence=9900000.250000};PromptTags$={confidence=9900000.250000};PromptText=Welcome the testbank;PromptText$={confidence=9900000.250000};PromptType=Normal;PromptType$={confidence=9900000.250000};RepeatCount=0;RepeatCount$={confidence=9900000.250000};SeamlessAgentResult=NotUsed;SeamlessAgentResult$={confidence=9900000.250000};SearchingTerms=bilgi guncellemek;SearchingTerms$={confidence=9900000.250000};TermsAndNonTerms=bilgi guncellemek;TermsAndNonTerms$={confidence=9900000.250000}};callsteering$={confidence=990000.000000}}

2017-02-28T15:01:12.445 Int 50032 00CA018B-10008409 15136 filled_enter all:InputCSField
2017-02-28T15:01:12.447 Int 50033 00CA018B-10008409 15136 goto :#AssignLogDataCsAnonunce

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7641
  • Karma: 56330
Re: Access ASR attributes through GVP
« Reply #1 on: February 28, 2017, 01:46:44 PM »
So...seems you forgot to ask the question

Enviado de meu E6633 usando Tapatalk


Offline gkhnvrl

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
Re: Access ASR attributes through GVP
« Reply #2 on: March 01, 2017, 06:17:15 AM »
:)

I can get the element values but not attributes. I'm trying to get "src" attribute of audio element, but I still have not succeeded. So, the question is "how to get element attributes of ASR-Result xml"

In the GVP logs, I see whole xml. But GVP somehow pre-parse it and skip the attribute and just delivered the element values.
As you see in the log starting with "asr_trace ASR_DONE" , the url starting with "http://testserver/...." not seen there.

Adding screenshot of input object and assign object, hope the question is clear now.

GVP 8.5.170  /  VoiceXML 2.1

http://imgur.com/kb1fHyJ

http://imgur.com/JvaOcEn
« Last Edit: March 01, 2017, 11:37:11 AM by gkhnvrl »