Skip to content

Commit 60beff1

Browse files
authored
fixed typo in RTF calculations (k2-fsa#1861)
1 parent 2dd84b4 commit 60beff1

File tree

1 file changed

+1
-1
lines changed
  • android/SherpaOnnxTtsEngine/app/src/main/java/com/k2fsa/sherpa/onnx/tts/engine

1 file changed

+1
-1
lines changed

android/SherpaOnnxTtsEngine/app/src/main/java/com/k2fsa/sherpa/onnx/tts/engine/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ class MainActivity : ComponentActivity() {
213213
val RTF = String.format(
214214
"Number of threads: %d\nElapsed: %.3f s\nAudio duration: %.3f s\nRTF: %.3f/%.3f = %.3f",
215215
TtsEngine.tts!!.config.model.numThreads,
216-
audioDuration,
217216
elapsed,
217+
audioDuration,
218218
elapsed,
219219
audioDuration,
220220
elapsed / audioDuration

0 commit comments

Comments
 (0)