diff options
author | mdooley <mdooley@google.com> | 2017-11-03 17:11:08 -0700 |
---|---|---|
committer | zachh <zachh@google.com> | 2017-11-11 16:24:32 +0000 |
commit | 7eb42e93396e085ade51020cb9c44f4651a56c71 (patch) | |
tree | 7c4f028b0e1457f0671a6cac3bdb2b7c45f4bafd /java/com/android/voicemail/impl/transcribe | |
parent | 14e534ea65d09cc473c1c85657d0fefc0d999a88 (diff) |
Defining transcription feedback API
Bug: 68712148
Test: none
PiperOrigin-RevId: 174535170
Change-Id: I436335d142f369f8e7c3249463117ffd5c00d6b4
Diffstat (limited to 'java/com/android/voicemail/impl/transcribe')
-rw-r--r-- | java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto | 38 |
1 files changed, 38 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 b06017075..1790881e7 100644 --- a/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto +++ b/java/com/android/voicemail/impl/transcribe/grpc/voicemail_transcription.proto @@ -68,6 +68,18 @@ enum DonationPreference { DONATE = 2; } +// Enum that specifies the user's rating for a voicemail transcription. +enum TranscriptionRatingValue { + // Default but invalid value. + UNSPECIFIED = 0; + + // User indicated that the transcription was good. + GOOD_TRANSCRIPTION = 1; + + // User indicated that the transcription was bad. + BAD_TRANSCRIPTION = 2; +} + // Request for synchronous voicemail transcription. message TranscribeVoicemailRequest { // Voicemail audio file containing the raw bytes we receive from the carrier. @@ -133,6 +145,26 @@ message GetTranscriptResponse { optional string transcript = 2; } +// The rating for a single voicemail transcription. +message TranscriptionRating { + // The id of the voicemail transcription. + optional string transcription_id = 1; + + // The user's rating of the voicemail transcription. + optional TranscriptionRatingValue rating_value = 2; +} + +// Request for uploading transcription ratings. +message TranscriptionFeedbackRequest { + // User feedback indicating the transcription quality for one or more + // voicemails + repeated TranscriptionRating ratings = 1; +} + +// Response for uploading transcription ratings +message TranscriptionFeedbackResponse { +} + // RPC service for transcribing voicemails. service VoicemailTranscriptionService { // Returns a transcript of the given voicemail. @@ -149,6 +181,12 @@ service VoicemailTranscriptionService { // by TranscribeVoicemailAsync. rpc GetTranscript(GetTranscriptRequest) returns (GetTranscriptResponse) { } + + // Uploads user's transcription feedback. Feedback will only be collected from + // user's who have consented to donate their voicemails. + rpc SendTranscriptionFeedback(TranscriptionFeedbackRequest) + returns (TranscriptionFeedbackResponse) { + } } |