设置 android 语音识别输入的麦克风样式

Style the microphone of android speech recognition input

我正在为盲人开发一个应用程序。有没有办法设计这个麦克风

http://i.imgur.com/wHpG0Cs.png 我需要调整屏幕大小。

private void promptSpeechInput() {
    Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
    intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
            RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
    intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, Locale.getDefault());
    intent.putExtra(RecognizerIntent.EXTRA_PROMPT,
            getString(R.string.speech_prompt));
    try {
        startActivityForResult(intent, REQ_CODE_SPEECH_INPUT);
    } catch (ActivityNotFoundException a) {
        Toast.makeText(getApplicationContext(),
                getString(R.string.speech_not_supported),
                Toast.LENGTH_SHORT).show();
    }
}

谢谢

Vins4nity,我找了一段时间,但找不到设置弹出对话框样式的方法,但你可以像这个人那样做。

How can I use speech recognition without the annoying dialog in android phones

他们就像语音一样用自己的按钮在自己的代码中识别并跳过整个对话。您必须稍微更改权限,但我认为这可能对您有用。让我知道!