BluetoothHeadset.StartVoiceRecognition(BluetoothDevice) 메서드

정의

Bluetooth 음성 인식을 시작합니다.

[Android.Runtime.Register("startVoiceRecognition", "(Landroid/bluetooth/BluetoothDevice;)Z", "")]
public bool StartVoiceRecognition(Android.Bluetooth.BluetoothDevice? device);
[Android.Runtime.Register("startVoiceRecognition", "(Landroid/bluetooth/BluetoothDevice;)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool StartVoiceRecognition(Android.Bluetooth.BluetoothDevice? device);
[<Android.Runtime.Register("startVoiceRecognition", "(Landroid/bluetooth/BluetoothDevice;)Z", "")>]
member this.StartVoiceRecognition : Android.Bluetooth.BluetoothDevice -> bool
[<Android.Runtime.Register("startVoiceRecognition", "(Landroid/bluetooth/BluetoothDevice;)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.StartVoiceRecognition : Android.Bluetooth.BluetoothDevice -> bool

매개 변수

device
BluetoothDevice

Bluetooth 헤드셋

반품

연결된 헤드셋이 없거나 연결된 헤드셋이 음성 인식을 지원하지 않거나 음성 인식이 이미 시작되었거나 오디오 채널이 사용 중이거나 오류 발생 시 true이면 false입니다.

특성

설명

Bluetooth 음성 인식을 시작합니다. 이 메서드는 음성 인식 AT 명령을 헤드셋에 보내고 오디오 연결을 설정합니다.

사용자는 을(를) #ACTION_AUDIO_STATE_CHANGED들을 수 있습니다. 이 함수가 true를 반환하면 이 의도는 으로 설정된 #STATE_AUDIO_CONNECTING상태에서 #EXTRA_STATE 브로드캐스트됩니다.

#EXTRA_STATE는 오디오 연결이 설정된 시점과 #STATE_AUDIO_DISCONNECTED 오디오 연결을 설정하지 못한 경우로 전환 #STATE_AUDIO_CONNECTING#STATE_AUDIO_CONNECTED 됩니다.

에 대한 android.bluetooth.BluetoothHeadset.startVoiceRecognition(android.bluetooth.BluetoothDevice)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상