startVoiceRecognition with bluetooth headset is not working

偶尔善良 提交于 2019-12-05 03:09:51

I have been check as Narayan mentioned, I found BluetoothHeadset.STATE_AUDIO_CONNECTED does fire in nexus 7 as well some other ZTE devices, may be this is manufature fault or a that device does not support call and you are try to communicate via call_mode, I think there is only workaround to solve this issue

Using shoe rat suggestion, modify the start method in the link and see if it will work.

public boolean start()
{
    if (!mIsStarted)
    {
        mIsStarted = true;
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB || "Nexus 7".equals(Build.MODEL)
        {
            mIsStarted = startBluetooth();
        }
        else
        {
            mIsStarted = startBluetooth11();
        }
    }

    return mIsStarted;
}

Nexus 7 does not support VoiceRecognition,becuase Nexus 7 does not support Bluetooth HFP(handsfreee profile) who contains VoiceRecognition. You can find device Bluetooth info in https://www.bluetooth.org/tpg/listings.cfm.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!