提交 2e421a10 作者: 王苏进

feat: bug fix

上级 c652dadb
...@@ -71,7 +71,8 @@ class AivoicePlugin: FlutterPlugin, MethodCallHandler, EventChannel.StreamHandle ...@@ -71,7 +71,8 @@ class AivoicePlugin: FlutterPlugin, MethodCallHandler, EventChannel.StreamHandle
asrCenter.uninitEngineBtnClicked() asrCenter.uninitEngineBtnClicked()
} }
"startOrStopEngine" -> { "startOrStopEngine" -> {
if(call.arguments == true) { val isBegin = (call.arguments as Map<*, *>).get("isBegin")
if(isBegin == true) {
asrCenter.startEngineBtnClicked() asrCenter.startEngineBtnClicked()
} else { } else {
asrCenter.stopEngineBtnClicked() asrCenter.stopEngineBtnClicked()
......
...@@ -147,7 +147,7 @@ class _MyAppState extends State<MyApp> { ...@@ -147,7 +147,7 @@ class _MyAppState extends State<MyApp> {
], ],
), ),
), ),
floatingActionButton: ttsView, floatingActionButton: asrView,
), ),
); );
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论