audio-controls
OfficialMute, unmute, and switch audio in calls
Software Engineering#audio controls#mute microphone#AVAudioSession#bluetooth audio#call session#ui state sync
Authorcometchat
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It solves the challenge of controlling microphone state and choosing the correct audio output (speaker, earpiece, or Bluetooth) during a live CometChat voice/video call.
Core Features & Use Cases
- Microphone mute/unmute: Programmatically mute and unmute the local microphone during an active session.
- Audio output switching: Change the device routing using AVAudioSession (speaker/earpiece) and configure Bluetooth playback when available.
- Audio event handling: Listen for audio state changes to keep your UI (mute button and audio mode indicators) in sync.
- Initial audio configuration: Start a session with audio muted and optionally show/hide built-in audio controls.
Quick Start
Configure your call UI to mute/unmute via CallSession.shared.muteAudio() and CallSession.shared.unmuteAudio(), and switch output with AVAudioSession.overrideOutputAudioPort for speaker/earpiece or setCategory for Bluetooth.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: audio-controls Download link: https://github.com/cometchat/calls-sdk-ios/archive/main.zip#audio-controls Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.