diff options
author | mdooley <mdooley@google.com> | 2017-08-16 13:25:50 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-08-30 15:44:51 +0000 |
commit | 0feba780889cb1e67df64a457109fc6134111261 (patch) | |
tree | 17b86dc18831c4f58088f0aea29f81c3886b3958 /java/com/android/voicemail/impl/fetch/VoicemailFetchedCallback.java | |
parent | 780a361bb4416d1b3e34ed8bb3dab213070fcd17 (diff) |
Transcribe old voicemails
This cl adds a transcription backfill service to transcribe old voicemails. This service queries the database for any voicemails without a transcription and whose transcription_state column has not been set and schedules a transcription task to update them. This service is only run once, after the user accepts the voicemail TOS and we
have an un-metered network connection.
Bug: 62423649
Test: manual and updated unit tests
PiperOrigin-RevId: 165486104
Change-Id: Ic85c9d728937411638074fec07cf44bb83862acb
Diffstat (limited to 'java/com/android/voicemail/impl/fetch/VoicemailFetchedCallback.java')
-rw-r--r-- | java/com/android/voicemail/impl/fetch/VoicemailFetchedCallback.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/voicemail/impl/fetch/VoicemailFetchedCallback.java b/java/com/android/voicemail/impl/fetch/VoicemailFetchedCallback.java index d15ce12ef..3e825407b 100644 --- a/java/com/android/voicemail/impl/fetch/VoicemailFetchedCallback.java +++ b/java/com/android/voicemail/impl/fetch/VoicemailFetchedCallback.java @@ -97,7 +97,7 @@ public class VoicemailFetchedCallback { if (updateVoicemail(values)) { ThreadUtil.postOnUiThread( () -> { - if (!TranscriptionService.transcribeVoicemail(mContext, mUri)) { + if (!TranscriptionService.scheduleNewVoicemailTranscriptionJob(mContext, mUri, true)) { VvmLog.w(TAG, String.format("Failed to schedule transcription for %s", mUri)); } }); |