Skip to main content
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

MethodParametersReturnsDescription
ProcessSamplesinput_samples: List[float]List[float]Process a single 20 ms audio chunk
GetState-ProcessorStateGet 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