Fix socket read stream crashes and NameError on boot
This commit is contained in:
+1
-1
@@ -595,7 +595,7 @@ class MCPServer:
|
||||
raise RuntimeError(f"Failed to play audio file '{filename}'. Check format (16kHz 16-bit PCM WAV recommended).")
|
||||
|
||||
elif name == "record_voice":
|
||||
duration = int(args.get("duration_sec", 4))
|
||||
duration = int(args.get("duration_sec", 10))
|
||||
filename = str(args.get("filename", "recording.pcm"))
|
||||
# Clamp duration to a reasonable range
|
||||
duration = max(1, min(15, duration))
|
||||
|
||||
Reference in New Issue
Block a user