{"action":"created","issue":{"url":"https://api.github.com/repos/osmandapp/Osmand/issues/2590","repository_url":"https://api.github.com/repos/osmandapp/Osmand","labels_url":"https://api.github.com/repos/osmandapp/Osmand/issues/2590/labels{/name}","comments_url":"https://api.github.com/repos/osmandapp/Osmand/issues/2590/comments","events_url":"https://api.github.com/repos/osmandapp/Osmand/issues/2590/events","html_url":"https://github.com/osmandapp/Osmand/issues/2590","id":156445670,"number":2590,"title":"Bluetooth TTS guidance as phone call output failure","user":{"login":"Gabor-B","id":19547553,"avatar_url":"https://avatars.githubusercontent.com/u/19547553?v=3","gravatar_id":"","url":"https://api.github.com/users/Gabor-B","html_url":"https://github.com/Gabor-B","followers_url":"https://api.github.com/users/Gabor-B/followers","following_url":"https://api.github.com/users/Gabor-B/following{/other_user}","gists_url":"https://api.github.com/users/Gabor-B/gists{/gist_id}","starred_url":"https://api.github.com/users/Gabor-B/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gabor-B/subscriptions","organizations_url":"https://api.github.com/users/Gabor-B/orgs","repos_url":"https://api.github.com/users/Gabor-B/repos","events_url":"https://api.github.com/users/Gabor-B/events{/privacy}","received_events_url":"https://api.github.com/users/Gabor-B/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/osmandapp/Osmand/labels/Observed","name":"Observed","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-24T08:13:56Z","updated_at":"2016-06-12T18:00:15Z","closed_at":null,"body":"Hello, this seems to be an issue for more people, see links below.\r\nProblem:\r\n- The Phone is connected to the car audio, which is playing for example radio.\r\n- When receiving a phone call, the radio is interrupted, and the call routed through the car audio system\r\n- When OsmAnd outputs TTS guidance messages or beeps, the radio is NOT interrupted, regardless of the voice output option (media/audio, notification, phone call)\r\n- When switching to bluetooth audio source on the car audio, the voice output works. But in that case on cannot hear radio or CDs anymore, of course...\r\n\r\nNote: Sygic offers the same settings, and there the routing as a phone call correctly interrupts radio playback and plays the voice message. (and it also offers a preamble of a predefined length of silent output, so that the message is not truncated while the BT connection is being re-established)\r\n\r\nWhen looking into the code, it seems that:\r\n- all BT handling is just a passed setting to android.media.Audiomanager (in activities.SettingGeneralActivities.java the setting updates the CommandPlayer class\r\n- routing.VoiceRouter.java seems to have a hardcoded MediaAudio.STREAM.MUSIC setting\r\n\r\nSadly I am new to OsmAnd and Android and cannot give more specific info.\r\n\r\nFound links in OsmAnd GG:\r\n[link1](https://groups.google.com/forum/#!searchin/osmand/bluetooth/osmand/_6jJDZJ57b0/3Bu1co_F7BAJ)\r\n[link2](https://groups.google.com/forum/#!searchin/osmand/bluetooth/osmand/XmYhie1oo5U/2k0OmdSDDgAJ)"},"comment":{"url":"https://api.github.com/repos/osmandapp/Osmand/issues/comments/225451175","html_url":"https://github.com/osmandapp/Osmand/issues/2590#issuecomment-225451175","issue_url":"https://api.github.com/repos/osmandapp/Osmand/issues/2590","id":225451175,"user":{"login":"sonora","id":845735,"avatar_url":"https://avatars.githubusercontent.com/u/845735?v=3","gravatar_id":"","url":"https://api.github.com/users/sonora","html_url":"https://github.com/sonora","followers_url":"https://api.github.com/users/sonora/followers","following_url":"https://api.github.com/users/sonora/following{/other_user}","gists_url":"https://api.github.com/users/sonora/gists{/gist_id}","starred_url":"https://api.github.com/users/sonora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sonora/subscriptions","organizations_url":"https://api.github.com/users/sonora/orgs","repos_url":"https://api.github.com/users/sonora/repos","events_url":"https://api.github.com/users/sonora/events{/privacy}","received_events_url":"https://api.github.com/users/sonora/received_events","type":"User","site_admin":false},"created_at":"2016-06-12T18:00:15Z","updated_at":"2016-06-12T18:00:15Z","body":"I know. But I can confirm from my tests on quite a number of car stereos that OsmAnd did not manage on any of them to interrupt the car FM radio or CD Player to make a navigation announcement.\r\n\r\nIt looks like very few Android apps have actually solved this ....   Needless to say, not having this capability is a very decisive limitation for an external navigation product!  :)"}}
{"actor":{"display_login":"sonora"}}