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 | Get the current state of this processor |
Note: ProcessSamples expects 160 samples (8kHz) or 320 samples (16kHz).
See Also
ProcessorState
Possible states returned by
GetState()State Callbacks
Get notified when processor state changes