Skip to content

Commit

Permalink
fix: properly call the speak method
Browse files Browse the repository at this point in the history
  • Loading branch information
jessielw committed Oct 30, 2023
1 parent faa4ff7 commit 7d1f9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/app/src/main/kotlin/com/rtirl/chat/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class TextToSpeechPlugin(context: Context) : MethodCallHandler {
"speak" -> {
val text = call.argument<String>("text")
if (!text.isNullOrBlank()) {
ttsPlugin.speak(text, result)
speak(text, result)
} else {
result.error("INVALID_ARGUMENT", "Text is empty or null", null)
}
Expand Down

0 comments on commit 7d1f9be

Please sign in to comment.