19 lines
534 B
Bash
Executable File
19 lines
534 B
Bash
Executable File
#!/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
|