Giter Club home page Giter Club logo

gspeech-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gspeech-api's Issues

TypeError: Cannot read property 'format' of undefined

I have been trying to run the examples of this module. Unfortunately, I get always this error :

tom@Tom-VAIO:~/src/nodeJs/test-gspeech-api$ node timedTranscript.js
/mnt/B8CAF9F7CAF9B1AC/TomsFiles/private/GDrive_insync/src/nodeJs/test-gspeech-api/node_modules/gspeech-api/index.js:169
var totalDuration = info.format.duration;
^

TypeError: Cannot read property 'format' of undefined
at /mnt/B8CAF9F7CAF9B1AC/TomsFiles/private/GDrive_insync/src/nodeJs/test-gspeech-api/node_modules/gspeech-api/index.js:169:28
at handleCallback (/mnt/B8CAF9F7CAF9B1AC/TomsFiles/private/GDrive_insync/src/nodeJs/test-gspeech-api/node_modules/fluent-ffmpeg/lib/ffprobe.js:106:9)
at /mnt/B8CAF9F7CAF9B1AC/TomsFiles/private/GDrive_insync/src/nodeJs/test-gspeech-api/node_modules/fluent-ffmpeg/lib/ffprobe.js:145:16
at /mnt/B8CAF9F7CAF9B1AC/TomsFiles/private/GDrive_insync/src/nodeJs/test-gspeech-api/node_modules/fluent-ffmpeg/lib/capabilities.js:194:9
at /mnt/B8CAF9F7CAF9B1AC/TomsFiles/private/GDrive_insync/src/nodeJs/test-gspeech-api/node_modules/async/dist/async.js:356:16
at nextTask (/mnt/B8CAF9F7CAF9B1AC/TomsFiles/private/GDrive_insync/src/nodeJs/test-gspeech-api/node_modules/async/dist/async.js:5057:29)
at /mnt/B8CAF9F7CAF9B1AC/TomsFiles/private/GDrive_insync/src/nodeJs/test-gspeech-api/node_modules/async/dist/async.js:5064:13
at apply (/mnt/B8CAF9F7CAF9B1AC/TomsFiles/private/GDrive_insync/src/nodeJs/test-gspeech-api/node_modules/async/dist/async.js:21:25)
at /mnt/B8CAF9F7CAF9B1AC/TomsFiles/private/GDrive_insync/src/nodeJs/test-gspeech-api/node_modules/async/dist/async.js:56:12
at /mnt/B8CAF9F7CAF9B1AC/TomsFiles/private/GDrive_insync/src/nodeJs/test-gspeech-api/node_modules/async/dist/async.js:840:16

"Could not get valid response from Google servers for segment starting at..."

Exciting prospect for using your work...

I'm getting the following message for different talks I've tried transcribing:

Could not get valid response from Google servers for segment starting at second ...

Followed by an error like this:

/Users/brett/audio-conversion/node_modules/gspeech-api/index.js:63
full += timedTranscript[i].text + ' ';
^

TypeError: Cannot read property 'text' of undefined

I haven't taken a close look at your code, but could you just skip over errors (or provide them as HTML response strings on some error object property), or perhaps return an array of successful strings with error objects interspersed) and allow one to iterate oneself to decide what to do with error portions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.