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
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.
Invalid files should immediately be rejected with an Error.
Desktop (please complete the following information):
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
Desktop (please complete the following information):