How can the data from an AVAudioPCMBuffer
be obtained as a Base64 encoded string, with Swift?
I'm asking as I'd like to send data from the microphone input on an iOS device to a WebSocket.
How can the data from an AVAudioPCMBuffer
be obtained as a Base64 encoded string, with Swift?
I'm asking as I'd like to send data from the microphone input on an iOS device to a WebSocket.
Maybe you can convert the
AVAudioPCMBuffer
toData
and fromData
to a base64 string.