Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SpeechXf.startListening 报错 #3

Open
zhangweiwei0326 opened this issue Apr 15, 2024 · 2 comments
Open

SpeechXf.startListening 报错 #3

zhangweiwei0326 opened this issue Apr 15, 2024 · 2 comments

Comments

@zhangweiwei0326
Copy link

执行SpeechXf.startListening

E/AndroidRuntime(14556): java.lang.NullPointerException: Attempt to invoke interface method 'void io.flutter.plugin.common.EventChannel$EventSink.success(java.lang.Object)' on a null object reference
E/AndroidRuntime(14556): at com.example.speech_xf.SpeechXfPlugin$3.onError(SpeechXfPlugin.java:329)
E/AndroidRuntime(14556): at com.iflytek.cloud.c.a.f$c$a.handleMessage(SourceFile:57)
E/AndroidRuntime(14556): at android.os.Handler.dispatchMessage(Handler.java:110)
E/AndroidRuntime(14556): at android.os.Looper.loop(Looper.java:219)

@zhangweiwei0326
Copy link
Author

经过测试 SpeechXf.onSpeechResultListener 和 SpeechXf.onVolumeChanged 都无法设置成功
Flutter (Channel stable, 3.16.7

@CarpOrange
Copy link

EventSink.success这个我手动改源码了,直接判空。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants