LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 05-13-2013, 03:15 AM   #1
patrick295767
Member
 
Registered: Feb 2006
Distribution: Debian
Posts: 275

Rep: Reputation: 39
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
 
Old 05-13-2013, 03:39 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,554

Rep: Reputation: 241Reputation: 241Reputation: 241
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.
 
Old 05-14-2013, 12:26 AM   #3
patrick295767
Member
 
Registered: Feb 2006
Distribution: Debian
Posts: 275

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by Shadow_7 View Post
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.
 
Old 05-14-2013, 04:22 AM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,624

Rep: Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585
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
 
Old 05-18-2013, 01:22 AM   #5
patrick295767
Member
 
Registered: Feb 2006
Distribution: Debian
Posts: 275

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by business_kid View Post
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...
 
Old 05-18-2013, 09:50 AM   #6
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,624

Rep: Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585Reputation: 585
Quote:
Originally Posted by patrick295767 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Voice to command & text/command to voice programs ITPhoenix Linux - Newbie 4 10-31-2011 03:10 PM
Trigger jenkins build with URL trigger when using git? jonizen Linux - Server 1 10-14-2011 02:07 PM
LXer: Trigger keyboard and mouse actions with your voice and xdotool LXer Syndicated Linux News 0 09-06-2011 03:10 AM
What is the trigger command for Customizing RHEL? mrdancemachine Linux - Newbie 3 05-21-2008 07:54 PM
Trigger linux command by windows batch file? mariusak Linux - Networking 6 06-03-2005 06:15 AM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration