Skip to content

When input WAV file is silent, it still throws an error #205

Description

@binarykitchen

When the recorded WAV file is silent, no sound, this error is still being thrown: Operation failed: Transcription failed or produced no output

Full error details are:

    err: {
      "type": "Error",
      "message": "Operation failed: Transcription failed or produced no output.",
      "stack":
          Error: Operation failed: Transcription failed or produced no output.
              at /var/www/videomail/prod/source/node_modules/nodejs-whisper/dist/index.js:50:19
              at Generator.next (<anonymous>)
              at fulfilled (/var/www/videomail/prod/source/node_modules/nodejs-whisper/dist/index.js:5:58)
              at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    }

When silent, I expect no error to be thrown and just an empty VTT file to be generated with no captions. It's ok to have no output, nothing wrong with that.

Thoughts?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions