> ## Documentation Index
> Fetch the complete documentation index at: https://product.mmbrn.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# GetMicrophone

> Получение MicrophoneRef через audio-engine enumerate.

# GetMicrophone

## Pins

| Direction | Handle       | Type          |
| --------- | ------------ | ------------- |
| in exec   | `exec-in`    | exec          |
| in data   | `device`     | DeviceRef     |
| out exec  | `exec-out`   | exec          |
| out data  | `microphone` | MicrophoneRef |

## Runtime

На exec: резолвит `device`, вызывает `host.getMicrophone(deviceRef)` — enumerate через `@membrana/audio-engine-service` (без второго `AudioContext`).

## Preconditions

* Валидный `DeviceRef`
* Разрешение микрофона в host (browser)

## Anti-patterns

<Warning>
  Прямой `getUserMedia` / `AudioContext` в client module — запрещён. Только audio-engine.
</Warning>

## Minimal example

```text theme={null}
device-global.device → get-microphone.device
onStart.exec → get-microphone.exec-in
get-microphone.microphone → start-streaming.microphone
```

## Code

`block-executor.ts` → `get-microphone`
