vosk-api
vosk-api copied to clipboard
Problem with certificate ...
D:\video\professional programming\011 Jak zostać programistą\render> vosk-transcriber -i "011 - Jak zostać programistą.ac3" -l pl vosk-model-small-pl-0.22.zip: 0.00B [00:00, ?B/s] Traceback (most recent call last): File "C:\root\Python\Python310\lib\urllib\request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "C:\root\Python\Python310\lib\http\client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\root\Python\Python310\lib\http\client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\root\Python\Python310\lib\http\client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\root\Python\Python310\lib\http\client.py", line 1037, in _send_output self.send(msg) File "C:\root\Python\Python310\lib\http\client.py", line 975, in send self.connect() File "C:\root\Python\Python310\lib\http\client.py", line 1454, in connect self.sock = self._context.wrap_socket(self.sock, File "C:\root\Python\Python310\lib\ssl.py", line 513, in wrap_socket return self.sslsocket_class._create( File "C:\root\Python\Python310\lib\ssl.py", line 1071, in _create self.do_handshake() File "C:\root\Python\Python310\lib\ssl.py", line 1342, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\root\Python\Python310\lib\runpy.py", line 196, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\root\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\root\Python\Python310\Scripts\vosk-transcriber.exe_main.py", line 7, in
Windows 10, Python 3.10.x, Python 3.8.x
This helps but it is wrong. Next problem is lack of ffmpeg.
import ssl
ssl._create_default_https_context = ssl._create_unverified_context
You should report where is problem with url or with lack of tool. For me it is clear since I am programmer but need more time to find problem.
For others is unbreakable limitation.
@vadimdddd check presence of ffmpeg
It is not ffmpeg but URL.
There is also problem with ffmpeg - it is different story - same unclear message. I added path to ffmpeg for second problem but it not solve problem with certificate since URL is not releted to ffmpeg but model.
You can have problem with certificate in chain - not with site certificate.
Our certificate is ok, its most likely python certificates need update due to letsencrypt root certificate isse. Check from the browser, it is fine.
You can also check https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
I will check if it helps. I found that your certificate is good so it can be certificate chain problem.
I'm also facing the same problem! For https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip, Google Chrome says that the site is not secure.
Am I missing something? Is there a way to fix it?
Edit: Not a pressing problem as one can manually download the model, extract it and drop it in
@Nicholas-Ho could you please click on the lock near website address and show the certificate information?
https://superuser.com/questions/1160502/how-to-view-ssl-certificate-details-on-chrome
How to fix:
https://github.com/alphacep/vosk-api/issues/1137#issuecomment-1240789686