SkillsGrove

sonote

설치

$npx skills add https://github.com/tellang/sonote --skill sonote
$git clone --depth 1 https://github.com/tellang/sonote.git /tmp/sonote && mkdir -p ~/.claude/skills && cp -r /tmp/sonote/. ~/.claude/skills/sonote
이 Agent Skill을 설치해 주세요: https://github.com/tellang/sonote/tree/5eb2e815139dc9c3b86f6208190d5a838bc653f0/ — 먼저 SKILL.md와 스크립트를 읽고, 안전하다고 확인한 뒤에만 제 skills 폴더에 설치해 주세요.

요약

원문 설명 · MITAI 에이전트를 위한 실시간 한국어 음성 전사 CLI — Whisper + Gemini 교정 + 화자 분리
아래 SKILL.md는 tellang/sonote(커밋 5eb2e81)에서 MIT 라이선스에 따라 게시한 것입니다. 본문은 변경하지 않았으며, 파일 상단의 메타데이터만 생략하고 이미지는 링크로 표시하며 매우 긴 파일은 일부만 표시합니다. Copyright 2025 tellang. 라이선스: LICENSE. 지침 파일만 표시되며 스크립트 등은 원본 저장소를 참고하세요.

sonote

실시간 한국어 음성 전사 CLI. YouTube 라이브, 로컬 오디오, 마이크 입력을 Whisper로 전사하고 Gemini/Ollama LLM 후처리로 교정한다. 구조화된 JSON 출력을 제공한다.

실행

# 로컬 오디오 전사
sonote transcribe audio.wav --json

# YouTube 라이브 전사
sonote live https://youtube.com/watch?v=XXX --back 50 --json

# YouTube 라이브 연속 전사
sonote live https://youtube.com/watch?v=XXX --continuous --json

# 회의 실시간 전사
sonote meeting --json

# 오프라인 회의록 변환
sonote meeting --file recording.wav --json

# 설정만 확인 (dry-run)
sonote meeting --dry-run --json

# 올인원: 스캔 → 다운로드 → 전사
sonote auto https://youtube.com/watch?v=XXX --json

# 환경 진단
sonote doctor --json

구조화 출력

모든 커맨드는 --json 플래그로 기계 판독 가능한 JSON을 출력한다.

성공

{
  "status": "success",
  "command": "transcribe",
  "data": { ... }
}

실패

{
  "status": "error",
  "command": "transcribe",
  "error": "오디오 파일을 찾을 수 없습니다",
  "code": "NOT_FOUND",
  "reason": "notFound"
}

스트리밍 (NDJSON)

--ndjson 플래그로 줄 단위 JSON 스트리밍 출력:

{"event":"start","command":"transcribe","audio":"audio.wav"}
{"event":"segment","start":0.0,"end":5.2,"text":"안녕하세요"}
{"event":"complete","command":"transcribe","segments":42}

종료코드

코드 reason enum 의미
0 — 성공
1 runtimeError 런타임 오류
2 argError 인수 오류
3 modelError 모델 로딩/추론 오류
4 notFound 파일/리소스 미발견
5 preflightFail 사전 점검 실패

스키마 조회

# 전체 서브커맨드 스키마 + 런타임 capabilities
sonote schema

# 특정 서브커맨드 스키마
sonote schema meeting

주요 커맨드

커맨드 설명
transcribe 로컬 오디오 파일 전사
live YouTube 라이브 녹음 + 전사 (연속 모드 지원)
meeting 마이크 실시간 회의 전사 (SSE + 화자 분리 + 파일)
auto 스캔 → 다운로드 → 전사 올인원
detect 라이브 스트림 강의 시작 지점 탐색
map 라이브 스트림 전체 구간 맵핑
download YouTube 라이브 오디오만 다운로드
profile 비디오 프로필 DB 관리
enroll 화자 목소리 사전 등록
approve 회의 후 후보 프로필 적용
cookies Chrome 쿠키 관리
desktop 네이티브 데스크톱 앱 (pywebview)
autostart Windows 자동 시작 등록/해제
update GitHub Releases 최신 버전 확인/설치
schema 서브커맨드 스키마 JSON 출력
status GPU/모델/외부 도구 상태 진단
doctor 종합 환경 진단 + 설치 안내
setup 환경 설정 + 의존성 자동 설치

LLM 후처리 (v2.0+)

전사 후 LLM으로 STT 교정 + 요약을 생성한다. live와 meeting 커맨드에서 지원.

# 기본: Gemini 교정 활성
sonote meeting --json

# LLM 후처리 비활성화
sonote meeting --no-polish --json

# Ollama 로컬 LLM 사용
sonote meeting --ollama --json
sonote meeting --ollama --ollama-model qwen3.5:9b --json

필드 선택

--fields 플래그로 전사 결과의 출력 필드를 선택할 수 있다 (JSON 모드에서만 유효):

sonote transcribe audio.wav --json --fields text,start,end

사전 점검 (Preflight)

모든 커맨드는 실행 전 필수 조건(ffmpeg, yt-dlp, CUDA, HF_TOKEN)을 자동 점검한다. --dry-run으로 실제 실행 없이 설정과 점검 결과만 확인 가능.

환경 변수

변수 설명
HF_TOKEN Hugging Face 토큰 (화자 분리)
MEETING_API_KEY 회의 API 인증 키
SONOTE_COOKIES cookies.txt 경로
SONOTE_BETA 베타 모드 활성화 (1)
PORT 서버 포트 (기본: 8000)

제약 사항

  • CUDA GPU 권장 (CPU 폴백 가능하지만 느림)
  • YouTube 라이브 기능은 ffmpeg + yt-dlp 필수
  • 화자 분리는 HF_TOKEN + pyannote-audio 필요
  • Windows 전용 기능: Chrome 쿠키 추출, 시스템 트레이, 자동 시작
라이선스 전문 보기(MIT)
MIT License

Copyright (c) 2025 tellang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.