Skip to content

Add file-based mutex for sequential TTS playback#219

Merged
drn merged 1 commit intomasterfrom
drn/tts-local-mutex
Mar 8, 2026
Merged

Add file-based mutex for sequential TTS playback#219
drn merged 1 commit intomasterfrom
drn/tts-local-mutex

Conversation

@drn
Copy link
Copy Markdown
Owner

@drn drn commented Mar 8, 2026

Use syscall.Flock on /tmp/tts.lock to serialize audio playback across concurrent tts processes, so multiple simultaneous tts invocations play sequentially rather than overlapping.

Co-Authored-By: Claude noreply@anthropic.com

Use syscall.Flock on /tmp/tts.lock to serialize audio playback
across concurrent tts processes. The API call and download still
happen in parallel — only afplay is serialized.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@drn drn merged commit 15b0155 into master Mar 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant