Android Question intent android.intent.action.WEB_SEARCH does not speak!

Angelo2016

Member
Licensed User
Longtime User
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
WEB_SEARCH:
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:

Angelo2016

Member
Licensed User
Longtime User
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
Screenshot_20230730_230011_com.google.android.googlequicksearchbox.jpg
 
Upvote 0

MicroDrie

Well-Known Member
Licensed User
Longtime User
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
    8 KB · Views: 105
Upvote 0
Top