Skip to content

Commit

Permalink
feat: [dialogflow] add new fields for delivering intermediate transcr…
Browse files Browse the repository at this point in the history
…iptions through PubSub (#5881)

* feat: add new fields for delivering intermediate transcriptions through PubSub

PiperOrigin-RevId: 705962694

Source-Link: googleapis/googleapis@d140b51

Source-Link: googleapis/googleapis-gen@8fc7ff9
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6IjhmYzdmZjkxY2E2OWI3NjJhZTNjMzc4NGI2ODRkYzQ1ZDhkNGM4ZWIifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* feat: add new fields for delivering intermediate transcriptions through PubSub

PiperOrigin-RevId: 705999588

Source-Link: googleapis/googleapis@35c27e3

Source-Link: googleapis/googleapis-gen@fb8444e
Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6ImZiODQ0NGVlMmQxMzY0ZTJlNmE4NGUxMTIyMDZlODg2ZTAwM2I4ZTYifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Dec 17, 2024
1 parent 21a7622 commit 7c8a115
Show file tree
Hide file tree
Showing 7 changed files with 244 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ syntax = "proto3";
package google.cloud.dialogflow.v2;

import "google/cloud/dialogflow/v2/participant.proto";
import "google/cloud/dialogflow/v2/session.proto";
import "google/rpc/status.proto";

option csharp_namespace = "Google.Cloud.Dialogflow.V2";
Expand Down Expand Up @@ -51,6 +52,12 @@ message ConversationEvent {
// [ConversationProfile.new_message_event_notification_config][google.cloud.dialogflow.v2.ConversationProfile.new_message_event_notification_config]
NEW_MESSAGE = 5;

// An existing conversation has received a new speech recognition result.
// This is mainly for delivering intermediate transcripts. The notification
// is configured in
// [ConversationProfile.new_recognition_event_notification_config][].
NEW_RECOGNITION_RESULT = 7;

// Unrecoverable error during a telephone call.
//
// In general non-recoverable errors only occur if something was
Expand Down Expand Up @@ -80,5 +87,8 @@ message ConversationEvent {
oneof payload {
// Payload of NEW_MESSAGE event.
Message new_message_payload = 4;

// Payload of NEW_RECOGNITION_RESULT event.
StreamingRecognitionResult new_recognition_result_payload = 5;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,18 @@ message ConversationProfile {
// format of [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]
NotificationConfig new_message_event_notification_config = 8;

// Optional. Configuration for publishing transcription intermediate results.
// Event will be sent in format of
// [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent]. If
// configured, the following information will be populated as
// [ConversationEvent][google.cloud.dialogflow.v2.ConversationEvent] Pub/Sub
// message attributes:
// - "participant_id"
// - "participant_role"
// - "message_id"
NotificationConfig new_recognition_result_notification_config = 21
[(google.api.field_behavior) = OPTIONAL];

// Settings for speech transcription.
SpeechToTextConfig stt_config = 9;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ syntax = "proto3";
package google.cloud.dialogflow.v2beta1;

import "google/cloud/dialogflow/v2beta1/participant.proto";
import "google/cloud/dialogflow/v2beta1/session.proto";
import "google/rpc/status.proto";

option csharp_namespace = "Google.Cloud.Dialogflow.V2Beta1";
Expand Down Expand Up @@ -51,6 +52,12 @@ message ConversationEvent {
// [ConversationProfile.new_message_event_notification_config][google.cloud.dialogflow.v2beta1.ConversationProfile.new_message_event_notification_config]
NEW_MESSAGE = 5;

// An existing conversation has received a new speech recognition result.
// This is mainly for delivering intermediate transcripts. The notification
// is configured in
// [ConversationProfile.new_recognition_event_notification_config][].
NEW_RECOGNITION_RESULT = 7;

// Unrecoverable error during a telephone call.
//
// In general non-recoverable errors only occur if something was
Expand Down Expand Up @@ -80,5 +87,8 @@ message ConversationEvent {
oneof payload {
// Payload of NEW_MESSAGE event.
Message new_message_payload = 4;

// Payload of NEW_RECOGNITION_RESULT event.
StreamingRecognitionResult new_recognition_result_payload = 5;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,18 @@ message ConversationProfile {
// [ConversationEvent][google.cloud.dialogflow.v2beta1.ConversationEvent]
NotificationConfig new_message_event_notification_config = 8;

// Optional. Configuration for publishing transcription intermediate results.
// Event will be sent in format of
// [ConversationEvent][google.cloud.dialogflow.v2beta1.ConversationEvent]. If
// configured, the following information will be populated as
// [ConversationEvent][google.cloud.dialogflow.v2beta1.ConversationEvent]
// Pub/Sub message attributes:
// - "participant_id"
// - "participant_role"
// - "message_id"
NotificationConfig new_recognition_result_notification_config = 21
[(google.api.field_behavior) = OPTIONAL];

// Settings for speech transcription.
SpeechToTextConfig stt_config = 9;

Expand Down
30 changes: 28 additions & 2 deletions packages/google-cloud-dialogflow/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7c8a115

Please sign in to comment.