diff options
Diffstat (limited to 'java/com/android/voicemail/impl/transcribe')
-rw-r--r-- | java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto b/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto index a2064d193..697e9e337 100644 --- a/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto +++ b/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto @@ -56,6 +56,18 @@ enum TranscriptionStatus { FAILED_NO_SPEECH_DETECTED = 7; } +// Enum that specifies the user's consent to donate a specific voicemail. +enum DonationPreference { + // Default but invalid value. + USER_PREFERENCE_UNSPECIFIED = 0; + + // User does not consent to donating this voicemail. + DO_NOT_DONATE = 1; + + // User consents to donating this voicemail. + DONATE = 2; +} + // Request for synchronous voicemail transcription. message TranscribeVoicemailRequest { // Voicemail audio file containing the raw bytes we receive from the carrier. @@ -78,6 +90,16 @@ message TranscribeVoicemailAsyncRequest { // Audio format of the voicemail file. optional AudioFormat audio_format = 2; + + // The client may provide their own unique ID for this transcription. It + // should be globally unique across all voicemails from all users. + // If the given transcription_id is not unique, an ALREADY_EXISTS (409) error + // will be returned. + // If no transcription_id is provided, one will be generated by the server. + optional string transcription_id = 3; + + // User's donation preference. + optional DonationPreference donation_preference = 4; } // Response for asynchronous voicemail transcription containing information |