Skip to content

Commit

Permalink
samples: updated legacy field in detectintentaudio (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
b-loved-dreamer authored May 25, 2021
1 parent 436bd5c commit 1113c82
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ public static QueryResult detectIntentAudio(
System.out.format(
"Detected Intent: %s (confidence: %f)\n",
queryResult.getIntent().getDisplayName(), queryResult.getIntentDetectionConfidence());
System.out.format("Fulfillment Text: '%s'\n", queryResult.getFulfillmentText());
System.out.format(
"Fulfillment Text: '%s'\n",
queryResult.getFulfillmentMessagesCount() > 0
? queryResult.getFulfillmentMessages(0).getText()
: "Triggered Default Fallback Intent");

return queryResult;
}
Expand Down

0 comments on commit 1113c82

Please sign in to comment.