@casatwy/deyo 0.1.6 → 0.1.7

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 (3) hide show
  1. package/README.md +15 -1
  2. package/deyo.mjs +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  `deyo` 是 [https://deyo.miaobi.fun](https://deyo.miaobi.fun) 的命令行工具。你可以直接在终端里提交音视频链接进行转写,并把结果输出到终端或保存到本地文件。
4
4
 
5
- 当前支持的来源包括小宇宙单集、B 站单视频、抖音单视频、小红书单视频笔记、YouTube 单视频和 Apple Podcasts 单集。
5
+ 当前支持的来源包括小宇宙单集、喜马拉雅单集、B 站单视频、抖音单视频、小红书单视频笔记、YouTube 单视频、Apple Podcasts 单集和 Twitter/X 单条推文。其中 Twitter/X 只有视频推文可转写,文本 / 图片推文会返回 422,不会扣分钟或创建转写任务。
6
6
 
7
7
  ## 安装
8
8
 
@@ -81,6 +81,20 @@ deyo -O ./transcript.txt 'https://www.bilibili.com/video/BVxxxx'
81
81
  deyo -O ./episode.txt 'https://www.xiaoyuzhoufm.com/episode/xxxx'
82
82
  ```
83
83
 
84
+ 处理喜马拉雅单集并保存为文本:
85
+
86
+ ```bash
87
+ deyo -O ./ximalaya.txt 'https://www.ximalaya.com/sound/963656969'
88
+ ```
89
+
90
+ 处理 Twitter/X 视频推文并保存为文本:
91
+
92
+ ```bash
93
+ deyo --source twitter -O ./tweet.txt 'https://x.com/historyinmemes/status/1790637656616943991'
94
+ ```
95
+
96
+ 如果传入 Twitter/X 文本或图片推文,CLI 会提示当前不支持转写;这类内容不会进入支付或分钟扣减链路。
97
+
84
98
  保存为普通文本:
85
99
 
86
100
  ```bash
package/deyo.mjs CHANGED
@@ -38,7 +38,7 @@ function printUsage() {
38
38
  转写选项:
39
39
  --api-key <key> 可选,Deyo API key
40
40
  -O, --output <path> 可选,输出文件路径
41
- --source <name> 可选,显式指定来源
41
+ --source <name> 可选,显式指定来源:xiaoyuzhou | ximalaya | bilibili | douyin | xiaohongshu | youtube | apple-podcasts | twitter
42
42
  --language <value> 可选,转写语言,默认 ${DEFAULT_LANGUAGE}
43
43
  --format <value> 可选,text | srt | vtt | json | verbose_json
44
44
  --progress-format <v> 可选,auto | text | jsonl,默认 auto
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casatwy/deyo",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "CLI for submitting Deyo transcription jobs from the terminal",
5
5
  "homepage": "https://deyo.miaobi.fun/docs",
6
6
  "license": "UNLICENSED",