nerkn-deepgram

TotalClaw 作者 totalclaw

Deepgram CLI 语音转文字:本地文件、URL、麦克风与管道输入。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~nerkn-deepgram
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~nerkn-deepgram/file -o nerkn-deepgram.md
## 概述(中文)

Deepgram CLI 语音转文字:本地文件、URL、麦克风与管道输入。

## 技能正文

# Deepgram CLI 技能指南

## 工具
**@deepgram/cli** — Deepgram 语音转文字命令行界面。

---

## 安装
```bash
npm install -g @deepgram/cli
```

---

## 认证

```bash
deepgram login
```

使用你的 Deepgram API 密钥(本地存储)。

---

## 核心技能:语音 → 文字

### 转录本地音频文件

```bash
deepgram listen prerecorded audio.wav
```

### 带选项转录

```bash
deepgram listen prerecorded audio.wav \
  --model nova-2 \
  --language en \
  --punctuate \
  --diarize
```

---

## 核心技能:读取 / 获取内容

### 从 URL(远程音频)

```bash
deepgram listen prerecorded https://example.com/audio.mp3
```

### 从 STDIN(管道)

```bash
cat audio.wav | deepgram listen prerecorded -
```

### 从麦克风(实时)

```bash
deepgram listen microphone
```

用 `Ctrl+C` 停止。

---

## 输出处理

### 保存转录

```bash
deepgram listen prerecorded audio.wav > transcript.json
```

### 纯文本输出

```bash
deepgram listen prerecorded audio.wav --format text
```

---

## 实用标志(记住这些)

* `--model` – `nova-2`、`general` 等
* `--language` – `en`、`tr`、`de` 等
* `--punctuate` – 添加标点
* `--diarize` – 说话人分离
* `--format` – `json`、`text`、`srt`、`vtt`

---

## 典型工作流

1. 获取内容(文件 / URL / 麦克风)
2. 运行 `deepgram listen`
3. 捕获输出(JSON 或文本)
4. 后处理(搜索、摘要、字幕)

---

## 技能摘要

* 基于 CLI 的语音转文字
* 本地、远程与实时音频
* 可脚本化、管道友好
* 快速、准确、无 UI 废话