Skip to content
Discussion options

You must be logged in to vote

Hi Greg, thanks for reaching out and apologies for the delayed response.

I've checked out your code, and I think the issue is the way you're calling client.start(). The first argument to that function should be a JWT (see snippet from the source code below):

  async start(
    jwt: string,
    config: RealtimeTranscriptionConfig,
  ): Promise<RecognitionStarted> {

Rather than sending your Speechmatics API key to the browser from your Express server (which could be a security risk), we recommend you use the @speechmatics/auth package server-side to generate a temporary key which can be read safely by the client, and passed to the start() method.

We're planning on adding a vanilla JS exampl…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mnemitz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants