voice icon indicating copy to clipboard operation
voice copied to clipboard

Is it possible to listen for specific word?

Open WeTruck opened this issue 4 years ago • 8 comments

Dear community,

I'm building an android app with React native. This package is working well to capture voice. But I want the device to listen always and trigger an event after saying a specific word (like "Hello myapp!").

I've tried, https://github.com/spokestack/react-native-spokestack But it's not working.

Any help is greatly appreciated.

WeTruck avatar Jul 03 '20 11:07 WeTruck

Hi,

I don’t understand your question ? To find a specific word you start the voice recognition and you .find the result ? Or I misunderstood your need.

Best regards

LudoLamerre avatar Oct 22 '20 00:10 LudoLamerre

@LudoLamerre Thank you.

I actually want this,

  • Open the app.
  • I'm saying anything .. etc etc .. just casual talking.
  • But if I say any specific word, like 'Hello app', the app should trigger an event after saying this.

Is it clear enough?

WeTruck avatar Oct 22 '20 19:10 WeTruck

Yes, ok. 🙂 I'm not an expert of this package but do you try to launch the Voice.start() when your app is started, and run a function who check if the word is present when the results state change. If the word is find you trigger an event and if not you have to handle the useless part of result. But I don't know if it is the best way to do this because continuously listening to the user requires running the speech-to-text algorithm continuously and I think it's a bit heavy.

LudoLamerre avatar Oct 23 '20 06:10 LudoLamerre

Good question and i want to get answer too. Would be great if package developer answers himself. I think question is clear: How to start listening by saying command word, like hey Google or Alexa.

SergiOnGit avatar Jan 15 '21 08:01 SergiOnGit

I think question is clear: How to start listening by saying command word, like hey Google or Alexa.

You cannot activate listening, after hearing a word ... You have to listen before you can hear ... Google and Alexa listen continuously to be able to pick up certain words and launch the voice that awaits a sentence to be processed

LudoLamerre avatar Jan 15 '21 14:01 LudoLamerre

I understand, thank you @LudoLamerre

SergiOnGit avatar Jan 15 '21 14:01 SergiOnGit

I think question is clear: How to start listening by saying command word, like hey Google or Alexa.

You cannot activate listening, after hearing a word ... You have to listen before you can hear ... Google and Alexa listen continuously to be able to pick up certain words and launch the voice that awaits a sentence to be processed

Can we do the same with this lib, pick up certain words and open a modal

phongbksneep avatar Mar 17 '21 03:03 phongbksneep

it's a very nice question I'm really interested if you got an answer please inform me thank you

@LudoLamerre Thank you.

I actually want this,

  • Open the app.
  • I'm saying anything .. etc etc .. just casual talking.
  • But if I say any specific word, like 'Hello app', the app should trigger an event after saying this.

Is it clear enough?

mmoussel avatar Dec 23 '21 02:12 mmoussel