When using AssemblyAI’s Streaming Speech-to-Text feature (for example, the StreamingClient SDK connecting to wss://streaming.assemblyai.com/v3/ws), you may encounter the following error:
This error is typically caused by outdated or incomplete SSL certificates on your system, particularly Python certificates.
Update your system’s SSL certificates, focusing on Python certificates.
If you’re using Python, you may need to install or update the certifi package, which provides Mozilla’s root certificate bundle.
On some systems, you might need to run a command to install certificates for Python. The exact command can vary depending on your operating system and Python installation.
If you’re using macOS, you can try running the following command in your terminal:
Replace “3.x” with your Python version number.
On Windows, you might need to download and install the certificates manually. You can find instructions for this process online, specific to your version of Windows and Python.
For more detailed information on resolving SSL certificate issues in Python, you can refer to this Stack Overflow article.
If you continue to experience issues after updating your certificates, please contact AssemblyAI support for further assistance.