# MicrophoneTapHandle

A live microphone subscription.

Source: https://socketsvc.vercel.app/api/shared/MicrophoneTapHandle
<Callout title="Generated from source">
  Interface `com.socketsvc.api.MicrophoneTapHandle` — generated from [MicrophoneTapHandle.java](https://github.com/HippoDev03/SocketSVC/blob/main/common/core/src/main/java/com/socketsvc/api/MicrophoneTapHandle.java). Edit the Javadoc in the Java source, then run `pnpm gen:api`.
</Callout>

```java
package com.socketsvc.api;

public interface MicrophoneTapHandle extends AutoCloseable { ... }
```

A live microphone subscription. Close it to stop receiving audio; closing twice is harmless.

SocketSVC closes these for you when the owner is disabled and when the server stops, so an
addon that subscribes for its whole lifetime need not keep the handle. Keep it if you want to
stop earlier than that.

## Methods

### close

```java
void close()
```

Stops delivery. Idempotent, and safe to call from any thread - including from inside the
tap's own callback.

### isClosed

```java
boolean isClosed()
```