earshot-cli 0.7.1__tar.gz → 0.8.1__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.
Files changed (38) hide show
  1. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/PKG-INFO +8 -6
  2. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/README.md +6 -4
  3. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/pyproject.toml +2 -2
  4. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/__init__.py +3 -3
  5. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/cli.py +3 -3
  6. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/uv.lock +1 -1
  7. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/.github/workflows/ci.yml +0 -0
  8. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/.github/workflows/publish.yml +0 -0
  9. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/.gitignore +0 -0
  10. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/LICENSE +0 -0
  11. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/scripts/download_models.sh +0 -0
  12. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/auth.py +0 -0
  13. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/capture.py +0 -0
  14. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/compose.py +0 -0
  15. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/config.py +0 -0
  16. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/deliver.py +0 -0
  17. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/extract.py +0 -0
  18. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/hardsub.py +0 -0
  19. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/live.py +0 -0
  20. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/models.py +0 -0
  21. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/subtitle.py +0 -0
  22. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/transcribe.py +0 -0
  23. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/src/earshot/transcribe_cloud.py +0 -0
  24. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/conftest.py +0 -0
  25. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_auth.py +0 -0
  26. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_compose.py +0 -0
  27. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_config.py +0 -0
  28. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_credential_lifecycle.py +0 -0
  29. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_deliver.py +0 -0
  30. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_deliver_api.py +0 -0
  31. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_do_deliver.py +0 -0
  32. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_extract.py +0 -0
  33. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_hardsub.py +0 -0
  34. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_live.py +0 -0
  35. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_me.py +0 -0
  36. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_subtitle.py +0 -0
  37. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_ua.py +0 -0
  38. {earshot_cli-0.7.1 → earshot_cli-0.8.1}/tests/test_wizard.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: earshot-cli
3
- Version: 0.7.1
4
- Summary: 旁听剪藏:跨平台桌面端系统声录制 → 本地转写 → 投递知识库(默认 ExoMind,可插拔)
3
+ Version: 0.8.1
4
+ Summary: 媒体剪藏:视频字幕/系统声听录/本地音频/硬字幕OCR 四路摄入,端侧转写 → Markdown → 投递知识库(默认 ExoMind,可插拔)
5
5
  Project-URL: Homepage, https://github.com/helloworldtang/earshot
6
6
  Project-URL: Repository, https://github.com/helloworldtang/earshot
7
7
  Project-URL: Issues, https://github.com/helloworldtang/earshot/issues
@@ -35,13 +35,15 @@ Description-Content-Type: text/markdown
35
35
 
36
36
  # earshot
37
37
 
38
- 旁听剪藏:**听到的,都能进知识库。**
38
+ 媒体剪藏:**听到看到的,都能进知识库。**
39
39
 
40
- 听 B站/视频号/播客/讲座时开着它,听完 `Ctrl-C`,录音自动转写为 Markdown 并投递到你的知识库(默认 [ExoMind 知识飞轮](https://exomind.ai-as.cn),可插拔任意 webhook)。纯端侧转写,无限流、零 API 费用。
40
+ 给它一条视频链接,或听播客/讲座时开着它,内容自动转写为 Markdown 并投递到你的知识库(默认 [ExoMind 知识飞轮](https://exomind.ai-as.cn),可插拔任意 webhook)。纯端侧转写,无限流、零 API 费用。
41
41
 
42
42
  ```
43
- 系统声音 ──录制──> 16k wav ──silero VAD 切段──> SenseVoice 端侧识别(实时字幕) ──> Markdown ──> 投递(exomind / webhook / 仅存档)
44
- 视频链接 ──yt-dlp──> 平台字幕(ai-zh/CC) ────────────────────────────┘(高信噪比路线)
43
+ 系统声音 ──录制──> 16k wav ──silero VAD 切段──> SenseVoice 端侧识别(实时字幕) ─┐
44
+ 视频链接 ──yt-dlp──> 平台字幕(ai-zh/CC,高信噪比路线) ─────────────────────────┼──> Markdown ──> 投递(exomind / webhook / 仅存档)
45
+ 本地音频 ──文件──> 16k wav ──VAD 切段──> SenseVoice 端侧识别 ──────────────────┤
46
+ 硬字幕视频 ──ffmpeg 抽帧──> PaddleOCR(无音轨路线) ─────────────────────────────┘
45
47
  ```
46
48
 
47
49
  ## 安装(开箱即用)
@@ -1,12 +1,14 @@
1
1
  # earshot
2
2
 
3
- 旁听剪藏:**听到的,都能进知识库。**
3
+ 媒体剪藏:**听到看到的,都能进知识库。**
4
4
 
5
- 听 B站/视频号/播客/讲座时开着它,听完 `Ctrl-C`,录音自动转写为 Markdown 并投递到你的知识库(默认 [ExoMind 知识飞轮](https://exomind.ai-as.cn),可插拔任意 webhook)。纯端侧转写,无限流、零 API 费用。
5
+ 给它一条视频链接,或听播客/讲座时开着它,内容自动转写为 Markdown 并投递到你的知识库(默认 [ExoMind 知识飞轮](https://exomind.ai-as.cn),可插拔任意 webhook)。纯端侧转写,无限流、零 API 费用。
6
6
 
7
7
  ```
8
- 系统声音 ──录制──> 16k wav ──silero VAD 切段──> SenseVoice 端侧识别(实时字幕) ──> Markdown ──> 投递(exomind / webhook / 仅存档)
9
- 视频链接 ──yt-dlp──> 平台字幕(ai-zh/CC) ────────────────────────────┘(高信噪比路线)
8
+ 系统声音 ──录制──> 16k wav ──silero VAD 切段──> SenseVoice 端侧识别(实时字幕) ─┐
9
+ 视频链接 ──yt-dlp──> 平台字幕(ai-zh/CC,高信噪比路线) ─────────────────────────┼──> Markdown ──> 投递(exomind / webhook / 仅存档)
10
+ 本地音频 ──文件──> 16k wav ──VAD 切段──> SenseVoice 端侧识别 ──────────────────┤
11
+ 硬字幕视频 ──ffmpeg 抽帧──> PaddleOCR(无音轨路线) ─────────────────────────────┘
10
12
  ```
11
13
 
12
14
  ## 安装(开箱即用)
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "earshot-cli"
3
- version = "0.7.1"
4
- description = "旁听剪藏:跨平台桌面端系统声录制 → 本地转写 → 投递知识库(默认 ExoMind,可插拔)"
3
+ version = "0.8.1"
4
+ description = "媒体剪藏:视频字幕/系统声听录/本地音频/硬字幕OCR 四路摄入,端侧转写 → Markdown → 投递知识库(默认 ExoMind,可插拔)"
5
5
  readme = "README.md"
6
6
  license = "MIT"
7
7
  authors = [{ name = "Jackie" }]
@@ -1,7 +1,7 @@
1
- """earshot:旁听剪藏 —— 听到的都能进知识库。
1
+ """earshot:媒体剪藏 —— 听到看到的都能进知识库。
2
2
 
3
- 跨平台桌面端:系统声环回录制(macOS 需 BlackHole)→ 端侧 VAD+ASR 转写
4
- → 组装 Markdown → 投递(默认 exomind CLI,可插拔 webhook)。
3
+ 跨平台桌面端四路摄入:视频字幕(平台已生成文本)/系统声听录(macOS 需 BlackHole)
4
+ /本地音频/硬字幕OCR → 端侧转写 → 组装 Markdown → 投递(默认 exomind CLI,可插拔 webhook)。
5
5
  """
6
6
 
7
7
  from importlib import metadata as _metadata
@@ -58,7 +58,7 @@ def _add_common(p: argparse.ArgumentParser) -> None:
58
58
 
59
59
 
60
60
  def build_parser() -> argparse.ArgumentParser:
61
- parser = argparse.ArgumentParser(prog="earshot", description="旁听剪藏:听到的都能进知识库")
61
+ parser = argparse.ArgumentParser(prog="earshot", description="媒体剪藏:听到看到的都能进知识库")
62
62
  parser.add_argument("--version", action="version", version=f"earshot {__version__}")
63
63
  sub = parser.add_subparsers(dest="command") # 不带子命令时进入交互向导
64
64
 
@@ -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]听录 [2]视频字幕 [3]本地文件 [4]硬字幕OCR(回车=1;输入 q 退出)", default="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": "listen", "2": "video", "3": "audio", "4": "ocr"}
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}")
@@ -331,7 +331,7 @@ wheels = [
331
331
 
332
332
  [[package]]
333
333
  name = "earshot-cli"
334
- version = "0.7.1"
334
+ version = "0.8.1"
335
335
  source = { editable = "." }
336
336
  dependencies = [
337
337
  { name = "httpx" },
File without changes
File without changes