Files
karuo-ai/01_卡资(金)/金仓_存储备份/脚本/handy_paste_karuo_asr.sh
2026-07-19 00:21:46 +08:00

19 lines
534 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env bash
# Handy external_script转写 → 回廊洗字 → 仅粘贴洗后文⌘V
set -euo pipefail
if [[ $# -lt 1 ]]; then
echo "handy_paste_karuo_asr: missing transcription argument" >&2
exit 1
fi
KARUO_AI_ROOT="${KARUO_AI_ROOT:-/Users/karuo/Documents/个人/卡若AI}"
PIPE="${KARUO_AI_ROOT}/运营中枢/工作台/脚本/karuo_voice_pipeline.py"
if [[ ! -f "$PIPE" ]]; then
echo "handy_paste_karuo_asr: pipeline not found: $PIPE" >&2
exit 2
fi
python3 "$PIPE" "$1" --mode paste --source handy-asr