this will install the core of sphinx in /usr/local
|2))))))))))))))))))
choose between 4 software to use sphinxbase:
sphinx2 - October 13, 2005
sphinx3 - August 3, 2006
sphinx4 - September 27, 2004
pocketsphinx - January 26, 2007
looking at the date someone would go for pocketsphinx (this is my option
+ sphinx3). pocketsphinx is aim for mobile device but it's working very
well for desktop too. sphinx4 use java. sphinx2 or sphinx3... i will use
sphinx3.
ERROR****
the last line is:
FATAL_ERROR: "cmd_ln.c", line 692: Unknown argument: -adcin
let's try another one:
/usr/local/bin/pocketsphinx_test
ERROR****
Warning: Could not find Mic element
Warning: Could not find Capture element
INFO: tty-continuous.c(257): /usr/local/bin/pocketsphinx_continuous
COMPILED ON: Jul 19 2007, AT: 13:56:58
FATAL_ERROR: "tty-continuous.c", line 123: cont_ad_calib failed
i have alsa working with a DELTA-1010LT. please fill the missing parts
(like setting alsa or software that use sphinx for newbie can see it in
action).
my goal is to add a speech recognition engine to pure data (a dataflow
open source software).
pat
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
yes it's a good soundcard (m-audio delta 1010lt). i worked hard for it (it's 300$). i've been using linux for years but never alsa, cause i am using jack. with jack i can do input / output in almost realtime (2.4 ms latency). that's why i don't know a thing about alsa. so i will dig alsa (i know there's a file called asound.rc to configure the soundcard...).
thank you for your time.
pat
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hmm, that looks like a pretty fancy soundcard. I guess it is reasonable to assume that if someone has a card like that then they know how to turn on the appropriate inputs in the mixer themselves.
However the "could not find Mic element" and "could not find Capture element" things are just warnings. If you're having trouble actually getting speech input out of this soundcard, make sure that you can record audio from it by using, e.g. Audacity or arecord or something. If that works then Sphinx should probably work too.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi all
here's a little tutorial i wrote myself to remember how to install sphinx3 and pocketsphinx. but it's not working. see below.
to install sphinx on linux you need basic compiler tools (autoconf,
automake, libtools, svn and such).
1))))))))))))))))))
mkdir sphinx; cd sphinx
|svn co
https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/sphinxbase
cd sphinxbase
./autogen --with-alsa
make
make install
this will install the core of sphinx in /usr/local
|2))))))))))))))))))
choose between 4 software to use sphinxbase:
sphinx2 - October 13, 2005
sphinx3 - August 3, 2006
sphinx4 - September 27, 2004
pocketsphinx - January 26, 2007
looking at the date someone would go for pocketsphinx (this is my option
+ sphinx3). pocketsphinx is aim for mobile device but it's working very
well for desktop too. sphinx4 use java. sphinx2 or sphinx3... i will use
sphinx3.
let's install sphinx3
cd ..
|svn co
https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/sphinx3
cd sphinx3
|./autogen --with-alsa
make
make install
let's install pocketsphinx
cd ..
|svn co
https://cmusphinx.svn.sourceforge.net/svnroot/cmusphinx/trunk/pocketsphinx
cd pocketsphinx
./autogen --with-alsa
make
make install
|
3))))))))))))))))))
it's time to test sphinx!!! you don't need to be root to use the
software. here's what we installed in /usr/local/bin
gausubvq
lm_convert
pocketsphinx_batch
pocketsphinx_continuous
pocketsphinx_mdef_convert
pocketsphinx_ptt
pocketsphinx_swb
pocketsphinx_test
pocketsphinx_tidigits
sphinx3_align
sphinx3_allphone
sphinx3_astar
sphinx3_cfg2fsg
sphinx3_conf
sphinx3_continuous
sphinx3_dag
sphinx3_decode
sphinx3_decode_anytopo
sphinx3_dp
sphinx3_ep
sphinx3_livedecode
sphinx3_livepretend
sphinx3-simple
sphinx_cepview
sphinx_fe
let's try this one:
/usr/local/bin/sphinx3-simple
ERROR****
the last line is:
FATAL_ERROR: "cmd_ln.c", line 692: Unknown argument: -adcin
let's try another one:
/usr/local/bin/pocketsphinx_test
ERROR****
Warning: Could not find Mic element
Warning: Could not find Capture element
INFO: tty-continuous.c(257): /usr/local/bin/pocketsphinx_continuous
COMPILED ON: Jul 19 2007, AT: 13:56:58
FATAL_ERROR: "tty-continuous.c", line 123: cont_ad_calib failed
i have alsa working with a DELTA-1010LT. please fill the missing parts
(like setting alsa or software that use sphinx for newbie can see it in
action).
my goal is to add a speech recognition engine to pure data (a dataflow
open source software).
pat
hi david,
yes it's a good soundcard (m-audio delta 1010lt). i worked hard for it (it's 300$). i've been using linux for years but never alsa, cause i am using jack. with jack i can do input / output in almost realtime (2.4 ms latency). that's why i don't know a thing about alsa. so i will dig alsa (i know there's a file called asound.rc to configure the soundcard...).
thank you for your time.
pat
> the last line is:
> FATAL_ERROR: "cmd_ln.c", line 692: Unknown argument: -adcin
Oops, the SVN version has been a bit unstable lately. This bug should be fixed.
This I am not sure about:
Warning: Could not find Mic element
Warning: Could not find Capture element
Can you post the output of 'amixer'?
sure!
Simple mixer control 'IEC958',0
Capabilities: enum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'H/W In 2' 'H/W In 3' 'H/W In 4' 'H/W In 5' 'H/W In 6' 'H/W In 7' 'IEC958 In L' 'IEC958 In R' 'Digital Mixer'
Item0: 'PCM Out'
Simple mixer control 'IEC958 Multi',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 96
Front Left: Capture 0 [0%] [off]
Front Right: Capture 0 [0%] [off]
Simple mixer control 'IEC958 Multi',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 96
Front Left: Capture 0 [0%] [off]
Front Right: Capture 0 [0%] [off]
Simple mixer control 'IEC958',1
Capabilities: enum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'H/W In 2' 'H/W In 3' 'H/W In 4' 'H/W In 5' 'H/W In 6' 'H/W In 7' 'IEC958 In L' 'IEC958 In R' 'Digital Mixer'
Item0: 'PCM Out'
Simple mixer control 'ADC',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 163
Mono: 136 [83%] [4.50dB]
Simple mixer control 'ADC',1
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 163
Mono: 135 [83%] [4.00dB]
Simple mixer control 'ADC',2
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 163
Mono: 115 [71%] [-6.00dB]
Simple mixer control 'ADC',3
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 163
Mono: 115 [71%] [-6.00dB]
Simple mixer control 'ADC',4
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 163
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'ADC',5
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 163
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'ADC',6
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 163
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'ADC',7
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 163
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'DAC',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 127
Mono: 115 [91%] [-6.00dB]
Simple mixer control 'DAC',1
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 127
Mono: 115 [91%] [-6.00dB]
Simple mixer control 'DAC',2
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 127
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'DAC',3
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 127
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'DAC',4
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 127
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'DAC',5
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 127
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'DAC',6
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 127
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'DAC',7
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 127
Mono: 0 [0%] [-99999.99dB]
Simple mixer control 'Deemphasis',0
Capabilities: enum
Items: '44.1kHz' 'Off' '48kHz' '32kHz'
Item0: 'Off'
Simple mixer control 'Deemphasis',1
Capabilities: enum
Items: '44.1kHz' 'Off' '48kHz' '32kHz'
Item0: 'Off'
Simple mixer control 'Deemphasis',2
Capabilities: enum
Items: '44.1kHz' 'Off' '48kHz' '32kHz'
Item0: 'Off'
Simple mixer control 'Deemphasis',3
Capabilities: enum
Items: '44.1kHz' 'Off' '48kHz' '32kHz'
Item0: 'Off'
Simple mixer control 'H/W',0
Capabilities: enum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'H/W In 2' 'H/W In 3' 'H/W In 4' 'H/W In 5' 'H/W In 6' 'H/W In 7' 'IEC958 In L' 'IEC958 In R' 'Digital Mixer'
Item0: 'PCM Out'
Simple mixer control 'H/W',1
Capabilities: enum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'H/W In 2' 'H/W In 3' 'H/W In 4' 'H/W In 5' 'H/W In 6' 'H/W In 7' 'IEC958 In L' 'IEC958 In R' 'Digital Mixer'
Item0: 'PCM Out'
Simple mixer control 'H/W',2
Capabilities: enum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'H/W In 2' 'H/W In 3' 'H/W In 4' 'H/W In 5' 'H/W In 6' 'H/W In 7' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'H/W',3
Capabilities: enum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'H/W In 2' 'H/W In 3' 'H/W In 4' 'H/W In 5' 'H/W In 6' 'H/W In 7' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'H/W',4
Capabilities: enum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'H/W In 2' 'H/W In 3' 'H/W In 4' 'H/W In 5' 'H/W In 6' 'H/W In 7' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'H/W',5
Capabilities: enum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'H/W In 2' 'H/W In 3' 'H/W In 4' 'H/W In 5' 'H/W In 6' 'H/W In 7' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'H/W',6
Capabilities: enum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'H/W In 2' 'H/W In 3' 'H/W In 4' 'H/W In 5' 'H/W In 6' 'H/W In 7' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'H/W',7
Capabilities: enum
Items: 'PCM Out' 'H/W In 0' 'H/W In 1' 'H/W In 2' 'H/W In 3' 'H/W In 4' 'H/W In 5' 'H/W In 6' 'H/W In 7' 'IEC958 In L' 'IEC958 In R'
Item0: 'PCM Out'
Simple mixer control 'H/W Multi',0
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 96
Front Left: Capture 96 [100%] [0.00dB] [on]
Front Right: Capture 0 [0%] [-144.00dB] [off]
Simple mixer control 'H/W Multi',1
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 96
Front Left: Capture 0 [0%] [-144.00dB] [off]
Front Right: Capture 96 [100%] [0.00dB] [on]
Simple mixer control 'H/W Multi',2
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 96
Front Left: Capture 96 [100%] [0.00dB] [on]
Front Right: Capture 0 [0%] [-144.00dB] [off]
Simple mixer control 'H/W Multi',3
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 96
Front Left: Capture 0 [0%] [-144.00dB] [off]
Front Right: Capture 96 [100%] [0.00dB] [on]
Simple mixer control 'H/W Multi',4
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 96
Front Left: Capture 96 [100%] [0.00dB] [on]
Front Right: Capture 0 [0%] [-144.00dB] [off]
Simple mixer control 'H/W Multi',5
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 96
Front Left: Capture 0 [0%] [-144.00dB] [off]
Front Right: Capture 96 [100%] [0.00dB] [on]
Simple mixer control 'H/W Multi',6
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 96
Front Left: Capture 96 [100%] [0.00dB] [on]
Front Right: Capture 0 [0%] [-144.00dB] [off]
Simple mixer control 'H/W Multi',7
Capabilities: cvolume cswitch
Capture channels: Front Left - Front Right
Limits: Capture 0 - 96
Front Left: Capture 0 [0%] [-144.00dB] [off]
Front Right: Capture 96 [100%] [0.00dB] [on]
Simple mixer control 'Multi',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 96
Mono:
Front Left: Playback 96 [100%] [0.00dB] [on]
Front Right: Playback 0 [0%] [-144.00dB] [off]
Simple mixer control 'Multi',1
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 96
Mono:
Front Left: Playback 0 [0%] [-144.00dB] [off]
Front Right: Playback 96 [100%] [0.00dB] [on]
Simple mixer control 'Multi',2
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 96
Mono:
Front Left: Playback 0 [0%] [-144.00dB] [off]
Front Right: Playback 0 [0%] [-144.00dB] [off]
Simple mixer control 'Multi',3
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 96
Mono:
Front Left: Playback 0 [0%] [-144.00dB] [off]
Front Right: Playback 0 [0%] [-144.00dB] [off]
Simple mixer control 'Multi',4
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 96
Mono:
Front Left: Playback 0 [0%] [-144.00dB] [on]
Front Right: Playback 0 [0%] [-144.00dB] [off]
Simple mixer control 'Multi',5
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 96
Mono:
Front Left: Playback 0 [0%] [-144.00dB] [off]
Front Right: Playback 96 [100%] [0.00dB] [off]
Simple mixer control 'Multi',6
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 96
Mono:
Front Left: Playback 0 [0%] [-144.00dB] [off]
Front Right: Playback 0 [0%] [-144.00dB] [off]
Simple mixer control 'Multi',7
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 96
Mono:
Front Left: Playback 0 [0%] [-144.00dB] [off]
Front Right: Playback 0 [0%] [-144.00dB] [off]
Simple mixer control 'Multi',8
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 96
Mono:
Front Left: Playback 0 [0%] [-144.00dB] [off]
Front Right: Playback 0 [0%] [-144.00dB] [off]
Simple mixer control 'Multi',9
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 96
Mono:
Front Left: Playback 0 [0%] [-144.00dB] [off]
Front Right: Playback 0 [0%] [-144.00dB] [off]
Simple mixer control 'Multi Track Internal Clock',0
Capabilities: enum
Items: '8000' '9600' '11025' '12000' '16000' '22050' '24000' '32000' '44100' '48000' '64000' '88200' '96000' 'IEC958 Input'
Item0: '44100'
Simple mixer control 'Multi Track Internal Clock Default',0
Capabilities: enum
Items: '8000' '9600' '11025' '12000' '16000' '22050' '24000' '32000' '44100' '48000' '64000' '88200' '96000'
Item0: '44100'
Simple mixer control 'Multi Track Peak',0
Capabilities: volume
Playback channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right - Rear Center - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
Capture channels: Front Left - Front Right - Rear Left - Rear Right - Front Center - Woofer - Side Left - Side Right - Rear Center - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ? - ?
Limits: 0 - 255
Front Left: 0 [0%]
Front Right: 0 [0%]
Rear Left: 0 [0%]
Rear Right: 0 [0%]
Front Center: 0 [0%]
Woofer: 0 [0%]
Side Left: 0 [0%]
Side Right: 0 [0%]
Rear Center: 0 [0%]
?: 0 [0%]
?: 0 [0%]
?: 0 [0%]
?: 0 [0%]
?: 0 [0%]
?: 0 [0%]
?: 0 [0%]
?: 0 [0%]
?: 0 [0%]
?: 0 [0%]
?: 0 [0%]
?: 0 [0%]
?: 0 [0%]
Simple mixer control 'Multi Track Rate Locking',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Multi Track Rate Reset',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Multi Track Volume Rate',0
Capabilities: volume volume-joined
Playback channels: Mono
Capture channels: Mono
Limits: 0 - 255
Mono: 48 [19%]
Simple mixer control 'Word Clock Status',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Simple mixer control 'Word Clock Sync',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [off]
Hmm, that looks like a pretty fancy soundcard. I guess it is reasonable to assume that if someone has a card like that then they know how to turn on the appropriate inputs in the mixer themselves.
However the "could not find Mic element" and "could not find Capture element" things are just warnings. If you're having trouble actually getting speech input out of this soundcard, make sure that you can record audio from it by using, e.g. Audacity or arecord or something. If that works then Sphinx should probably work too.