会议纪要skill增加历史会议纪要比对

This commit is contained in:
闫旭隆
2026-01-19 13:49:00 +08:00
parent e0aff02e31
commit 97457b8124
28 changed files with 3022 additions and 2223 deletions

View File

@ -1,39 +1,48 @@
@echo off
chcp 65001 >nul
setlocal enabledelayedexpansion
echo ========================================
echo 会议转写文本发言人替换工具
echo Speaker Replacement Tool
echo ========================================
echo.
REM 检查是否有参数
if "%~1"=="" (
echo 请将txt文件拖拽到此批处理文件上或使用命令行:
echo replace_speaker.bat 文件名.txt
echo.
pause
exit /b 1
)
REM 获取脚本所在目录
set "SCRIPT_DIR=%~dp0"
set "PYTHONIOENCODING=utf-8"
set "PYTHON=C:\Users\10120\anaconda3\python.exe"
REM 处理输入文件
set "INPUT_FILE=%~1"
echo 正在处理: %INPUT_FILE%
echo.
REM 调用Python脚本
python "%SCRIPT_DIR%replace_speaker.py" "%INPUT_FILE%"
if %ERRORLEVEL% EQU 0 (
if "%~1"=="" (
echo No file specified, processing all .txt files...
echo.
echo 处理成功!
set "COUNT=0"
for %%f in ("%SCRIPT_DIR%*.txt") do (
echo Processing: %%~nxf
echo Running: "%PYTHON%" "%SCRIPT_DIR%replace_speaker.py" "%%f"
"%PYTHON%" "%SCRIPT_DIR%replace_speaker.py" "%%f"
echo Exit code: !ERRORLEVEL!
if !ERRORLEVEL! EQU 0 (
set /a COUNT+=1
) else (
echo Failed: %%~nxf
)
)
echo.
echo ========================================
echo Processed !COUNT! files
echo ========================================
) else (
echo Processing: %~nx1
echo.
echo 处理失败!
"%PYTHON%" "%SCRIPT_DIR%replace_speaker.py" "%~1"
if !ERRORLEVEL! EQU 0 (
echo.
echo Done!
) else (
echo.
echo Failed!
)
)
echo.