maybe i'm wrong about sphinx, but I want to be able to have something be voice
independent and understand certain keywords people may say, and then based on
that run a linux command.
I would be doing this on a server not a desktop, so I need something with
command line capability, and maybe php web.
I played around with pocketsphinx last night, but couldnt get anything
exciting to happen...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
"I'm all such a mysterious person such contradictory one". Come on, if you
don't know what to do who else will help you :)
I played around with pocketsphinx last night, but couldnt get anything
exciting to happen...
Well, probably you did some strange things. It's just a simple engineering
task. you have a complex task, you need to split in on parts until solution
will be clear and solve each one like:
Transfer speech from client to server (Flash could be used here or Java applet or upload)
Recognize speech (You can create your own pocketsphinx solution or better use web service like http://www.speechapi.com that's easier to start with)
Do commands (on http request you can do everything you need with PHP)
Now once you'll have such decomposition try to approach at least one point
above. Try to solve it or decompose if needed or just ask what you don't
understand. But please be more precise, it's funny to read questions sometimes
but not so funny to answer on them.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It tells you it can't record from your device. It might be input muted or
permission problem for example.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-01-29
/dev/dsp was:
crw-r--r-- 1 root root 14, 3 Mar 20 2007 /dev/dsp
and I chmod to 664, and change group to the users group (not that it should
matter):
crw-rw-r-- 1 root users 14, 3 Mar 20 2007 /dev/dsp
Still the same error.
Here is the USB headset/mic in /proc/bus/usb/devices:
Headset USB microphone is most likely something like /dev/dsp1. Try to record
audio with any recording application like audacity, you'll easily find the
correct device.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2010-01-30
nope thats not it, my distro only comes with /dev/dsp. Even when i add
/dev/dsp1 manually. The system only uses that if I have two USB audio devices
plugged in ( I have no PCI audio devices). I've tried cvoicecontrol and its
buggy, but was able to pick up the mic input on my headset on /dev/dsp. I am
unable to install audacity because I don't have a monitor on this server, and
don't have ALSA.
I was able to get it to work with a plain USB mic, but not with the headset:
You probalby shouldn't bother much with OSS bugs, unix audio still sucks after
years. Try to record in a file and decode with pocketsphinx_batch. I think it
will be enough for experiments.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
maybe i'm wrong about sphinx, but I want to be able to have something be voice
independent and understand certain keywords people may say, and then based on
that run a linux command.
I would be doing this on a server not a desktop, so I need something with
command line capability, and maybe php web.
I played around with pocketsphinx last night, but couldnt get anything
exciting to happen...
"I'm all such a mysterious person such contradictory one". Come on, if you
don't know what to do who else will help you :)
Well, probably you did some strange things. It's just a simple engineering
task. you have a complex task, you need to split in on parts until solution
will be clear and solve each one like:
Now once you'll have such decomposition try to approach at least one point
above. Try to solve it or decompose if needed or just ask what you don't
understand. But please be more precise, it's funny to read questions sometimes
but not so funny to answer on them.
Here is what I got:
It tells you it can't record from your device. It might be input muted or
permission problem for example.
/dev/dsp was:
crw-r--r-- 1 root root 14, 3 Mar 20 2007 /dev/dsp
and I chmod to 664, and change group to the users group (not that it should
matter):
crw-rw-r-- 1 root users 14, 3 Mar 20 2007 /dev/dsp
Still the same error.
Here is the USB headset/mic in /proc/bus/usb/devices:
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=046d ProdID=0a0c Rev=10.13
S: Manufacturer=Logitech
S: Product=Logitech USB Headset
S: SerialNumber=c0a5d6b2d3b6fede9ccf9abad2b1d4a0
C: #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
I: If#= 1 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
I: If#= 1 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=01(O) Atr=0d(Isoc) MxPS= 192 Ivl=1ms
I: If#= 1 Alt= 2 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=01(O) Atr=0d(Isoc) MxPS= 96 Ivl=1ms
I: If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
I: If#= 2 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E: Ad=84(I) Atr=0d(Isoc) MxPS= 96 Ivl=1ms
I:* If#= 3 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=83(I) Atr=03(Int.) MxPS= 2 Ivl=8ms
Headset USB microphone is most likely something like /dev/dsp1. Try to record
audio with any recording application like audacity, you'll easily find the
correct device.
nope thats not it, my distro only comes with /dev/dsp. Even when i add
/dev/dsp1 manually. The system only uses that if I have two USB audio devices
plugged in ( I have no PCI audio devices). I've tried cvoicecontrol and its
buggy, but was able to pick up the mic input on my headset on /dev/dsp. I am
unable to install audacity because I don't have a monitor on this server, and
don't have ALSA.
I was able to get it to work with a plain USB mic, but not with the headset:
/usr/local/bin/pocketsphinx_continuous -lm ./../data/pocketsphinx/current.lm
-dict ./../data/pocketsphinx/current.dic -hmm
/usr/local/share/pocketsphinx/model/hmm/wsj1 -samprate 8000 -adcdev /dev/dsp
You probalby shouldn't bother much with OSS bugs, unix audio still sucks after
years. Try to record in a file and decode with pocketsphinx_batch. I think it
will be enough for experiments.
I want to develop an application using "cmusphinx" for convert waves(mp3,video
audio ) to text and vice versa using PHP
any kind of help is appreciated.
Thanks
You can invoke pocketsphinx_continuous binary from php and store text results.
It's relatively simple to implement.