Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > Italian Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

voice recognition in una text

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-29-2012, 04:14 AM
fifiddu70's Avatar
Senior Member
 
Join Date: Jan 2012
Location: Partanna ( TP ) Italy
Posts: 194
Send a message via Skype™ to fifiddu70
Default voice recognition in una text

come faccio a prendere il risultato di voice recognition e metterlo in una editTex?
Reply With Quote
  #2 (permalink)  
Old 01-29-2012, 05:53 PM
vb1992's Avatar
Basic4ppc Expert
 
Join Date: Oct 2011
Location: USA
Posts: 594
Default

Code:
'Activity module
Sub Process_Globals
    
Dim VR As VoiceRecognition
    
Dim MyText as string
End Sub

Sub Globals

End Sub

Sub Activity_Create(FirstTime As Boolean)

    
If FirstTime Then

        VR.Initialize(
"VR")
       
    
End If

    Activity.LoadLayout(
"1")

'
'
supportati
'
    If VR.IsSupported Then
        
ToastMessageShow("Voice recognition is supported."False)
    
Else
        
ToastMessageShow("Voice recognition is not supported."True)
    
End If

    VR.Prompt = 
"Say your message"  ' Parla il messaggio


End Sub

Sub Button1_Click

 
' chiamate l'attivit� di riconoscimento vocale esterno. Evento risultato sar� sollevata.

    VR.Listen 
'calls the voice recognition external activity. Result event will be raised.

End Sub

Sub VR_Result (Success As Boolean, Texts As List)
 

If Success = True Then

        
ToastMessageShow(Texts.Get(0), True)

MyText = Texts.Get(
0)
      

'   SendMyText
Dim i As Intent
i.Initialize(i.ACTION_VIEW, 
"sms:0123456789")  ' Phone Number | Numero di telefono
i.PutExtra("sms_body", MyText )
StartActivity(i)



End If


End Sub

Last edited by vb1992 : 01-29-2012 at 05:58 PM.
Reply With Quote
  #3 (permalink)  
Old 01-29-2012, 07:11 PM
fifiddu70's Avatar
Senior Member
 
Join Date: Jan 2012
Location: Partanna ( TP ) Italy
Posts: 194
Send a message via Skype™ to fifiddu70
Default

grazie per la risposta, credevo che fossi rimasto solo su questo forum, adesso mi metto a lavoro e ti farò sapere.
Reply With Quote
  #4 (permalink)  
Old 01-29-2012, 07:46 PM
fifiddu70's Avatar
Senior Member
 
Join Date: Jan 2012
Location: Partanna ( TP ) Italy
Posts: 194
Send a message via Skype™ to fifiddu70
Default

il tuo codice funziona, ma non e quello che volevo per esattezza in sostanza io volevo che alla fine del voice recognition, mi mettesse il risultato in una view e cioè in una editext che ho rinominato in txtsms. invece il tuo codice fa aprire un'altra schermata con il testo digitabile e le varie opzioni. spero di essere stato chiaro. comunque grazie in anticipo
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Voice Recognition Example Erel Basic4android Getting started & Tutorials 18 05-15-2012 03:05 AM
Continuous Voice Recognition Jack Cole Basic4android Updates and Questions 1 01-01-2012 02:24 PM
Voice Recognition Example Jamie Basic4android Getting started & Tutorials 8 12-20-2011 07:11 PM
Voice recognition - pausing voice - wait for x seconds Silentsea Basic4android Updates and Questions 1 08-14-2011 07:13 AM
Voice Recognition Help Please! T8TRG8TR Basic4android Updates and Questions 6 04-17-2011 05:55 PM


All times are GMT. The time now is 11:41 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0