You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reading file from google storage using async call gives error #364
I've been trying to make the asynchronous call startRecognition(gcsUri, config) but getting the following error: Error: Requested entity was not found.
apologies, yes those are placeholders indeed (not real names). It started to work actually, but all I did differently was to comment out the projectId in
var gcs = require('@google-cloud/storage')({
// projectId: process.env.GCLOUD_PROJECT,
credentials: require('key.json')
});
... and I originally didn't have 'transcription' defined as a const because it was defined as a 'var' further up in the file. I changed it to be defined in the scope of the startRecognition function. I'm glad that it is working, but I don't really understand why these two changes resolved the error, or what that error was.
{ Error: Requested entity was not found.
at /Users//Documents//node_modules/grpc/src/node/src/client.js:434:17
code: 5,
metadata: Metadata { _internal_repr: {} },
note: 'Exception occurred in retry method that was not classified as transient' }
it seems if the audio is a few seconds long it makes the transcription, but as soon as I try to record something more lengthy I get that error. I've tried 1.5 mins and even 40 seconds, both threw the error.
apologies, this should not have been an issue. It was an asynchronous issue...I was running the transcription before the files posted to google cloud (hence why longer audio wasn't working, but shorter audio was). solved.
Activity
jmdobry commentedon Apr 26, 2017
Is your gcsUri really
gs://bucket/file.wav, or did you change out the real names for placeholder names?mishaetaya commentedon Apr 26, 2017
apologies, yes those are placeholders indeed (not real names). It started to work actually, but all I did differently was to comment out the projectId in
var gcs = require('@google-cloud/storage')({
// projectId: process.env.GCLOUD_PROJECT,
credentials: require('key.json')
});
... and I originally didn't have 'transcription' defined as a const because it was defined as a 'var' further up in the file. I changed it to be defined in the scope of the startRecognition function. I'm glad that it is working, but I don't really understand why these two changes resolved the error, or what that error was.
mishaetaya commentedon Apr 26, 2017
...sorry, the error is back. ugh.
so this is the full error:
{ Error: Requested entity was not found.
at /Users//Documents//node_modules/grpc/src/node/src/client.js:434:17
code: 5,
metadata: Metadata { _internal_repr: {} },
note: 'Exception occurred in retry method that was not classified as transient' }
it seems if the audio is a few seconds long it makes the transcription, but as soon as I try to record something more lengthy I get that error. I've tried 1.5 mins and even 40 seconds, both threw the error.
mishaetaya commentedon Apr 27, 2017
apologies, this should not have been an issue. It was an asynchronous issue...I was running the transcription before the files posted to google cloud (hence why longer audio wasn't working, but shorter audio was). solved.
fix: adds encodingType to analyzeSyntax* sampless (#364)
fix: adds encodingType to analyzeSyntax* sampless (#364)
feat!: drop node8 support, support for async iterators (#364)
feat!: drop node8 support, support for async iterators (#364)
feat!: drop node8 support, support for async iterators (#364)
feat!: drop node8 support, support for async iterators (#364)
feat!: drop node8 support, support for async iterators (#364)
chore: release 3.1.0 (#364)
feat!: drop node8 support, support for async iterators (#364)
feat!: drop node8 support, support for async iterators (#364)
chore: release 3.1.0 (#364)
feat!: drop node8 support, support for async iterators (#364)
migrate code from googleapis/nodejs-speech (#2857)
chore: release 0.10.0 (#364)
chore: release 0.10.0 (#364)
chore: release 0.10.0 (#364)
test: address flaky system test (#364)
test: address flaky system test (#364)