Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speech sample with 'listen' command stops node after results returned #291

Closed
stuarttayler opened this issue Jan 9, 2017 · 11 comments
Closed
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@stuarttayler
Copy link

When I run the speech sample with the 'listen' command, the transcribed text is returned but then the node process stops and returns be to the command line. I'm not getting any error messages, it just returns the text and stops.

I assumed it should carry on listening and return more results rather than quitting, or is this the expected behaviour? If so is there a way to continually listen?

I am running the sample on a mac with node 6.9.4. I'm using the service json file to authorise.

@jmdobry
Copy link
Member

jmdobry commented Jan 9, 2017

I am seeing the same issue.

I assumed it should carry on listening and return more results rather than quitting

That is what it used to do. I suspect this may be related to upgrading the version of node-record-lpcm16 used by the sample.

Can you try downgrading node-record-lpcm16 to 0.1.4 and see how that works for you?

@jmdobry jmdobry added the bug label Jan 9, 2017
@jmdobry jmdobry self-assigned this Jan 9, 2017
@stuarttayler
Copy link
Author

Thanks, I'll give that a try and let you know

@stuarttayler
Copy link
Author

Hey @jmdobry that didn't work, but just looking at package on NPM and it says: "The library will automatically attempt to stop when it encounters silence, if not you can stop the recording manually." which I guess explains it... Not sure if earlier versions did this too.

@jmdobry
Copy link
Member

jmdobry commented Jan 9, 2017

Looks like there's a silence threshold setting, I'll try tweaking that in the sample.

@iam-peekay
Copy link

iam-peekay commented Jan 15, 2017

Hi @jmdobry For me, it's throwing an error saying:
"listener" argument must be a function

@jmdobry
Copy link
Member

jmdobry commented Jan 17, 2017

Hmm, I just tried the sample again, and I was unable to reproduce any issue. It worked fine for me. I'm on Node.js 6.9.1 and Mac OS X.

It continued to listen, even after pauses. Note that I tried this in a rather quiet environment.

@victorfliks
Copy link

Hi @jmdobry i try the speech sync, and the other command and work fine,
but if i use listen command it always return :

Listening, press Ctrl+C to stop.
events.js:160
throw er; // Unhandled 'error' event
^

Error: spawn rec ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:359:16)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
at Module.runMain (module.js:606:11)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3

my node version are 6.10.0
and i'm running on windows machine
I'm using the service json file to authorise.

@metalaureate
Copy link

@victorfliks +1 same error

@immartian
Copy link

immartian commented Mar 13, 2017

same problem here.
The listening will stop after several hits, without error messages.

I sense there's a time limitation after checking an old post https://groups.google.com/a/chromium.org/forum/#!topic/chromium-html5/s2XhT-Y5qAc
it's quite out-of-date information, I can't imagine this limitation still there.

@JoYeonJeong
Copy link

Did you solve this problem???

@fhinkel
Copy link
Contributor

fhinkel commented Nov 8, 2018

If the issue still persists, please file it here. Thank you.

@fhinkel fhinkel closed this as completed Nov 8, 2018
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 6, 2020
ivanmkc pushed a commit that referenced this issue Nov 3, 2022
ace-n pushed a commit that referenced this issue Nov 11, 2022
* Add the base samples for model tasks

* update package.json

* lint fix

* Update tests and license headers

* use spawnsync to get stderr, update license headers

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
ace-n pushed a commit that referenced this issue Nov 11, 2022
* Add the base samples for model tasks

* update package.json

* lint fix

* Update tests and license headers

* use spawnsync to get stderr, update license headers

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
ace-n pushed a commit that referenced this issue Nov 14, 2022
* Add the base samples for model tasks

* update package.json

* lint fix

* Update tests and license headers

* use spawnsync to get stderr, update license headers

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
ace-n pushed a commit that referenced this issue Nov 15, 2022
* Add the base samples for model tasks

* update package.json

* lint fix

* Update tests and license headers

* use spawnsync to get stderr, update license headers

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
ace-n pushed a commit that referenced this issue Nov 15, 2022
* Add the base samples for model tasks

* update package.json

* lint fix

* Update tests and license headers

* use spawnsync to get stderr, update license headers

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
ace-n pushed a commit that referenced this issue Nov 17, 2022
* Add the base samples for model tasks

* update package.json

* lint fix

* Update tests and license headers

* use spawnsync to get stderr, update license headers

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
ace-n pushed a commit that referenced this issue Nov 17, 2022
* Add the base samples for model tasks

* update package.json

* lint fix

* Update tests and license headers

* use spawnsync to get stderr, update license headers

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
unforced pushed a commit that referenced this issue Nov 17, 2022
* updated CHANGELOG.md [ci skip]

* updated package.json [ci skip]

* updated samples/package.json

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
ahrarmonsur pushed a commit that referenced this issue Nov 17, 2022
* Add the base samples for model tasks

* update package.json

* lint fix

* Update tests and license headers

* use spawnsync to get stderr, update license headers

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
NimJay pushed a commit that referenced this issue Nov 19, 2022
* Added/exposed CLI functionality for dataproc quickstart

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
NimJay pushed a commit that referenced this issue Nov 19, 2022
* Added/exposed CLI functionality for dataproc quickstart

Co-authored-by: Benjamin E. Coe <bencoe@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

9 participants