diff --git a/colab_notebook.ipynb b/colab_notebook.ipynb index 7f49868..a6bd0ff 100644 --- a/colab_notebook.ipynb +++ b/colab_notebook.ipynb @@ -69,7 +69,7 @@ "print('جارٍ تجهيز بيئة العمل.')\n", "\n", "# Setup Tafrigh.\n", - "%pip install -U tafrigh[wit,whisper]==1.1.3 > install_logs.txt\n", + "%pip install -U tafrigh[wit,whisper]==1.1.4 > install_logs.txt\n", "\n", "# Start: Quick fix related to Colab, HuggingFace, and faster-whisper.\n", "!apt install libcublas11 > fix_logs.txt\n", @@ -93,7 +93,7 @@ "# @markdown
النموذج المُراد استخدامه للتفريغ
\n", - "model = 'large-v2 (\\u0623\\u0641\\u0636\\u0644 \\u062F\\u0642\\u0629)' # @param [\"large-v2 (أفضل دقة)\", \"medium\", \"base\", \"small\", \"tiny (أقل دقة)\"]\n", + "model = 'large-v3 (\\u0623\\u0641\\u0636\\u0644 \\u062F\\u0642\\u0629)' # @param [\"large-v3 (أفضل دقة)\", \"medium\", \"base\", \"small\", \"tiny (أقل دقة)\"]\n", "\n", "# @markdown(اختياري) لغة المادة
\n", "language = 'ar' # @param [\"ar\", \"af\", \"am\", \"as\", \"az\", \"ba\", \"be\", \"bg\", \"bn\", \"bo\", \"br\", \"bs\", \"ca\", \"cs\", \"cy\", \"da\", \"de\", \"el\", \"en\", \"es\", \"et\", \"eu\", \"fa\", \"fi\", \"fo\", \"fr\", \"gl\", \"gu\", \"ha\", \"haw\", \"he\", \"hi\", \"hr\", \"ht\", \"hu\", \"hy\", \"id\", \"is\", \"it\", \"ja\", \"jw\", \"ka\", \"kk\", \"km\", \"kn\", \"ko\", \"la\", \"lb\", \"ln\", \"lo\", \"lt\", \"lv\", \"mg\", \"mi\", \"mk\", \"ml\", \"mn\", \"mr\", \"ms\", \"mt\", \"my\", \"ne\", \"nl\", \"nn\", \"no\", \"oc\", \"pa\", \"pl\", \"ps\", \"pt\", \"ro\", \"ru\", \"sa\", \"sd\", \"si\", \"sk\", \"sl\", \"sn\", \"so\", \"sq\", \"sr\", \"su\", \"sv\", \"sw\", \"ta\", \"te\", \"tg\", \"th\", \"tk\", \"tl\", \"tr\", \"tt\", \"uk\", \"ur\", \"uz\", \"vi\", \"yi\", \"yo\", \"zh\"]\n", @@ -108,8 +108,8 @@ "# @markdown(اختياري) أقصى مدة للتقطيع والتي ستؤثر على طول الجمل في ملف SRT
\n", "max_cutting_duration = 15 # @param {type:\"slider\", min:1, max:17, step:1}\n", "\n", - "if model == 'large-v2 (\\u0623\\u0641\\u0636\\u0644 \\u062F\\u0642\\u0629)':\n", - " model = 'large-v2'\n", + "if model == 'large-v3 (\\u0623\\u0641\\u0636\\u0644 \\u062F\\u0642\\u0629)':\n", + " model = 'large-v3'\n", "elif model == 'tiny (\\u0623\\u0642\\u0644 \\u062F\\u0642\\u0629)':\n", " model = 'tiny'\n", "\n", diff --git a/pyproject.toml b/pyproject.toml index 72466c3..042a0d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "tafrigh" -version = "1.1.3" +version = "1.1.4" description = "تفريغ النصوص وإنشاء ملفات SRT و VTT باستخدام نماذج Whisper وتقنية wit.ai." readme = "README.md" license = { file = "LICENSE" } @@ -20,24 +20,25 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Topic :: Scientific/Engineering :: Artificial Intelligence", ] authors = [{ name = "الكتب المٌيسّرة", email = "easybooksdev@gmail.com" }] keywords = ["tafrigh", "speech-to-text", "wit.ai", "whisper"] -dependencies = ["tqdm==4.65.1", "yt-dlp==2023.7.6"] +dependencies = ["tqdm>=4.66.4", "yt-dlp>=2024.4.9"] [project.optional-dependencies] wit = [ - "auditok==0.2.0", - "numpy==1.23.5", - "pydub==0.25.1", - "requests==2.31.0", - "scipy==1.11.1", + "auditok>=0.2.0", + "numpy>=1.26.4", + "pydub>=0.25.1", + "requests>=2.32.0", + "scipy>=1.13.0", ] whisper = [ - "faster-whisper==0.10.0", - "openai-whisper==20231117", - "stable-ts==2.13.4", + "faster-whisper>=1.0.2", + "openai-whisper>=20231117", + "stable-ts>=2.17.2", ] [project.urls]