A Angelo2016 Member Licensed User Longtime User Jul 24, 2023 #1 Hi I'm using android.intent.action.WEB_SEARCH intent to get traffic info the page opens with google but it doesn't speak.. how can I activate the voice? Thank you Code: Dim intent2 As Intent Dim command As String= "navigate home by public transport" intent2.Initialize("android.intent.action.WEB_SEARCH", "") intent2.putExtra("query", command) Try StartActivity(intent2) Catch Log(LastException) End Try Last edited: Jul 30, 2023
Hi I'm using android.intent.action.WEB_SEARCH intent to get traffic info the page opens with google but it doesn't speak.. how can I activate the voice? Thank you Code: Dim intent2 As Intent Dim command As String= "navigate home by public transport" intent2.Initialize("android.intent.action.WEB_SEARCH", "") intent2.putExtra("query", command) Try StartActivity(intent2) Catch Log(LastException) End Try
Erel B4X founder Staff member Licensed User Longtime User Jul 25, 2023 #2 Please use [code]code here...[/code] tags when posting code. Upvote 0
A Angelo2016 Member Licensed User Longtime User Jul 28, 2023 #3 Is there anyone who can help me? Thanks Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jul 30, 2023 #4 WEB_SEARCH: https://developer.android.com/reference/android/content/Intent#ACTION_WEB_SEARCH What do you mean with "doesn't speak"? Why are you calling StartActivity twice? Upvote 0
WEB_SEARCH: https://developer.android.com/reference/android/content/Intent#ACTION_WEB_SEARCH What do you mean with "doesn't speak"? Why are you calling StartActivity twice?
A Angelo2016 Member Licensed User Longtime User Jul 30, 2023 #5 Hi, I inserted Activity.x2 to make an error during test attempts ... If I send the query to google search it does not tell me with my voice if there is traffic on the street but only opens the page with indications Upvote 0
Hi, I inserted Activity.x2 to make an error during test attempts ... If I send the query to google search it does not tell me with my voice if there is traffic on the street but only opens the page with indications
Erel B4X founder Staff member Licensed User Longtime User Jul 31, 2023 #6 You don't have control over the third party app behavior. Upvote 0
MicroDrie Well-Known Member Licensed User Longtime User Aug 1, 2023 #7 Maybe not well known but the recent B4A versions support Text-To-Speak (TTS). I am very curious whether the enclosed old (but working) TTS test program actually pronounces the entered text. If the program speaks the text, there is standard speaking support (and in your case a problem with the software setting of your Activity.x2 application). Please let us know the result. Attachments TTS.zip TTS.zip 8 KB · Views: 366 Upvote 0
Maybe not well known but the recent B4A versions support Text-To-Speak (TTS). I am very curious whether the enclosed old (but working) TTS test program actually pronounces the entered text. If the program speaks the text, there is standard speaking support (and in your case a problem with the software setting of your Activity.x2 application). Please let us know the result.