A realtime speech transcription and translation application using Whisper OpenAI and free translation API. Interface made using Tkinter. Code written fully in Python.
When activating the "Debug Recording" option (see below), it generate an error when starting a recording session.
Error log is:
2024-01-01 20:35:11.178 | ERROR | record.py:944 [Thread-28 (record_session)] - TypedDict does not support instance and class checks
Traceback (most recent call last):
File "D:\Codes_Projects\Python\Speech-Translate\speech_translate\utils\audio\record.py", line 860, in record_session
File "D:\Codes_Projects\Python\Speech-Translate\speech_translate\utils\whisper\helper.py", line 57, in stablets_verbose_log
File "C:\Users\PC.pyenv\pyenv-win\versions\3.11.6\Lib\typing.py", line 3010, in subclasscheck
TypeError: TypedDict does not support instance and class checks
It seems that it comes from a call to isinstance in helper.py
record.py
When activating the "Debug Recording" option (see below), it generate an error when starting a recording session.
Error log is: 2024-01-01 20:35:11.178 | ERROR | record.py:944 [Thread-28 (record_session)] - TypedDict does not support instance and class checks Traceback (most recent call last): File "D:\Codes_Projects\Python\Speech-Translate\speech_translate\utils\audio\record.py", line 860, in record_session File "D:\Codes_Projects\Python\Speech-Translate\speech_translate\utils\whisper\helper.py", line 57, in stablets_verbose_log File "C:\Users\PC.pyenv\pyenv-win\versions\3.11.6\Lib\typing.py", line 3010, in subclasscheck TypeError: TypedDict does not support instance and class checks
It seems that it comes from a call to isinstance in helper.py record.py
helper.py