kill_all_tts
Terminates all running text-to-speech processes in Windows, ensuring clean system performance and resolving conflicts with TTS functionality.
Instructions
모든 TTS 관련 프로세스를 강제 종료합니다
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- windows_tts_mcp/main.py:339-374 (handler)The kill_all_tts tool handler function that forcibly terminates all managed TTS processes, PowerShell instances, and speech-related processes.@mcp.tool() def kill_all_tts() -> str: """모든 TTS 관련 프로세스를 강제 종료합니다""" try: # 1. 관리 중인 프로세스 종료 with process_lock: for process in running_processes[:]: try: process.kill() running_processes.remove(process) except: pass running_processes.clear() # 2. 시스템의 모든 PowerShell TTS 프로세스 강제 종료 try: subprocess.run([ "taskkill", "/F", "/IM", "powershell.exe" ], capture_output=True, timeout=10) except: pass # 3. Speech 관련 프로세스 정리 try: subprocess.run([ "powershell", "-Command", "Get-Process | Where-Object {$_.ProcessName -like '*speech*' -or $_.CommandLine -like '*Speech*'} | Stop-Process -Force" ], capture_output=True, timeout=5) except: pass return "[KILL] 모든 TTS 프로세스를 강제 종료했습니다" except Exception as e: return f"[ERROR] 강제 종료 오류: {str(e)}"
- windows_tts_mcp/main.py:339-339 (registration)Registration of the kill_all_tts tool via the @mcp.tool() decorator.@mcp.tool()
- windows_tts_mcp/main.py:402-402 (helper)Usage of kill_all_tts within the emergency_silence tool.kill_all_tts()