更改用于语音识别的Android麦克风灵敏度

时间:2015-08-05 07:56:46

标签: java android speech-recognition speech-to-text

我有一个附带USB麦克风的Android设备(TV-Box,运行Android 4.2)。我正在开发一个应用程序,它为该Android设备使用VoiceRecognition,我想更改麦克风灵敏度。

我怎样才能做到这一点?在"声音输入设备"下的Android设置中,我只能更改

  • "麦克风输入"
  • " LineIn输入"
  • " usbaudio输入"

但无法设置麦克风的灵敏度。 有没有我可以使用的应用程序? (虽然我找不到任何东西)或者我可以在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);

    }
}

0 个答案:

没有答案
相关问题