You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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]
}
}
}
The text was updated successfully, but these errors were encountered: