Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming Detect Intent Responding Failure #8

Open
ameenfarook opened this issue Aug 24, 2020 · 0 comments
Open

Streaming Detect Intent Responding Failure #8

ameenfarook opened this issue Aug 24, 2020 · 0 comments

Comments

@ameenfarook
Copy link

ameenfarook commented Aug 24, 2020

For streaming detect intent api, i got response from webhook for initial request with empty outputAudio but after a second another response came with empty webhookPayload but this time with outputAudio. Why is this happening ? I want a single response that contains my webhookPayload and outputAudio.

Initial response with my custom webhookPayload

{
responseId: ----',
recognitionResult: null,
queryResult: {
fulfillmentMessages: [ [Object] ],
outputContexts: [ [Object] ],
queryText: 'how is the weather at Chicago',
speechRecognitionConfidence: 0,
action: '',
parameters: { fields: [Object] },
allRequiredParamsPresent: true,
fulfillmentText: 'The current temperature of Chicago is 73.20°F and it feels like 75.81°F. The minimum temperature is 71.01°F and the Maximum temperature is 75.00°F.',
webhookSource: '',
webhookPayload: { fields: [Object] },
intent: {
inputContextNames: [],
events: [],
trainingPhrases: [],
outputContexts: [],
parameters: [],
messages: [],
defaultResponsePlatforms: [],
followupIntentInfo: [],
name: 'projects/-----/agent/intents/----',
displayName: 'weather',
priority: 0,
isFallback: false,
webhookState: 'WEBHOOK_STATE_UNSPECIFIED',
action: '',
resetContexts: false,
rootFollowupIntentName: '',
parentFollowupIntentName: '',
mlDisabled: false
},
intentDetectionConfidence: 0.7056750655174255,
diagnosticInfo: { fields: [Object] },
languageCode: 'en',
sentimentAnalysisResult: null
},
webhookStatus: { details: [], code: 0, message: 'Webhook execution successful' },
outputAudio: ,
outputAudioConfig: {
audioEncoding: 'OUTPUT_AUDIO_ENCODING_LINEAR_16',
sampleRateHertz: 0,
synthesizeSpeechConfig: {
effectsProfileId: [],
speakingRate: 0,
pitch: 0,
volumeGainDb: 0,
voice: [Object]
}
}
}

The second response with audio but queryResult is null

{
responseId: '',
recognitionResult: null,
queryResult: null,
webhookStatus: null,
outputAudio: <Buffer 52 49 46 46 e8 ee 0c 00 57 41 56 45 66 6d 74 20 10 00 00 00 01 00 01 00 c0 5d 00 00 80 bb 00 00 02 00 10 00 64 61 74 61 c4 ee 0c 00 00 00 00 00 00 00 ... 847550 more bytes>,
outputAudioConfig: {
audioEncoding: 'OUTPUT_AUDIO_ENCODING_LINEAR_16',
sampleRateHertz: 0,
synthesizeSpeechConfig: {
effectsProfileId: [],
speakingRate: 0,
pitch: 0,
volumeGainDb: 0,
voice: [Object]
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant