Skip to content

Commit

Permalink
Merge pull request #20924 from wordpress-mobile/issue/v2c-transcripti…
Browse files Browse the repository at this point in the history
…on-error-logs

[Voice to Content] Capture transcription error logs
  • Loading branch information
zwarm authored May 31, 2024
2 parents ec01193 + 2de0177 commit db47af2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.wordpress.android.ui.voicetocontent

import android.util.Log
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import org.wordpress.android.fluxc.model.SiteModel
Expand Down Expand Up @@ -35,6 +36,11 @@ class VoiceToContentUseCase @Inject constructor(
transcriptionResponse.model
}
is JetpackAITranscriptionResponse.Error -> {
val message = "${transcriptionResponse.type} ${transcriptionResponse.message}"
Log.i(
javaClass.simpleName,
"Error transcribing audio file: $message"
)
null
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ ext {
automatticTracksVersion = '5.0.0'
gutenbergMobileVersion = 'v1.120.0-alpha1'
wordPressAztecVersion = 'v2.1.3'
wordPressFluxCVersion = 'trunk-a9a471914d3ebd1093986d3d0a95c2a29b29dca0'
wordPressFluxCVersion = 'trunk-8b7eeade00f33c5b4296722fb3854b3a32e06ad8'
wordPressLoginVersion = '1.15.0'
wordPressPersistentEditTextVersion = '1.0.2'
wordPressUtilsVersion = '3.14.0'
Expand Down

0 comments on commit db47af2

Please sign in to comment.