speechmatics / speechmatics-js-sdk

Javascript and Typescript SDK for Speechmatics
MIT License
39 stars 4 forks source link

Events not being sent, only until after the connection was closed #53

Open willemmulder opened 1 week ago

willemmulder commented 1 week ago

Describe the bug I have two scenarios where the Speechmatics SDK is not returning an Event that I expect. Only after I close the connection, the event is returned. Not sure if it's the API or the SDK that is the culprit.

Two examples:

Speechmatics session error { message: 'Error', type: 'invalid_audio_type', reason: 'Invalid audio type: Could not determine type of stream.' }

To Reproduce

Expected behavior I expect for the two scenarios

  1. Short files should be fully transcribed, It feels as if Speechmatics keeps on waiting for more audio. However, setting max_delay does not help either.
  2. Invalid files should immediately be rejected with an Error.

Desktop (please complete the following information):

nickgerig commented 6 days ago

@willemmulder thanks for this - I was able to reproduce both issues, we'll take a look.

willemmulder commented 6 days ago

@nickgerig Sure; and thanks for checking! Looking forward to more news :-)