Dadangdut33 / Speech-Translate

A realtime speech transcription and translation application using Whisper OpenAI and free translation API. Interface made using Tkinter. Code written fully in Python.
MIT License
423 stars 55 forks source link

[BUG] Error when activating Debug recording #64

Closed DenisMartin0 closed 6 months ago

DenisMartin0 commented 6 months ago

When activating the "Debug Recording" option (see below), it generate an error when starting a recording session.

image

image

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 image

helper.py image

Dadangdut33 commented 6 months ago

got it thanks for the bug report

Dadangdut33 commented 6 months ago

fixed in https://github.com/Dadangdut33/Speech-Translate/releases/tag/1.3.9