earshot-cli 0.7.0__tar.gz → 0.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/PKG-INFO +2 -2
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/README.md +1 -1
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/pyproject.toml +1 -1
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/cli.py +2 -2
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/hardsub.py +8 -1
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/uv.lock +1 -1
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/.github/workflows/ci.yml +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/.github/workflows/publish.yml +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/.gitignore +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/LICENSE +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/scripts/download_models.sh +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/__init__.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/auth.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/capture.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/compose.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/config.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/deliver.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/extract.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/live.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/models.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/subtitle.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/transcribe.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/src/earshot/transcribe_cloud.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/conftest.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_auth.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_compose.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_config.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_credential_lifecycle.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_deliver.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_deliver_api.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_do_deliver.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_extract.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_hardsub.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_live.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_me.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_subtitle.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_ua.py +0 -0
- {earshot_cli-0.7.0 → earshot_cli-0.8.0}/tests/test_wizard.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: earshot-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: 旁听剪藏:跨平台桌面端系统声录制 → 本地转写 → 投递知识库(默认 ExoMind,可插拔)
|
|
5
5
|
Project-URL: Homepage, https://github.com/helloworldtang/earshot
|
|
6
6
|
Project-URL: Repository, https://github.com/helloworldtang/earshot
|
|
@@ -162,7 +162,7 @@ uv tool upgrade earshot-cli
|
|
|
162
162
|
源码安装请**锁版本 tag**,不要引滚动的 `main`(消费方 `uv sync`/`pip install` 会隐性升级到未审阅代码;升级应当是显式改版本号的决策):
|
|
163
163
|
|
|
164
164
|
```bash
|
|
165
|
-
uv tool install "earshot-cli @ https://github.com/helloworldtang/earshot/archive/refs/tags/v0.7.
|
|
165
|
+
uv tool install "earshot-cli @ https://github.com/helloworldtang/earshot/archive/refs/tags/v0.7.1.tar.gz"
|
|
166
166
|
```
|
|
167
167
|
|
|
168
168
|
- **零系统依赖**:ffmpeg 已随 Python wheel 内置([imageio-ffmpeg](https://pypi.org/project/imageio-ffmpeg),MoviePy 同款),无需 brew/apt。
|
|
@@ -127,7 +127,7 @@ uv tool upgrade earshot-cli
|
|
|
127
127
|
源码安装请**锁版本 tag**,不要引滚动的 `main`(消费方 `uv sync`/`pip install` 会隐性升级到未审阅代码;升级应当是显式改版本号的决策):
|
|
128
128
|
|
|
129
129
|
```bash
|
|
130
|
-
uv tool install "earshot-cli @ https://github.com/helloworldtang/earshot/archive/refs/tags/v0.7.
|
|
130
|
+
uv tool install "earshot-cli @ https://github.com/helloworldtang/earshot/archive/refs/tags/v0.7.1.tar.gz"
|
|
131
131
|
```
|
|
132
132
|
|
|
133
133
|
- **零系统依赖**:ffmpeg 已随 Python wheel 内置([imageio-ffmpeg](https://pypi.org/project/imageio-ffmpeg),MoviePy 同款),无需 brew/apt。
|
|
@@ -742,10 +742,10 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
742
742
|
if not _interactive():
|
|
743
743
|
parser.print_help()
|
|
744
744
|
return EXIT_FAIL
|
|
745
|
-
choice = _prompt("earshot 模式 [1]
|
|
745
|
+
choice = _prompt("earshot 模式 [1]视频字幕 [2]听录 [3]本地文件 [4]硬字幕OCR(回车=1;输入 q 退出)", default="1")
|
|
746
746
|
if choice == "q":
|
|
747
747
|
return EXIT_OK
|
|
748
|
-
mapping = {"1": "
|
|
748
|
+
mapping = {"1": "video", "2": "listen", "3": "audio", "4": "ocr"}
|
|
749
749
|
sub = mapping.get(choice)
|
|
750
750
|
if sub is None:
|
|
751
751
|
print(f"✗ 无效选择: {choice}")
|
|
@@ -312,7 +312,14 @@ def download_video(url: str, dst_dir: Path, cookies_browser: str | None = None)
|
|
|
312
312
|
"no_warnings": True,
|
|
313
313
|
"noplaylist": True,
|
|
314
314
|
# 无音轨视频(本场景触发源)自动落到单流分支,无需合并
|
|
315
|
-
|
|
315
|
+
# B站常把部分甚至全部流派到 mcdn PCDN 节点(:8082),家宽多不可直连(读超时):
|
|
316
|
+
# [url!*=mcdn] 优先常规 upos CDN;音频全在 mcdn 时只下视频流(OCR 只要画面,
|
|
317
|
+
# 音轨无用);常规 CDN 全灭则回落未过滤表达式,行为同旧版
|
|
318
|
+
"format": (
|
|
319
|
+
"bv*[ext=mp4][url!*=mcdn]+ba[ext=m4a][url!*=mcdn]"
|
|
320
|
+
"/bv*[ext=mp4][url!*=mcdn]"
|
|
321
|
+
"/bv*[ext=mp4]+ba[ext=m4a]/b[ext=mp4]/b"
|
|
322
|
+
),
|
|
316
323
|
"merge_output_format": "mp4",
|
|
317
324
|
"outtmpl": str(dst_dir / f"ocr-{ts}.%(ext)s"),
|
|
318
325
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|