• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Search Button with speech recognition (ANDROID)

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Rancher
Posts: 5008
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Rancher
Posts: 5008
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Because those who mind don't matter and those who matter don't mind - Seuss. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic