Files
AIEC_Skills/.claude/skills/meeting-minutes-generator-v1/input/本周会议转写文本/replace_speaker.bat
闫旭隆 202d1cb5ba 20260109
2026-01-09 11:22:42 +08:00

41 lines
735 B
Batchfile
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.

@echo off
chcp 65001 >nul
setlocal enabledelayedexpansion
echo ========================================
echo 会议转写文本发言人替换工具
echo ========================================
echo.
REM 检查是否有参数
if "%~1"=="" (
echo 请将txt文件拖拽到此批处理文件上或使用命令行:
echo replace_speaker.bat 文件名.txt
echo.
pause
exit /b 1
)
REM 获取脚本所在目录
set "SCRIPT_DIR=%~dp0"
REM 处理输入文件
set "INPUT_FILE=%~1"
echo 正在处理: %INPUT_FILE%
echo.
REM 调用Python脚本
python "%SCRIPT_DIR%replace_speaker.py" "%INPUT_FILE%"
if %ERRORLEVEL% EQU 0 (
echo.
echo 处理成功!
) else (
echo.
echo 处理失败!
)
echo.
pause