LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   Hardware to trigger a voice command (arecord)? (http://www.linuxquestions.org/questions/showthread.php?t=4175461712)

patrick295767 05-13-2013 02:15 AM

Hardware to trigger a voice command (arecord)?
 
Hello,

Regularly I use a irda remote control to start/stop arecord to voice control. (Thread: Kinda brainstorming about arecord and use.)

ex: I press on remote "start" and I say radio, press "STOP", and I get the radio playing. Fine. ok.

But I would like to find another alternative.

Alternative (1) Maybe to detect voice level (low) and high to start recording with arecord?

Alternative (2) arecord all minutes for 10 secs?

Any other alternatives? Any idea how to make it more hand-free?

Thank you and best regards

Shadow_7 05-13-2013 02:39 PM

What do you have that's doing the recognition part to translate a unique word into an event? And how seperated is the mic and speakers. You say radio and playing next is "video killed the radio star", how does the application know not to listen to the radio.

You can record with sox, arecord, and a number of other command line based apps. Does it have to be arecord? And if you have to push buttons anyway, why not just push once for a button to do the radio? Or even a hotkey combo. Hotkey works for blind people. Icon button works for deaf ones. Audacity has features for voice activation to start recording. Although I'm unsure if it creates unique but numbered files from it. Or what tells it to stop recording once it starts. And there's that whole need a gui environment issue.

patrick295767 05-13-2013 11:26 PM

Quote:

Originally Posted by Shadow_7 (Post 4950353)
What do you have that's doing the recognition part to translate a unique word into an event? And how seperated is the mic and speakers. You say radio and playing next is "video killed the radio star", how does the application know not to listen to the radio.

You can record with sox, arecord, and a number of other command line based apps. Does it have to be arecord? And if you have to push buttons anyway, why not just push once for a button to do the radio? Or even a hotkey combo. Hotkey works for blind people. Icon button works for deaf ones. Audacity has features for voice activation to start recording. Although I'm unsure if it creates unique but numbered files from it. Or what tells it to stop recording once it starts. And there's that whole need a gui environment issue.

The idea behind is to avoid any remote or any push-button.

Audacity has features for voice activation to start recording. sounds interesting.
I know that for instance arecord could be constantly recording, and as soon as the recorded volume (in db, ..) is sufficient, it could activate a further step.

There are sort of tomtom's that are activated by voice.

business_kid 05-14-2013 03:22 AM

There is already established electronic hardware circuitry for doing this. It works on the principle that noise is quieter than signal. Background noise below a certain level is ignored, and a logical switch activates when the sound reaches a certain level, for a certain period.
It's not great, except on a low noise microphone in a quiet hall. The constant danger is losing the first few syllables. Ideally, there's a delay line somewhere to trap those, but people rarely go to the bother. Once you introduce software, it's a mess. Get another idea

patrick295767 05-18-2013 12:22 AM

Quote:

Originally Posted by business_kid (Post 4950677)
There is already established electronic hardware circuitry for doing this. It works on the principle that noise is quieter than signal. Background noise below a certain level is ignored, and a logical switch activates when the sound reaches a certain level, for a certain period.
It's not great, except on a low noise microphone in a quiet hall. The constant danger is losing the first few syllables. Ideally, there's a delay line somewhere to trap those, but people rarely go to the bother. Once you introduce software, it's a mess. Get another idea

It is not that bad thing. I am currently looking the code of arecord to implement such a thing... not easy... :(

business_kid 05-18-2013 08:50 AM

Quote:

Originally Posted by patrick295767 (Post 4953525)
It is not that bad thing. I am currently looking the code of arecord to implement such a thing... not easy... :(

I would try: listen constantly and pipe to a fifo (easy bit). The fifo is a First In First Out file. Then play and examine the volume (some peak meter. Trigger arecord on a certain volume, and assign the other stuff to a First In Never Out device like /dev/null.

It won't be a patch on hardware. You might even find a mike with the hardware implemented.


All times are GMT -5. The time now is 03:36 PM.