• Post Reply Bookmark Topic Watch Topic
  • New Topic

Search Button with speech recognition (ANDROID)  RSS feed

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I made these two functions for speech recognition. the first function is called by a button in mainActivity. onActivityResult I am trying to compare speechResult exists in my file and if it exists I want to call PlayVideo activity but this never happens... in other words I want the user press the button and speak, after that, I want to search the speechresult in my file of videos and display him that title that said. for example, if my file got the title "butterfly" and user said it, i want to display him this video.


 
Master Rancher
Posts: 2579
30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you trying to debug the code to see what it is doing?
I use print statements that write values to the logcat so I can see the values in the variables to understand what the code is doing.
 
John Vario
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was testing it in my smartphone... it recognises the speech but doesnt redirect them to video , for example i am saying butterfly , it is recognising the phrase, but it doesnt redirect me to the specific video... (the video title exists in file)
 
Norm Radder
Master Rancher
Posts: 2579
30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

it doesnt redirect me to the specific video...


What code is supposed to do that?  Is the code working the way you want?  If not, why not? 
Debug the code to see what it is doing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!