Skip to content

Commit 4bd299a

Browse files
Google APIscopybara-github
authored andcommitted
feat: added audio_export_settings
PiperOrigin-RevId: 444644952
1 parent 6869f2f commit 4bd299a

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

google/cloud/dialogflow/cx/v3/security_settings.proto

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,41 @@ message SecuritySettings {
213213
DIALOGFLOW_HISTORY = 1;
214214
}
215215

216+
// Settings for exporting audio.
217+
message AudioExportSettings {
218+
// File format for exported audio file. Currently only in telephony
219+
// recordings.
220+
enum AudioFormat {
221+
// Unspecified. Do not use.
222+
AUDIO_FORMAT_UNSPECIFIED = 0;
223+
224+
// G.711 mu-law PCM with 8kHz sample rate.
225+
MULAW = 1;
226+
227+
// MP3 file format.
228+
MP3 = 2;
229+
230+
// OGG Vorbis.
231+
OGG = 3;
232+
}
233+
234+
// Cloud Storage bucket to export audio record to. You need to grant
235+
// `service-<Conversation Project
236+
// Number>@gcp-sa-dialogflow.iam.gserviceaccount.com` the `Storage Object
237+
// Admin` role in this bucket.
238+
string gcs_bucket = 1;
239+
240+
// Filename pattern for exported audio.
241+
string audio_export_pattern = 2;
242+
243+
// Enable audio redaction if it is true.
244+
bool enable_audio_redaction = 3;
245+
246+
// File format for exported audio file. Currently only in telephony
247+
// recordings.
248+
AudioFormat audio_format = 4;
249+
}
250+
216251
// Settings for exporting conversations to
217252
// [Insights](https://cloud.google.com/contact-center/insights/docs).
218253
message InsightsExportSettings {
@@ -302,6 +337,21 @@ message SecuritySettings {
302337
// List of types of data to remove when retention settings triggers purge.
303338
repeated PurgeDataType purge_data_types = 8;
304339

340+
// Controls audio export settings for post-conversation analytics when
341+
// ingesting audio to conversations via [Participants.AnalyzeContent][] or
342+
// [Participants.StreamingAnalyzeContent][].
343+
//
344+
// If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or
345+
// [audio_export_settings.gcs_bucket][] is empty, audio export is disabled.
346+
//
347+
// If audio export is enabled, audio is recorded and saved to
348+
// [audio_export_settings.gcs_bucket][], subject to retention policy of
349+
// [audio_export_settings.gcs_bucket][].
350+
//
351+
// This setting won't effect audio input for implicit sessions via
352+
// [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent].
353+
AudioExportSettings audio_export_settings = 12;
354+
305355
// Controls conversation exporting settings to Insights after conversation is
306356
// completed.
307357
//

0 commit comments

Comments
 (0)