Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about avaudiopcmbuffer

Read more about avaudiopcmbuffer

python (65.2k questions)

javascript (44.3k questions)

reactjs (22.7k questions)

java (20.8k questions)

c# (17.4k questions)

html (16.3k questions)

r (13.7k questions)

android (13k questions)

Questions - avaudiopcmbuffer

AVAudioPCMBuffer as Base64

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.
test-img

Bjorn Thor Jonsson

swift

avfoundation

avaudiopcmbuffer

Votes: 0

Answers: 1

Latest Answer

Maybe you can convert the AVAudioPCMBuffer to Data and from Data to a base64 string. private func encodeBuffer(_ buffer: AVAudioPCMBuffer) { let audioBuffer = buffer.audioBufferList.pointee.m...
test-img

Shawn Frank

Converting AvAudioInputNode to S16LE PCM

I'm trying to convert input node format to S16LE format. I've tried it with AVAudioMixerNode First I create audio session do { try audioSession.setCategory(.record) try audioSession.setActive(true...
test-img

Tadej Slemenšek

swift

audio-recording

avaudiosession

avaudioengine

avaudiopcmbuffer

Votes: 0

Answers: 1

Latest Answer

You have to set the format of nodes to match the actual format of the data. Setting the node's format doesn't cause any conversions to happen, except that mixer nodes can convert sample rates (but not...
test-img

Rob Napier

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved