Skip to content

SpeechmaticsRealtimeError - Socket not ready to receive audio #127

@vlashada

Description

@vlashada

I am getting the error SpeechmaticsRealtimeError - Socket not ready to receive audio when using a setup very similar to the documentation in nextjs realtime transcription.

I think the problem is that sometimes the code below is executed when it should not. Is there any more robust way of starting and stopping and making sure everything is stopped when I run a callback? Is there for instance any way of checking that it is valid to call stop transcription and stop recording? It does not seem to affect performance, but it is really messing with my logging.

  useEffect(() => {
    return () => {
      stopTranscription();
      stopRecording();
    };
  }, [stopTranscription, stopRecording]);

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