hybridgroup/cylon-speech

cylon-speech has no metod say?

Closed this issue · 9 comments

Hi I was testing cylon-speech module using your example but I've this error:

~/P/cylon-speech> node cylon-speech.js
I, [2014-09-29T14:29:20.422Z] INFO -- : Initializing connections.
I, [2014-09-29T14:29:20.424Z] INFO -- : Initializing connection 'speech'.
D, [2014-09-29T14:29:20.424Z] DEBUG -- : Loading adaptor 'speech'.
I, [2014-09-29T14:29:20.434Z] INFO -- : Initializing devices.
I, [2014-09-29T14:29:20.434Z] INFO -- : Initializing device 'mouth'.
D, [2014-09-29T14:29:20.435Z] DEBUG -- : Loading driver 'speech'.
I, [2014-09-29T14:29:20.436Z] INFO -- : Starting connections.
I, [2014-09-29T14:29:20.437Z] INFO -- : Connecting to 'speech'.
I, [2014-09-29T14:29:20.437Z] INFO -- : Connecting to adaptor 'speech'.
I, [2014-09-29T14:29:20.437Z] INFO -- : Starting devices.
I, [2014-09-29T14:29:20.437Z] INFO -- : Starting device 'mouth'.
I, [2014-09-29T14:29:20.437Z] INFO -- : Driver speech started.

TypeError: Object # has no method 'say'
at Driver.say (/home/richard/Proyectos/cylon-speech/node_modules/cylon-speech/lib/driver.js:28:19)
at Robot.Cylon.robot.work (/home/richard/Proyectos/cylon-speech/cylon-speech.js:8:18)
at Robot. (/home/richard/Proyectos/cylon-speech/node_modules/cylon/lib/robot.js:221:15)
at /home/richard/Proyectos/cylon-speech/node_modules/cylon/node_modules/async/lib/async.js:595:21
at /home/richard/Proyectos/cylon-speech/node_modules/cylon/node_modules/async/lib/async.js:235:13
at iterate (/home/richard/Proyectos/cylon-speech/node_modules/cylon/node_modules/async/lib/async.js:142:13)
at /home/richard/Proyectos/cylon-speech/node_modules/cylon/node_modules/async/lib/async.js:153:25
at /home/richard/Proyectos/cylon-speech/node_modules/cylon/node_modules/async/lib/async.js:237:17
at /home/richard/Proyectos/cylon-speech/node_modules/cylon/node_modules/async/lib/async.js:600:34
at /home/richard/Proyectos/cylon-speech/node_modules/cylon/node_modules/async/lib/async.js:577:17

What's the problem?

P.D (yes, I have espeak installed)

+1. Same issue here. In Ubuntu and Windows too. espeak library working correctly.

@kurai021 I'm debugging this, I'll update shortly.

This has been fixed in this branch:

https://github.com/hybridgroup/cylon-speech/tree/dev

Could you pls give it a try and let me know? we have a new release scheduled for tomorrow, so this changes should be in the npm module shortly.

well... Am I doing something wrong?

~/P/cylon-speech-test>
npm install git://github.com/hybridgroup/cylon-speech.git#dev
cylon-speech@0.2.0 node_modules/cylon-speech
~/P/cylon-speech-test> node speech.js
I, [2014-09-29T19:55:50.267Z] INFO -- : Initializing connections.
I, [2014-09-29T19:55:50.269Z] INFO -- : Initializing connection 'speech'.
D, [2014-09-29T19:55:50.269Z] DEBUG -- : Loading adaptor 'speech'.
I, [2014-09-29T19:55:50.278Z] INFO -- : Initializing devices.
I, [2014-09-29T19:55:50.279Z] INFO -- : Initializing device 'mouth'.
D, [2014-09-29T19:55:50.279Z] DEBUG -- : Loading driver 'speech'.
I, [2014-09-29T19:55:50.280Z] INFO -- : Starting connections.
I, [2014-09-29T19:55:50.281Z] INFO -- : Connecting to 'speech'.
I, [2014-09-29T19:55:50.281Z] INFO -- : Connecting to adaptor 'speech'.
I, [2014-09-29T19:55:50.281Z] INFO -- : Starting devices.
I, [2014-09-29T19:55:50.281Z] INFO -- : Starting device 'mouth'.
I, [2014-09-29T19:55:50.281Z] INFO -- : Driver speech started.

TypeError: Object # has no method 'say'
at Driver.say (/home/richard/Proyectos/cylon-speech-test/node_modules/cylon-speech/lib/driver.js:28:19)
at Robot.Cylon.robot.work (/home/richard/Proyectos/cylon-speech-test/speech.js:12:14)
at Robot. (/home/richard/Proyectos/cylon-speech-test/node_modules/cylon/lib/robot.js:221:15)
at /home/richard/Proyectos/cylon-speech-test/node_modules/cylon/node_modules/async/lib/async.js:595:21
at /home/richard/Proyectos/cylon-speech-test/node_modules/cylon/node_modules/async/lib/async.js:235:13
at iterate (/home/richard/Proyectos/cylon-speech-test/node_modules/cylon/node_modules/async/lib/async.js:142:13)
at /home/richard/Proyectos/cylon-speech-test/node_modules/cylon/node_modules/async/lib/async.js:153:25
at /home/richard/Proyectos/cylon-speech-test/node_modules/cylon/node_modules/async/lib/async.js:237:17
at /home/richard/Proyectos/cylon-speech-test/node_modules/cylon/node_modules/async/lib/async.js:600:34
at /home/richard/Proyectos/cylon-speech-test/node_modules/cylon/node_modules/async/lib/async.js:577:17
~/P/cylon-speech-test>

It works perfectly with the dev branch. At least on windows. I'll test it on ubuntu later.

it works now :D (and the voice scared me XD )

Where did the dev branch go? I'm still having this issue... Mac OSX.

A newer version with that fix was published about 1 month ago.

Please note that we no longer use a dev branch. Instead just look at master for the current work in progress, and release branch for the last version that we released, aka the version on NPM.

Hope that helps!

This should be fix in latest releases, I'm closing the issue, please let us know if any other problem comes up, regards.