Re: [asterisk-users] Sphinx and Asterisk Integration, How?

2006-07-19 Thread Matt Riddell (NZ)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Zeeshan Zakaria wrote:
 I installed the packages listed on this webpage. But What is meant here by
 Server and Clients. Do I have to write these programs and then run then
 somehow, one on server and one on some client. From server I understand
 Asterisk box, but where is the client?

The client is the agi script in Asterisk.  Both the server and the
client can reside on the same machine.

- --
Cheers,

Matt Riddell
___

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://freevoip.gedameurope.com (Free Asterisk Voip Community)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEvu0sS6d5vy0jeVcRAmvKAJ9GqGybtB8hrgUE2deak5NX94+1GwCfe7fR
rgemAyj3+UXzJOgslhuQPA8=
=XQg8
-END PGP SIGNATURE-
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Sphinx and Asterisk Integration, How?

2006-07-18 Thread Zeeshan Zakaria
I installed the packages listed on this webpage. But What is meant here by Server and Clients. Do I have to write these programs and then run then somehow, one on server and one on some client. From server I understand Asterisk box, but where is the client?
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Sphinx and Asterisk Integration, How?

2006-07-17 Thread Matt Riddell (NZ)
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Zeeshan Zakaria wrote:
 After several hours of searching the Internet, couldn't understand how
 can I
 integrate Asterisk with Sphinx voice recognition system. The sphinx
 software
 itself I've installed on my server.
 
 I need help from those who have successfully done it and can guide me
 how to
 do it.
 Thanks

:-)

Top link on Google:

http://www.voip-info.org/wiki-Sphinx

- --
Cheers,

Matt Riddell
___

http://www.sineapps.com/news.php (Daily Asterisk News - html)
http://freevoip.gedameurope.com (Free Asterisk Voip Community)
http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEuzxpS6d5vy0jeVcRAmdwAKCJ+w19Tg+fbEacnymqhBCc+xDu4QCfY5SS
Ksu18Wqeqt/eDVeWVpwDUSo=
=Qhar
-END PGP SIGNATURE-
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Sphinx and Asterisk Integration, How?

2006-07-17 Thread Zeeshan Zakaria
I searched these pages already, but don't understand what is needed to be done. They are missing a few steps which are needed for people not very advanced in programming.
On 7/17/06, Matt Riddell (NZ) [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-Hash: SHA1Zeeshan Zakaria wrote: After several hours of searching the Internet, couldn't understand how
 can I integrate Asterisk with Sphinx voice recognition system. The sphinx software itself I've installed on my server. I need help from those who have successfully done it and can guide me
 how to do it. Thanks:-)Top link on Google:http://www.voip-info.org/wiki-Sphinx- --Cheers,Matt Riddell
___http://www.sineapps.com/news.php (Daily Asterisk News - html)http://freevoip.gedameurope.com
 (Free Asterisk Voip Community)http://www.sineapps.com/rssfeed.php (Daily Asterisk News - rss)-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.orgiD8DBQFEuzxpS6d5vy0jeVcRAmdwAKCJ+w19Tg+fbEacnymqhBCc+xDu4QCfY5SSKsu18Wqeqt/eDVeWVpwDUSo==Qhar-END PGP SIGNATURE-
___--Bandwidth and Colocation provided by Easynews.com --asterisk-users mailing listTo UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users-- Zeeshan A Zakaria 
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] Sphinx and Asterisk Integration, How?

2006-07-16 Thread Zeeshan Zakaria
After several hours of searching the Internet, couldn't understand how can I integrate Asterisk with Sphinx voice recognition system. The sphinx software itself I've installed on my server.

I need help from those who have successfully done it and can guide me how to do it.
Thanks-- Zeeshan A Zakaria 
___
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Sphinx

2006-04-25 Thread Douglas Garstang
Ok, anyone used Sphinx with Asterisk? The docs are great at telling me how the 
internals of the damn thing work, but now how to USE it. I can't find a single 
example of how to run 'decode' in command line mode, without specifying a 
billion options!

Doug.
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Sphinx

2005-02-16 Thread Mark Kidd
Has anybody managed to implement Sphinx in their * system reasonably
painlessly.

if so:

does it cause any problems with normal * operations.
does it place any sort of constant heavy load on the machine.

are there options for simple vs advanced implementations.

all i am looking for is basicaly for a person to say a branch name.

ie: johannesburg

thanks


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Sphinx

2005-02-16 Thread Chris Albertson

In a production environment, I would not attempt to run Sphinx on
the same computer as Asterisk   A few users interacting with
Sphinx could consume all of the server's resources and then some.

Same goes for DMBS servers, One big N-way join could tie up a
CPU for tens of seconds.



--- Mark Kidd [EMAIL PROTECTED] wrote:

 Has anybody managed to implement Sphinx in their * system reasonably
 painlessly.
 
 if so:
 
 does it cause any problems with normal * operations.
 does it place any sort of constant heavy load on the machine.
 
 are there options for simple vs advanced implementations.
 
 all i am looking for is basicaly for a person to say a branch name.
 
 ie: johannesburg
 
 thanks
 
 
 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
 


=
Chris Albertson
  Home:   310-376-1029  [EMAIL PROTECTED]
  Cell:   310-990-7550
  Office: 310-336-5189  [EMAIL PROTECTED]
  KG6OMK



__ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Sphinx

2005-01-03 Thread Barry Porch








Is anyone doing anything useful with Sphinx?



There is a small amount of info on the wiki
to help with implementing it but Im curious if anyone is actually using
it.



Barry








___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

RE: [Asterisk-Users] Sphinx

2005-01-03 Thread brian



What is it? Besides a statue in a dusty part of 
Egypt.

Brian Greul Texas Shirt Company www.txshirts.com 713-802-0369 / 713-861-6261 
(fax) 



From: Barry Porch 
[mailto:[EMAIL PROTECTED] Sent: Monday, January 03, 2005 
2:05 PMTo: Asterisk Users Mailing List - Non-Commercial 
DiscussionSubject: [Asterisk-Users] Sphinx


Is anyone doing anything useful with 
Sphinx?

There is a small amount of info on 
the wiki to help with implementing it but Im curious 
if anyone is actually using it.

Barry

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

RE: [Asterisk-Users] Sphinx

2005-01-03 Thread Steven Critchfield
On Mon, 2005-01-03 at 14:22 -0600, [EMAIL PROTECTED] wrote:
 What is it?  Besides a statue in a dusty part of Egypt.

A very good example of when you should turn to google and ask the
question. With about the same amount of effort as asking here you could
have found out it is speech recognition software from CMU. 

Also TURN OFF HTML in your email. 
 
 __
 From: Barry Porch [mailto:[EMAIL PROTECTED] 
 Sent: Monday, January 03, 2005 2:05 PM
 To: Asterisk Users Mailing List - Non-Commercial Discussion
 Subject: [Asterisk-Users] Sphinx
 
 
 
 Is anyone doing anything useful with Sphinx?
 
  
 
 There is a small amount of info on the wiki to help with implementing
 it but Im curious if anyone is actually using it.

-- 
Steven Critchfield [EMAIL PROTECTED]

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Sphinx

2005-01-03 Thread Race Vanderdecken








I used it about 18 months ago with
Asterisk, 7960s and microphones in a room. It does work,



You need to get the grammars
correct.



Talk to Emmett Coin at www.ejtalk.com, he is a professor and Dr. of
speech recognition and he did the work.



Race Vanderdecken



-Original Message-
From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Barry Porch
Sent: 03 January 2005 15:05
To: Asterisk Users Mailing List -
Non-Commercial Discussion
Subject: [Asterisk-Users] Sphinx



Is anyone doing anything useful with
Sphinx?



There is a small amount of info on
the wiki to help with implementing it but Im curious if anyone is
actually using it.



Barry








___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [Asterisk-Users] Sphinx

2005-01-03 Thread Mario Roberto Ginglass
A great universe to explore...
I tried some 6 months ago but there isn´t any great voice project in
portuguese (Brazilian)... and CMU release a test code to windows... sphinks
+ festival + portuguese

If you have any news about shpinx+asterisk please let us know...

Happy new year,

Mario

- Original Message - 
From: Barry Porch [EMAIL PROTECTED]
To: Asterisk Users Mailing List - Non-Commercial Discussion
asterisk-users@lists.digium.com
Sent: Monday, January 03, 2005 6:05 PM
Subject: ADV: [Asterisk-Users] Sphinx


Is anyone doing anything useful with Sphinx?

There is a small amount of info on the wiki to help with implementing it
but I'm curious if anyone is actually using it.

Barry








 ___
 Asterisk-Users mailing list
 Asterisk-Users@lists.digium.com
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] sphinx voice recognisation

2004-04-13 Thread Vikram Rangnekar

Has anyone had any luck with voice recognisation using sphinx, if yes then
could u please send some pointers.

does the eagi app for sphinx really work cause i'v tierd it and sphix dosent
seem to do anything

-- 
regards
Vikram (http://www.vicramresearch.com)
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Sphinx

2003-12-19 Thread Mauricio Nuñez
Hi,

I'm, doing the same, but with a php agi, and invoking a modified script to use 
sphinx:

/usr/local/bin/decoder2
#!/bin/sh
BASE=6403
S2BATCH=sphinx2-continuous
HMM=/usr/local/share/sphinx2/model/hmm/6k
TASK=/usr/local/share/sphinx2/model/lm/${BASE}
CTLFILE=/usr/local/share/sphinx2/model/lm/${BASE}/${BASE}.ctl
#BASE=$1
$S2BATCH -nbest 1 -nbestdir /tmp -verbose 0 -adcin TRUE -adcext wav -ctlfn 
${CTLFILE} -ctloffset 0 -ctlcount 1 -datadir ${TASK} -samp 8000 
-agcmax TRUE -langwt 6.5 -fwdflatlw 8.5 -rescorelw 9.5 -ugwt 0.5 -fillpen 
1e-10 -silpen 0.005 -inspen 0.65 -top 1 -topsenfrm 3 -topsenthresh -7 
-beam 2e-06 -npbeam 2e-06 -lpbeam 2e-05 -lponlybeam 0.0005 -nwbeam 0.0005 
-fwdflat FALSE -fwdflatbeam 1e-08 -fwdflatnwbeam 0.0003 -bestpath TRUE 
-kbdumpdir ${TASK} -lmfn ${TASK}/${BASE}.lm -dictfn ${TASK}/${BASE}.dic 
-noisedict ${HMM}/noisedict -phnfn ${HMM}/phone -mapfn ${HMM}/map -hmmdir 
${HMM} -hmmdirlist ${HMM} -8bsen TRUE -sendumpfn ${HMM}/sendump -cbdir ${HMM}


My php-test.agi:

function __write__($line)
{
print $line.\n;
}

function __read__()
{
global $in;
$input=str_replace(\n,,fgets($in,4096));
return $input;
}

function festival($texto)
{
__write__(EXEC FESTIVAL \$texto\);
return __read__();
}

function record($filename, $digits)
{
__write__(RECORD FILE $filename wav $digits 15000 BEEP);
return __read__();
}

$in=fopen(php://stdin,r);
festival(ingrese su mensaje);
record(mensaje,#);
$comando=/usr/local/bin/decoder2;
$value=file(/tmp/mensaje.hyp);
$value=$value[0];
$numero=trim(substr($value,strpos($value,)+1));
if($numero!=)
festival(usted a seleccionado el numero $numero);
exec($comando);









El Jueves 18 Diciembre 2003 17:40, Kevin Bockman escribió:
 Hi. I just started trying to play with Sphinx.  I followed their site as
 far as running sphinx-server.  It is listening on the default port.  I
 copied sphinx2-simple to another file and changed sphinx2-continuous to
 sphinx2-server.

 So, I ran eagi-sphinx-test under asterisk.  What exactly is it supposted to
 do?  Here's what I get:

 debian:~# sphinx2-simple2

 sphinx2-simple:
   Demo CMU Sphinx2 decoder called with command line arguments.

 executing /usr/local/bin/sphinx2-server, please wait
 ioctl(SETDUPLEX) failed: Invalid argument
 Calibrating background noise level...done
 server.c(443): Bad or missing port# argument, using 7027
 srvcore.c(382): Listening at port 7027
 srvcore.c(409): Connected  192.168.1.99 at Thu Dec 18 15:24:19 2003

 Hit CR to start listening, qCR to quit client connection

 -- Executing Answer(SIP/test-ff55, ) in new stack
 -- Executing EAGI(SIP/test-ff55, eagi-sphinx-test) in new stack
 -- Launched AGI Script /var/lib/asterisk/agi-bin/eagi-sphinx-test
 Environment: 'agi_request' is 'eagi-sphinx-test'
 Environment: 'agi_channel' is 'SIP/test-ff55'
 Environment: 'agi_language' is 'en'
 Environment: 'agi_type' is 'sip'
 Environment: 'agi_uniqueid' is '1071786651.21'
 Environment: 'agi_callerid' is 'blah 1234'
 Environment: 'agi_dnid' is 'unknown'
 Environment: 'agi_rdnis' is 'unknown'
 Environment: 'agi_context' is 'default'
 Environment: 'agi_extension' is '911'
 Environment: 'agi_priority' is '2'
 Environment: 'agi_enhanced' is '1.0'
 Environment: 'agi_accountcode' is ''
 Ooh, got a response from Asterisk: '200 result=0 endpos=46560'
 1. Result is '200 result=0 endpos=46560'
 Ooh, got a response from Asterisk: '200 result=0 endpos=30720'
 2. Result is '200 result=0 endpos=30720'
 -- Playing 'digits/20' (language 'en')
 -- Playing 'digits/3' (language 'en')
 -- Playing 'digits/million' (language 'en')
 -- Playing 'digits/4' (language 'en')
 -- Playing 'digits/hundred' (language 'en')
 -- Playing 'digits/50' (language 'en')
 -- Playing 'digits/2' (language 'en')
 -- Playing 'digits/thousand' (language 'en')
 -- Playing 'digits/3' (language 'en')
 -- Playing 'digits/hundred' (language 'en')
 -- Playing 'digits/40' (language 'en')
 -- Playing 'digits/5' (language 'en')
 Ooh, got a response from Asterisk: '200 result=0'
 3. Result is '200 result=0'
 -- Playing 'demo-enterkeywords' (language 'en')
 Ooh, got a response from Asterisk: '200 result= (timeout)'
 4. Result is '200 result= (timeout)'
 Ooh, got a response from Asterisk: '200 result=0 endpos=9440'
 5. Result is '200 result=0 endpos=9440'
 -- AGI Script eagi-sphinx-test completed, returning 0

 Is the endpos number something significant?  What is it referring to?

 Am I doing this right?

 Does anyone have any other EAGI Sphinx examples?  Maybe something that asks
 for you to say a word and it puts it into text?

 Sorry, this is pretty neat but there's hardly any information on it.  I've
 tried searching the lists and I see a couple people that have used it but
 that's all.

 Thanks,

 Kevin B.

 _
 Are you a Techie? Get Your Free 

Re: [Asterisk-Users] Sphinx

2003-12-19 Thread Kevin Bockman
--- Mauricio Nuez [EMAIL PROTECTED] wrote:
/usr/local/bin/decoder2
#!/bin/sh
BASE=6403
I changed this to BASE=turtle

$S2BATCH -nbest 1 -nbestdir /tmp -verbose 0 -adcin TRUE -adcext wav -ctlfn 
${CTLFILE} -ctloffset 0 -ctlcount 1 -datadir ${TASK} -samp 8000 
-agcmax TRUE -langwt 6.5 -fwdflatlw 8.5 -rescorelw 9.5 -ugwt 0.5 -fillpen 
1e-10 -silpen 0.005 -inspen 0.65 -top 1 -topsenfrm 3 -topsenthresh -7 
-beam 2e-06 -npbeam 2e-06 -lpbeam 2e-05 -lponlybeam 0.0005 -nwbeam 0.0005 
-fwdflat FALSE -fwdflatbeam 1e-08 -fwdflatnwbeam 0.0003 -bestpath TRUE 
-kbdumpdir ${TASK} -lmfn ${TASK}/${BASE}.lm -dictfn ${TASK}/${BASE}.dic 
-noisedict ${HMM}/noisedict -phnfn ${HMM}/phone -mapfn ${HMM}/map -hmmdir 
${HMM} -hmmdirlist ${HMM} -8bsen TRUE -sendumpfn ${HMM}/sendump -cbdir ${HMM}

I put all of this on one line

My php-test.agi:
festival(ingrese su mensaje);
Festival was saying the text, but giving me an RTP read error.  I commented it out and 
now it does not.

record(mensaje,#);
I changed this to /tmp/mensaje.  Not sure where it would have recorded it otherwise.  
I did a find on mensaje.wav but it did not find it anywhere until I changed it to /tmp

$value=file(/tmp/mensaje.hyp);
I'm not seeing this file.  It makes /tmp/goforward.hyp with the folowing:

debian:/tmp# more goforward.hyp 
s YOU WHAT TWO ARE YOU ARE 

(I never said anything)

$value=$value[0];
$numero=trim(substr($value,strpos($value,)+1));
if($numero!=)
   festival(usted a seleccionado el numero $numero);
exec($comando);

What I'm not sure about is why you are checking the value before running sphinx.  This 
would be getting a previous value correct?  Also, I'm not sure how sphinx is getting 
the file /tmp/mensaje.wav.  This is the big thing that I'm missing.

The script runs for me, festival says the text (when I had it uncommented), gave a 
beep, recorded the file, then quit.  There was the .wav file and goforward.hyp in /tmp.

Once I understand how sphinx gets the output, I think I will have it figured out if 
you could help me with that.  I don't understand how sphinx knows the output file 
(from the .wav) to decode it.

I appreciate your input and help very much.  This is exactly what I was looking for.

Thanks,

Kevin


_
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Sphinx

2003-12-19 Thread Mauricio Nuez
Hi,

If you put BASE=turtle, then the script search for 
/var/lib/asterisk/model/lm/turtle/turtle.ctl, and the content of this file is 
a list of files to process, without the extension, because this is provided 
via the parameter -adcext of sphinx2-continuous.

the turtle dir is the demo provided for sphinx, and my script is practically a 
copy paste, modifyied to explore distincts ${BASE} dir.

Inside ${BASE}, i had a control file ${BASE}.ctl, with the line:

/var/lib/asterisk/sounds/mensaje

hardcoded.

yo get goforward.hyp because turtle.cl constain goforward.16k as input file.

To work with asterisk, i put the -sample option at 8000 , because that is the 
wav sampling. The turtle example work at 16000, and that's explain because 
you get a strange result.

I'm executing wrongly the command ? I' will check that. I'm trying to get 
asterisk work with sphinx from yesterday :-), but almost is working (slow, 
but working)

Saludos

Mauricio Nuez







___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Sphinx

2003-12-19 Thread Kevin Bockman
Hi,
--- Mauricio Nuez [EMAIL PROTECTED] wrote:
Inside ${BASE}, i had a control file ${BASE}.ctl, with the line:

/var/lib/asterisk/sounds/mensaje

hardcoded.
Ok, got that.

To work with asterisk, i put the -sample option at 8000 , because that is the wav 
sampling. The turtle example work at 16000, and that's explain because you get a 
strange result.
Got that.

I'm executing wrongly the command ? I' will check that. I'm trying to get asterisk 
work with sphinx from yesterday :-), but almost is working (slow, but working)
It complains that the wav file does not exist the first time it runs.  I had to 
quickly patch things together to restart it.  Getting ready to head out to school and 
get groceries.  I will look further into that part.  Have to get a microphone to test 
it further.  It outputs s A now which should be good.

The next big problem I see is that every time you run the script, it uses the same 
file.  This will need to be modified to be a unique filename for each 
caller/iteration.  You are doing very well for your second day with Sphinx.  A lot 
better than me.  Hopefully between the two of us, we can get that problem fixed.  It's 
a step in the right direction.

Thanks,

Kevin


_
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Sphinx

2003-12-18 Thread Kevin Bockman
Hi. I just started trying to play with Sphinx.  I followed their site as far as 
running sphinx-server.  It is listening on the default port.  I copied sphinx2-simple 
to another file and changed sphinx2-continuous to sphinx2-server.

So, I ran eagi-sphinx-test under asterisk.  What exactly is it supposted to do?  
Here's what I get:

debian:~# sphinx2-simple2
 
sphinx2-simple:
  Demo CMU Sphinx2 decoder called with command line arguments.
 
executing /usr/local/bin/sphinx2-server, please wait
ioctl(SETDUPLEX) failed: Invalid argument
Calibrating background noise level...done
server.c(443): Bad or missing port# argument, using 7027
srvcore.c(382): Listening at port 7027
srvcore.c(409): Connected  192.168.1.99 at Thu Dec 18 15:24:19 2003

Hit CR to start listening, qCR to quit client connection

-- Executing Answer(SIP/test-ff55, ) in new stack
-- Executing EAGI(SIP/test-ff55, eagi-sphinx-test) in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/eagi-sphinx-test
Environment: 'agi_request' is 'eagi-sphinx-test'
Environment: 'agi_channel' is 'SIP/test-ff55'
Environment: 'agi_language' is 'en'
Environment: 'agi_type' is 'sip'
Environment: 'agi_uniqueid' is '1071786651.21'
Environment: 'agi_callerid' is 'blah 1234'
Environment: 'agi_dnid' is 'unknown'
Environment: 'agi_rdnis' is 'unknown'
Environment: 'agi_context' is 'default'
Environment: 'agi_extension' is '911'
Environment: 'agi_priority' is '2'
Environment: 'agi_enhanced' is '1.0'
Environment: 'agi_accountcode' is ''
Ooh, got a response from Asterisk: '200 result=0 endpos=46560'
1. Result is '200 result=0 endpos=46560'
Ooh, got a response from Asterisk: '200 result=0 endpos=30720'
2. Result is '200 result=0 endpos=30720'
-- Playing 'digits/20' (language 'en')
-- Playing 'digits/3' (language 'en')
-- Playing 'digits/million' (language 'en')
-- Playing 'digits/4' (language 'en')
-- Playing 'digits/hundred' (language 'en')
-- Playing 'digits/50' (language 'en')
-- Playing 'digits/2' (language 'en')
-- Playing 'digits/thousand' (language 'en')
-- Playing 'digits/3' (language 'en')
-- Playing 'digits/hundred' (language 'en')
-- Playing 'digits/40' (language 'en')
-- Playing 'digits/5' (language 'en')
Ooh, got a response from Asterisk: '200 result=0'
3. Result is '200 result=0'
-- Playing 'demo-enterkeywords' (language 'en')
Ooh, got a response from Asterisk: '200 result= (timeout)'
4. Result is '200 result= (timeout)'
Ooh, got a response from Asterisk: '200 result=0 endpos=9440'
5. Result is '200 result=0 endpos=9440'
-- AGI Script eagi-sphinx-test completed, returning 0

Is the endpos number something significant?  What is it referring to?

Am I doing this right?

Does anyone have any other EAGI Sphinx examples?  Maybe something that asks for you to 
say a word and it puts it into text?

Sorry, this is pretty neat but there's hardly any information on it.  I've tried 
searching the lists and I see a couple people that have used it but that's all.

Thanks,

Kevin B.

_
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Sphinx

2003-12-18 Thread Karl Putland
On Thu, 2003-12-18 at 15:40, Kevin Bockman wrote:
 Hi. I just started trying to play with Sphinx.  I followed their site as far as 
 running sphinx-server.  It is listening on the default port.  I copied 
 sphinx2-simple to another file and changed sphinx2-continuous to sphinx2-server.
 
 So, I ran eagi-sphinx-test under asterisk.  What exactly is it supposted to do?  
 Here's what I get:
 

eagi-sphinx-test.c has hardcoded values for the sphinx server.  Change
the values to suit your network and installation and try again.

--Karl


-- 
Karl Putland [EMAIL PROTECTED]

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Sphinx

2003-12-18 Thread Karl Putland
On Thu, 2003-12-18 at 15:40, Kevin Bockman wrote:
 Hi. I just started trying to play with Sphinx.  I followed their site as far as 
 running sphinx-server.  It is listening on the default port.  I copied 
 sphinx2-simple to another file and changed sphinx2-continuous to sphinx2-server.
 
 So, I ran eagi-sphinx-test under asterisk.  What exactly is it supposted to do?  
 Here's what I get:
 

eagi-sphinx-test.c has hardcoded values for the sphinx server.  Change
the values to suit your network and installation and try again.

--Karl


-- 
Karl Putland [EMAIL PROTECTED]

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Sphinx

2003-12-18 Thread Kevin Bockman
--- Karl Putland [EMAIL PROTECTED] wrote:
eagi-sphinx-test.c has hardcoded values for the sphinx server.  Change
the values to suit your network and installation and try again.

--Karl

Yup, sorry I forgot to mention that.  I have the correct IP and port in there.  It was 
giving me errors before that.  I'm just not sure what exactly is supposted to happen 
with the example.  I don't see anything that would resemble speech recognition there 
except for those return codes but I don't know what significance those numbers would 
have.

Using the sphinx testing applications, it says that you have to press return on the 
server before it starts the recognition.  I see that asterisk connects and it asks for 
you to press enter.  I don't get anything different if I press enter on the server.  
This doesn't seem right anyways.  Is there some kind of other configuration that I 
need to have it just run in the background and automatically accept the connection and 
translate?

Just was hoping for someone that has dealt with it more and that maybe had a better 
Sphinx EAGI example that would ask for a word and it would tell you the text 
suggestions.

Thanks,

Kevin

_
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Sphinx

2003-12-18 Thread Kevin Bockman
--- Karl Putland [EMAIL PROTECTED] wrote:
eagi-sphinx-test.c has hardcoded values for the sphinx server.  Change
the values to suit your network and installation and try again.

--Karl

Yup, sorry I forgot to mention that.  I have the correct IP and port in there.  It was 
giving me errors before that.  I'm just not sure what exactly is supposted to happen 
with the example.  I don't see anything that would resemble speech recognition there 
except for those return codes but I don't know what significance those numbers would 
have.

Using the sphinx testing applications, it says that you have to press return on the 
server before it starts the recognition.  I see that asterisk connects and it asks for 
you to press enter.  I don't get anything different if I press enter on the server.  
This doesn't seem right anyways.  Is there some kind of other configuration that I 
need to have it just run in the background and automatically accept the connection and 
translate?

Just was hoping for someone that has dealt with it more and that maybe had a better 
Sphinx EAGI example that would ask for a word and it would tell you the text 
suggestions.

Thanks,

Kevin

_
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com
___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users