我有一个附带USB麦克风的Android设备(TV-Box,运行Android 4.2)。我正在开发一个应用程序,它为该Android设备使用VoiceRecognition,我想更改麦克风灵敏度。
我怎样才能做到这一点?在"声音输入设备"下的Android设置中,我只能更改
但无法设置麦克风的灵敏度。 有没有我可以使用的应用程序? (虽然我找不到任何东西)或者我可以在java代码中以某种方式做到这一点吗?
我的语音识别课程:(简化)
public class VoiceCommandService extends Service {
protected SpeechRecognizer mSpeechRecognizer;
protected Intent mSpeechRecognizerIntent;
@Override
public void onCreate() {
super.onCreate();
mSpeechRecognizer = SpeechRecognizer.createSpeechRecognizer(this);
mSpeechRecognizer.setRecognitionListener(new SpeechRecognitionListener());
mSpeechRecognizerIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE,
this.getPackageName());
mSpeechRecognizerIntent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS,4);
}
}