Skip to content

Commit

Permalink
feat(dialogflow): update the API
Browse files Browse the repository at this point in the history
#### dialogflow:v2beta1

The following keys were added:
- schemas.GoogleCloudDialogflowV2beta1BargeInConfig.description
- schemas.GoogleCloudDialogflowV2beta1BargeInConfig.id
- schemas.GoogleCloudDialogflowV2beta1BargeInConfig.properties.noBargeInDuration.description
- schemas.GoogleCloudDialogflowV2beta1BargeInConfig.properties.noBargeInDuration.format
- schemas.GoogleCloudDialogflowV2beta1BargeInConfig.properties.noBargeInDuration.type
- schemas.GoogleCloudDialogflowV2beta1BargeInConfig.properties.totalDuration.description
- schemas.GoogleCloudDialogflowV2beta1BargeInConfig.properties.totalDuration.format
- schemas.GoogleCloudDialogflowV2beta1BargeInConfig.properties.totalDuration.type
- schemas.GoogleCloudDialogflowV2beta1BargeInConfig.type
- schemas.GoogleCloudDialogflowV2beta1InputAudioConfig.properties.bargeInConfig.$ref
- schemas.GoogleCloudDialogflowV2beta1InputAudioConfig.properties.bargeInConfig.description
- schemas.GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest.properties.assistQueryParams.$ref
- schemas.GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest.properties.assistQueryParams.description
  • Loading branch information
yoshi-automation authored and sofisl committed Feb 10, 2023
1 parent 85a06ee commit a313a0d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
27 changes: 26 additions & 1 deletion discovery/dialogflow-v2beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7507,7 +7507,7 @@
}
}
},
"revision": "20230130",
"revision": "20230209",
"rootUrl": "https://dialogflow.googleapis.com/",
"schemas": {
"GoogleCloudDialogflowCxV3AudioInput": {
Expand Down Expand Up @@ -13865,6 +13865,23 @@
},
"type": "object"
},
"GoogleCloudDialogflowV2beta1BargeInConfig": {
"description": "Configuration of the barge-in behavior. Barge-in instructs the API to return a detected utterance at a proper time while the client is playing back the response audio from a previous request. When the client sees the utterance, it should stop the playback and immediately get ready for receiving the responses for the current request. The barge-in handling requires the client to start streaming audio input as soon as it starts playing back the audio from the previous response. The playback is modeled into two phases: * No barge-in phase: which goes first and during which speech detection should not be carried out. * Barge-in phase: which follows the no barge-in phase and during which the API starts speech detection and may inform the client that an utterance has been detected. Note that no-speech event is not expected in this phase. The client provides this configuration in terms of the durations of those two phases. The durations are measured in terms of the audio length fromt the the start of the input audio. The flow goes like below: --> Time without speech detection | utterance only | utterance or no-speech event | | +-------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-+ barge-in +-|-+ normal period +----------- +-------------+ | +------------+ | +---------------+ No-speech event is a response with END_OF_UTTERANCE without any transcript following up.",
"id": "GoogleCloudDialogflowV2beta1BargeInConfig",
"properties": {
"noBargeInDuration": {
"description": "Duration that is not eligible for barge-in at the beginning of the input audio.",
"format": "google-duration",
"type": "string"
},
"totalDuration": {
"description": "Total duration for the playback at the beginning of the input audio.",
"format": "google-duration",
"type": "string"
}
},
"type": "object"
},
"GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest": {
"description": "The request message for EntityTypes.BatchCreateEntities.",
"id": "GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest",
Expand Down Expand Up @@ -15401,6 +15418,10 @@
],
"type": "string"
},
"bargeInConfig": {
"$ref": "GoogleCloudDialogflowV2beta1BargeInConfig",
"description": "Configuration of barge-in behavior during the streaming of input audio."
},
"disableNoSpeechRecognizedEvent": {
"description": "Only used in Participants.AnalyzeContent and Participants.StreamingAnalyzeContent. If `false` and recognition doesn't return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.",
"type": "boolean"
Expand Down Expand Up @@ -17893,6 +17914,10 @@
"description": "The request message for Conversations.SuggestConversationSummary.",
"id": "GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest",
"properties": {
"assistQueryParams": {
"$ref": "GoogleCloudDialogflowV2beta1AssistQueryParameters",
"description": "Parameters for a human assist query."
},
"contextSize": {
"description": "Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 500 and at most 1000.",
"format": "int32",
Expand Down
23 changes: 23 additions & 0 deletions src/apis/dialogflow/v2beta1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3331,6 +3331,19 @@ export namespace dialogflow_v2beta1 {
*/
responseMessages?: Schema$GoogleCloudDialogflowV2beta1ResponseMessage[];
}
/**
* Configuration of the barge-in behavior. Barge-in instructs the API to return a detected utterance at a proper time while the client is playing back the response audio from a previous request. When the client sees the utterance, it should stop the playback and immediately get ready for receiving the responses for the current request. The barge-in handling requires the client to start streaming audio input as soon as it starts playing back the audio from the previous response. The playback is modeled into two phases: * No barge-in phase: which goes first and during which speech detection should not be carried out. * Barge-in phase: which follows the no barge-in phase and during which the API starts speech detection and may inform the client that an utterance has been detected. Note that no-speech event is not expected in this phase. The client provides this configuration in terms of the durations of those two phases. The durations are measured in terms of the audio length fromt the the start of the input audio. The flow goes like below: --\> Time without speech detection | utterance only | utterance or no-speech event | | +-------------+ | +------------+ | +---------------+ ----------+ no barge-in +-|-+ barge-in +-|-+ normal period +----------- +-------------+ | +------------+ | +---------------+ No-speech event is a response with END_OF_UTTERANCE without any transcript following up.
*/
export interface Schema$GoogleCloudDialogflowV2beta1BargeInConfig {
/**
* Duration that is not eligible for barge-in at the beginning of the input audio.
*/
noBargeInDuration?: string | null;
/**
* Total duration for the playback at the beginning of the input audio.
*/
totalDuration?: string | null;
}
/**
* The request message for EntityTypes.BatchCreateEntities.
*/
Expand Down Expand Up @@ -4406,6 +4419,10 @@ export namespace dialogflow_v2beta1 {
* Required. Audio encoding of the audio content to process.
*/
audioEncoding?: string | null;
/**
* Configuration of barge-in behavior during the streaming of input audio.
*/
bargeInConfig?: Schema$GoogleCloudDialogflowV2beta1BargeInConfig;
/**
* Only used in Participants.AnalyzeContent and Participants.StreamingAnalyzeContent. If `false` and recognition doesn't return any result, trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
*/
Expand Down Expand Up @@ -6152,6 +6169,10 @@ export namespace dialogflow_v2beta1 {
* The request message for Conversations.SuggestConversationSummary.
*/
export interface Schema$GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest {
/**
* Parameters for a human assist query.
*/
assistQueryParams?: Schema$GoogleCloudDialogflowV2beta1AssistQueryParameters;
/**
* Max number of messages prior to and including [latest_message] to use as context when compiling the suggestion. By default 500 and at most 1000.
*/
Expand Down Expand Up @@ -24977,6 +24998,7 @@ export namespace dialogflow_v2beta1 {
* requestBody: {
* // request body parameters
* // {
* // "assistQueryParams": {},
* // "contextSize": 0,
* // "latestMessage": "my_latestMessage"
* // }
Expand Down Expand Up @@ -42138,6 +42160,7 @@ export namespace dialogflow_v2beta1 {
* requestBody: {
* // request body parameters
* // {
* // "assistQueryParams": {},
* // "contextSize": 0,
* // "latestMessage": "my_latestMessage"
* // }
Expand Down

0 comments on commit a313a0d

Please sign in to comment.