Skip to content

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

@willemmulder

Description

@willemmulder

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:

  • For a short audio file (few kb. two sentences), the first sentence is successfully returned, but the second sentence is never returned. Only when I close the connection or send "EndOfStream" explicitly, the sentence suddenly arrives.
  • For an invalid audio file (11 bytes, with UTF content "Not found.\n") I do not get anything from the SDK. No error, no transcription, nothing. Only when I close the connection, I get

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

To Reproduce

  • Create file with "Not found.\n".
  • Send it to the SDK
  • See that nothing happens
  • Close the connection
  • See that an Event arrives

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):

  • OS: WIndows and Linux
  • Version 3.x and 4.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions