Android Question Google Voice Control - Help

vercettyDev

Active Member
Licensed User
Longtime User
It numbers the entire screen of the android phone where it is possible to control with the voice.

Does anyone know which way to stop creating something similar?
 
Last edited:

vercettyDev

Active Member
Licensed User
Longtime User
Is not it.
I am looking for how to number android screen and control, currently the application is limited and has few languages.
 
Upvote 0

Mr Blue Sky

Active Member
Licensed User
Longtime User
I think you want to do that

B4X:
#Region Module Attributes
    #FullScreen: False
    #IncludeTitle: True
    #ApplicationLabel: Voice Automation
    #VersionCode: 1
    #VersionName: Voice Automation
    #SupportedOrientations: landscape
    #CanInstallToExternalStorage: False
#End Region

Sub Process_Globals
    Dim VR As VoiceRecognition                                       
    Dim TTS1 As TTS                                                           
End Sub

Sub Globals
    Dim btVoice As Button
End Sub

Sub Activity_Create(FirstTime As Boolean)
    If FirstTime Then   
        VR.Initialize("VR")
        TTS1.Initialize("TTS1")
    End If
    
    Activity.LoadLayout("1")
End Sub

Sub btVoice_Click
    VR.Listen             
    If VR.IsSupported Then
        VR.Prompt = "Say hello"
    Else
        ToastMessageShow("Voice recognition is not supported.", True)
    End If
End Sub

Sub VR_Result (Success As Boolean, Texts As List)
    If Success = True Then
        
        '**//** example **\\**
        If Texts.Get(0) = "Hello" Then
            TTS1.Speak("recognized order", True)
            'go here to a database sql of the results of the data analysis
        Else
            TTS1.Speak("Unknown command. Please start again", True)
        End If
        
    End If
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 

Attachments

  • TTS1.zip
    7.1 KB · Views: 332
Upvote 0

vercettyDev

Active Member
Licensed User
Longtime User
Is not it.
I already know how to use the voice recognizer.

But I want to know how it is possible to control the android numbering the same in other applications.
 
Upvote 0

Mr Blue Sky

Active Member
Licensed User
Longtime User
If Texts.Get(0) = "1" Then

Dim In As Intent
Dim Pm As PackageManager
In = Pm.GetApplicationIntent("com.google.android.youtube")

If In.IsInitialized Then
StartActivity(In)
Activity.Finish
End If

Else
TTS1.Speak("Unknown command. Please start again", True)
End If
 
Upvote 0

vercettyDev

Active Member
Licensed User
Longtime User
But how will I number each item on the screen?
This is part of my question, the rest I got, but thanks for the help
 
Upvote 0
Top