Android Bluetooth SCO with Nissan car radio -


before details, little context:

  • car: nissan note (uk 2011 model)
  • device: nexus 4
  • os: android 4.3 stock

i'm trying create app speech recognition , synthesis in car while phone connected on bluetooth. car audio system not provide it's own voice recognition, instead delegates phone triggering intent android.intent.action.voice_command

the default app on device handling google search app, has specific activity hands-free dialling. app has terrible speech recognition demonstrate how system supposed work - when activated car displays "voice recognition active" on phone screen while app running, , hides when app exits.

the problem have while can make label appear calling audiomanager.startbluetoothsco() , play audio through car speakers , record through car microphone, audiomanager.stopbluetoothsco() not disable mode in car, , remains displaying 'voice recognition active'. problem since car not launch app until bluetooth connection has been closed , re-opened.

my experiments have verified audiomanager.startbluetoothsco() enables mode in car, , audiomanager.stopbluetoothsco() appears have effect of changing ambient sound produced car (a faint hiss heard when audio system active stop when command issued) no other effect seen.

i unsure if else activated implicitly call audiomanager.startbluetoothsco() must implicitly stopped, i'm out of ideas try.

after lot more research came across this: http://developer.android.com/reference/android/bluetooth/bluetoothheadset.html#stopvoicerecognition%28android.bluetooth.bluetoothdevice%29 appear related problem. after calling startvoicerecognition , stopvoicerecognition appropriate, things appeared return normal state.


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -