Skip to content

Commit a313a0d

Browse files
yoshi-automationsofisl
authored andcommitted
feat(dialogflow): update the API
#### 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
1 parent 85a06ee commit a313a0d

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

discovery/dialogflow-v2beta1.json

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7507,7 +7507,7 @@
75077507
}
75087508
}
75097509
},
7510-
"revision": "20230130",
7510+
"revision": "20230209",
75117511
"rootUrl": "https://dialogflow.googleapis.com/",
75127512
"schemas": {
75137513
"GoogleCloudDialogflowCxV3AudioInput": {
@@ -13865,6 +13865,23 @@
1386513865
},
1386613866
"type": "object"
1386713867
},
13868+
"GoogleCloudDialogflowV2beta1BargeInConfig": {
13869+
"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.",
13870+
"id": "GoogleCloudDialogflowV2beta1BargeInConfig",
13871+
"properties": {
13872+
"noBargeInDuration": {
13873+
"description": "Duration that is not eligible for barge-in at the beginning of the input audio.",
13874+
"format": "google-duration",
13875+
"type": "string"
13876+
},
13877+
"totalDuration": {
13878+
"description": "Total duration for the playback at the beginning of the input audio.",
13879+
"format": "google-duration",
13880+
"type": "string"
13881+
}
13882+
},
13883+
"type": "object"
13884+
},
1386813885
"GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest": {
1386913886
"description": "The request message for EntityTypes.BatchCreateEntities.",
1387013887
"id": "GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest",
@@ -15401,6 +15418,10 @@
1540115418
],
1540215419
"type": "string"
1540315420
},
15421+
"bargeInConfig": {
15422+
"$ref": "GoogleCloudDialogflowV2beta1BargeInConfig",
15423+
"description": "Configuration of barge-in behavior during the streaming of input audio."
15424+
},
1540415425
"disableNoSpeechRecognizedEvent": {
1540515426
"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.",
1540615427
"type": "boolean"
@@ -17893,6 +17914,10 @@
1789317914
"description": "The request message for Conversations.SuggestConversationSummary.",
1789417915
"id": "GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest",
1789517916
"properties": {
17917+
"assistQueryParams": {
17918+
"$ref": "GoogleCloudDialogflowV2beta1AssistQueryParameters",
17919+
"description": "Parameters for a human assist query."
17920+
},
1789617921
"contextSize": {
1789717922
"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.",
1789817923
"format": "int32",

src/apis/dialogflow/v2beta1.ts

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3331,6 +3331,19 @@ export namespace dialogflow_v2beta1 {
33313331
*/
33323332
responseMessages?: Schema$GoogleCloudDialogflowV2beta1ResponseMessage[];
33333333
}
3334+
/**
3335+
* 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.
3336+
*/
3337+
export interface Schema$GoogleCloudDialogflowV2beta1BargeInConfig {
3338+
/**
3339+
* Duration that is not eligible for barge-in at the beginning of the input audio.
3340+
*/
3341+
noBargeInDuration?: string | null;
3342+
/**
3343+
* Total duration for the playback at the beginning of the input audio.
3344+
*/
3345+
totalDuration?: string | null;
3346+
}
33343347
/**
33353348
* The request message for EntityTypes.BatchCreateEntities.
33363349
*/
@@ -4406,6 +4419,10 @@ export namespace dialogflow_v2beta1 {
44064419
* Required. Audio encoding of the audio content to process.
44074420
*/
44084421
audioEncoding?: string | null;
4422+
/**
4423+
* Configuration of barge-in behavior during the streaming of input audio.
4424+
*/
4425+
bargeInConfig?: Schema$GoogleCloudDialogflowV2beta1BargeInConfig;
44094426
/**
44104427
* 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.
44114428
*/
@@ -6152,6 +6169,10 @@ export namespace dialogflow_v2beta1 {
61526169
* The request message for Conversations.SuggestConversationSummary.
61536170
*/
61546171
export interface Schema$GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest {
6172+
/**
6173+
* Parameters for a human assist query.
6174+
*/
6175+
assistQueryParams?: Schema$GoogleCloudDialogflowV2beta1AssistQueryParameters;
61556176
/**
61566177
* 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.
61576178
*/
@@ -24977,6 +24998,7 @@ export namespace dialogflow_v2beta1 {
2497724998
* requestBody: {
2497824999
* // request body parameters
2497925000
* // {
25001+
* // "assistQueryParams": {},
2498025002
* // "contextSize": 0,
2498125003
* // "latestMessage": "my_latestMessage"
2498225004
* // }
@@ -42138,6 +42160,7 @@ export namespace dialogflow_v2beta1 {
4213842160
* requestBody: {
4213942161
* // request body parameters
4214042162
* // {
42163+
* // "assistQueryParams": {},
4214142164
* // "contextSize": 0,
4214242165
* // "latestMessage": "my_latestMessage"
4214342166
* // }

0 commit comments

Comments
 (0)