Meeting mode: hold speech for the whole call while another app is using the microphone

Open
#85 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
macos, python

Research direction

Start by locating the manual playback-pause path, the ai-tts status output, and the menu-bar state. Then inspect how a fake input-activity port can represent sustained capture by another process. Done means playback remains held, submissions queue, call_in_progress is reported, and the release-on-call-end behavior is covered by the two proposed tests.

Written by the indexing model from the issue text.

Description

enhancement

Problem

The microphone hold pauses playback while the listener is speaking and resumes when input goes idle. During a call (Zoom, Meet, a Slack huddle), there are long quiet stretches where that resume fires, and agent speech can end up in the meeting and its recording. Today the "never speak in meetings" rule depends on every agent checking ai-tts status first.

Proposal

  • Detect that another process is capturing audio input (for example with kAudioDevicePropertyDeviceIsRunningSomewhere on the input device, or per-process input monitoring on recent macOS). Hold all playback for as long as that continues. Submissions keep queuing, as they do under a manual pause.
  • Report the state in ai-tts status (hold_reason: call_in_progress) and in the menu bar.
  • When the call ends, release the hold according to a setting: resume automatically, or wait for the user.
  • Add an allowlist for apps that use the mic but aren't calls, such as dictation.

Tests: a fake input-activity port with a sustained "other process capturing" state asserts no playback starts and that the hold reason is reported. A second test covers release on call end.

Dominant language
Python
Stars
0
Forks
1
Avg merge
2h 13m
Merged PRs (30d)
51

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flyingrobots/AI-TTS

All issues in flyingrobots/AI-TTS

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.