Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add large-v3-turbo #129

Merged
merged 4 commits into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
strategy:
matrix:
python-version: ['3.9', '3.10']
# macos did not support m1 for now
os: [ubuntu, windows, macos]
# Wait for fix on macos-m1: https://github.com/federicocarboni/setup-ffmpeg/issues/21
os: [ubuntu, windows, macos-12]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -32,7 +32,7 @@ jobs:
path: ${{ steps.set_variables.outputs.PIP_CACHE }}
key: ${{ runner.os }}-pip-${{ steps.set_variables.outputs.PY }}

- name: Setup ffmpeg for differnt platforms
- name: Setup ffmpeg for different platforms
uses: FedericoCarboni/setup-ffmpeg@v3

- name: Install dependencies
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

AutoCut 对你的视频自动生成字幕。然后你选择需要保留的句子,AutoCut 将对你视频中对应的片段裁切并保存。你无需使用视频编辑软件,只需要编辑文本文件即可完成剪切。

**2024.10.05更新**:支持 `large-v3-turbo` [模型](https://github.com/openai/whisper/discussions/2363),提供更快的转录速度。

```shell
autocut -t xxx --whisper-model large-v3-turbo
````

**2024.03.10更新**:支持 pip 安装和提供 import 转录相关的功能

```shell
Expand Down
2 changes: 1 addition & 1 deletion autocut/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.0.2"
__version__ = "1.1.0"

from .type import LANG, WhisperModel, WhisperMode
from .utils import load_audio
Expand Down
1 change: 1 addition & 0 deletions autocut/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class WhisperModel(Enum):
LARGE = "large"
LARGE_V2 = "large-v2"
LARGE_V3 = "large-v3"
LARGE_V3_TURBO = "large-v3-turbo"

@staticmethod
def get_values():
Expand Down
Loading