Skip to content

Commit

Permalink
feat: add optional SpeechConfig to UploadConversationRequest
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 567616394
  • Loading branch information
Google APIs authored and Copybara-Service committed Sep 22, 2023
1 parent 1a3ea87 commit 37b45d1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Expand Up @@ -576,6 +576,10 @@ message UploadConversationRequest {
// Optional. DLP settings for transcript redaction. Optional, will default to
// the config specified in Settings.
RedactionConfig redaction_config = 4 [(google.api.field_behavior) = OPTIONAL];

// Optional. Default Speech-to-Text configuration. Optional, will default to
// the config specified in Settings.
SpeechConfig speech_config = 11 [(google.api.field_behavior) = OPTIONAL];
}

// The metadata for an UploadConversation operation.
Expand Down Expand Up @@ -704,7 +708,8 @@ message IngestConversationsRequest {
// Configuration for an external data store containing objects that will
// be converted to conversations.
oneof source {
// A cloud storage bucket source.
// A cloud storage bucket source. Note that any previously ingested objects
// from the source will be skipped to avoid duplication.
GcsSource gcs_source = 2;
}

Expand Down
14 changes: 14 additions & 0 deletions google/cloud/contactcenterinsights/v1/resources.proto
Expand Up @@ -951,6 +951,10 @@ message Settings {
// Default DLP redaction resources to be applied while ingesting
// conversations.
RedactionConfig redaction_config = 10;

// Optional. Default Speech-to-Text resources to be used while ingesting audio
// files. Optional, CCAI Insights will create a default if not provided.
SpeechConfig speech_config = 11 [(google.api.field_behavior) = OPTIONAL];
}

// DLP resources used for redaction while ingesting conversations.
Expand All @@ -966,6 +970,16 @@ message RedactionConfig {
string inspect_template = 2;
}

// Speech-to-Text configuration.
message SpeechConfig {
// The fully-qualified Speech Recognizer resource name.
// Format:
// `projects/{project_id}/locations/{location}/recognizer/{recognizer}`
string speech_recognizer = 1 [(google.api.resource_reference) = {
type: "speech.googleapis.com/Recognizer"
}];
}

// An annotation that was generated during the customer and agent interaction.
message RuntimeAnnotation {
// The data in the annotation.
Expand Down

0 comments on commit 37b45d1

Please sign in to comment.