|
|
@ -76,7 +76,9 @@ class HttpReadAloudService : BaseReadAloudService(), |
|
|
|
val file = getSpeakFile(index) |
|
|
|
val file = getSpeakFile(index) |
|
|
|
file.writeBytes(bytes) |
|
|
|
file.writeBytes(bytes) |
|
|
|
if (index == nowSpeak) { |
|
|
|
if (index == nowSpeak) { |
|
|
|
playAudio(FileInputStream(file).fd) |
|
|
|
@Suppress("BlockingMethodInNonBlockingContext") |
|
|
|
|
|
|
|
val fis = FileInputStream(file) |
|
|
|
|
|
|
|
playAudio(fis.fd) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|