speechmatics / speechmatics-python

Python library and CLI for Speechmatics
https://speechmatics.github.io/speechmatics-python/
MIT License
59 stars 15 forks source link

Trial Server Websocket Connection #35

Closed jhoelzl closed 3 years ago

jhoelzl commented 3 years ago

Hello, i am trying to connect to the Trial realtime API with an authentification token in Python3 on Windows 10: Example library usage: https://speechmatics.github.io/speechmatics-python/index.html

import speechmatics

# Define connection parameters
conn = speechmatics.models.ConnectionSettings(
      url="ws://trial.asr.api.speechmatics.com/v2",
      ssl_context=None,
      auth_token = 'xxx',
)

However, i get this error:

<class 'websockets.exceptions.InvalidStatusCode'>", 'exception': 'server rejected WebSocket connection: HTTP 200

Is there anything wrong the the endpoint url, or SSL connection settings?

Regards, Josef

jhoelzl commented 3 years ago

It was an API token issue.