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

# AudioProcessor

`AudioProcessor` handles the real-time processing of audio samples through the Sanas AI models. You obtain an instance by calling `RemoteSDK.CreateAudioProcessor()`, then feed it audio in fixed-size chunks. Each call to `ProcessSamples` sends a chunk to Sanas Cloud and returns the processed audio.

## Methods

| Method           | Parameters                   | Returns                                                               | Description                             |
| ---------------- | ---------------------------- | --------------------------------------------------------------------- | --------------------------------------- |
| `ProcessSamples` | `input_samples: List[float]` | `List[float]`                                                         | Process a single 20 ms audio chunk      |
| `GetState`       | `-`                          | [ProcessorState](/API-Reference/Reference/State-Enums/ProcessorState) | Get the current state of this processor |

<Info>**Note:** ProcessSamples expects 160 samples (8kHz) or 320 samples (16kHz).</Info>

## See Also

<CardGroup cols={2}>
  <Card title="ProcessorState" icon="signal" href="/API-Reference/Reference/State-Enums/ProcessorState">
    Possible states returned by `GetState()`
  </Card>

  <Card title="State Callbacks" icon="bell" href="/API-Reference/Reference/State-Callbacks">
    Get notified when processor state changes
  </Card>
</CardGroup>
