【发布时间】:2024-01-11 06:12:01
【问题描述】:
如何找出默认系统语音识别器的ComponentName,即调用createSpeechRecognizer(Context context)时返回的那个? (其实我只需要找出它支持哪些输入语言,所以如果只有那个答案,那我也很感激。)
框架解决了这个问题
String serviceComponent = Settings.Secure.getString(mContext.getContentResolver(),
Settings.Secure.VOICE_RECOGNITION_SERVICE);
(见source code of SpeechRecognizer。)
但是,该解决方案似乎不适用于第三方应用。
【问题讨论】:
标签: java android speech-recognition