Skip to content

jjtindale/aws-parallel-transcribe-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

node version: 14.17.0 npm version: 6.14.13 npm install

Transcribe in Series

npm run series This works on node 14.x, but not 12.x.

Transcribe in Parallel

npm run parallel

Expected result

We expect to see the transcription being logged over time as the files are played. We should see results from numbers.wav interleaved with results from letters.wav, so something like:

1
A
12
AB
ABC
ABCD
123
...

Actual result

joe@Joes-MacBook-Pro amazon-transcribe-error % npm run parallel

> amazon-transcribe-error@1.0.0 parallel /Users/joe/Development/amazon-transcribe-error
> ts-node src/parallel.ts

starting transcription
transcribing in parallel
transcribing /Users/joe/Development/amazon-transcribe-error/numbers.wav
transcribing /Users/joe/Development/amazon-transcribe-error/letters.wav
Error: AWS SDK error wrapper for undefined
    at asSdkError (/Users/joe/Development/amazon-transcribe-error/node_modules/@aws-sdk/middleware-retry/src/StandardRetryStrategy.ts:124:10)
    at StandardRetryStrategy.retry (/Users/joe/Development/amazon-transcribe-error/node_modules/@aws-sdk/middleware-retry/src/StandardRetryStrategy.ts:94:21)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at /Users/joe/Development/amazon-transcribe-error/node_modules/@aws-sdk/middleware-sdk-transcribe-streaming/src/middleware-session-id.ts:32:22
    at /Users/joe/Development/amazon-transcribe-error/node_modules/@aws-sdk/middleware-logger/src/loggerMiddleware.ts:22:22 {
  '$metadata': { attempts: 1, totalRetryDelay: 0 }
}
undefined
undefined
One.
12.
123
1234
12345
undefined
123456
123456 sev.
1234567
undefined
12345678
123456789
123456789
123456789 10.
123456789 10.
123456789 10.
undefined

In the parallel case the second file is never transcribed. The program hangs, then exits after about 30 seconds.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published