decodePCM16
Decode 16-bit PCM into samples.
The inverse of encodePCM16, for audio
arriving from a provider that you want to play or process.
let samples = decodePCM16(data)Signature
func decodePCM16(
_ data: Data
) -> [Float]Defined in Sources/AI/Realtime/AudioResampling.swift.
Parameters
| Parameter | Type | Default |
|---|---|---|
_ | Data | required |
Returns
An array of samples.