483d957ef7f2c6976c2e4647c4da6258e861fb54 |
|
30-Aug-2017 |
Eric Erfanian <erfanian@google.com> |
Adding code to use the async voicemail transcription API We have observed ~40% error rate with the synchronous transcription service and suspect that it is at least partly due to the fact that the synchronous API requires that we maintain a network connection to the server for up to several minutes. This cl allows us to also use the asynchronous transcription API which will eliminate the need for long lived network connections. The client will still block until the transcription is complete but this will be on a background thread and shouldn't affect performance. Also adding more impression logging for the new async API errors. Bug: 37340510 Test: manual and updated unit tests PiperOrigin-RevId: 165320593 Change-Id: Icf0e0b38d3a584fa679968592f91db0c42a6f1ee
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/TranscriptionTaskSync.java
|