Questions tagged [avaudioengine]

Use this tag when your question is about the AVAudioEngine class, which is part of the AVFoundation framework.

AVAudioEngine is part of the AVFoundation framework for Apple platforms. The class provides some of the more complex audio processing functionalities within the framework, by grouping together connected audio node objects that provide functionality for creating and processing audio signals and IO.

The AVAudioEngine API can be found here.

Related tags:

535 questions
12
votes
2 answers

SKAudioNode() crashes when plugging in/out headphones

I am using a SKAudioNode() to play background music in my game. I have a play/pause function and everything is working fine until I plug in my headphones. There is no sound at all and when I call the pause/play function I get this…
Cherrypig
  • 370
  • 1
  • 2
  • 12
12
votes
3 answers

Using AVAudioEngine to schedule sounds for low-latency metronome

I am creating a metronome as part of a larger app and I have a few very short wav files to use as the individual sounds. I would like to use AVAudioEngine because NSTimer has significant latency problems and Core Audio seems rather daunting to…
blwinters
  • 1,911
  • 19
  • 40
12
votes
2 answers

Set AVAudioEngine Input and Output Devices

I've been playing around with Apple's shiny new AVFoundation library, but so far I've unable to set the input or output devices (e.g. a USB sound card) used by an AVAudioEngine, and I can't seem to find anything in the documentation to say it's even…
Benjineer
  • 1,530
  • 18
  • 22
10
votes
2 answers

Low Pass filter + sample rate conversion using Avaudioengine iOS

We are working on a project which allows us to record some sounds from a microphone with a 5k Hz sample rate with some Low-Pass filter & HighPass filter. What we are using We are using AvaudioEngine for this purpose. We are using AVAudioConverter…
10
votes
0 answers

required condition is false: format.sampleRate == hwFormat.sampleRate in my iPhone 11 Pro

I am using AVAudioSession and AVAudioInputNode to record voice in iOS. To initialise it I was using the following settings, which was working fine: [AVFormatIDKey: kAudioFormatLinearPCM, AVLinearPCMBitDepthKey: 16, AVLinearPCMIsFloatKey: true,…
10
votes
2 answers

AVAudioConverter with AVAudioConverterInputBlock stutters audio after processing

I'm trying to convert audio buffers to a different format, and I'm using AVAudioConverter. AVAudioConverter does the job when you have the same sample rate and you don't need to use the AVAudioConverterInputBlock. But if I'm dealing with the same…
MScottWaller
  • 3,321
  • 2
  • 24
  • 47
10
votes
1 answer

Build a simple Equalizer

I would like to make a 5-band audio equalizer (60Hz, 230Hz, 910Hz, 4kHz, 14kHz) using AVAudioEngine. I would like to have the user input gain per band through a vertical slider and accordingly adjust the audio that is playing. I tried using…
10
votes
2 answers

Pitch Shifting in Real Time With AVAudioEngine using Swift

I am developing an Audio effects application on OSX using Swift, and I'm interested in integrating a pitch-shift effect. I would like in real-time, to change the tone up or down an octave. Currently I am only getting a dry signal. I am not sure if…
10
votes
1 answer

Stream data from network in AVAudioEngine, is it possible?

I have an app in which I use AVAudioEngine for playing files from the local file system by using AVAudioPlayerNodes and AVAudioFiles. This works perfectly fine. Now I would like to enable my setup to also support streaming of MP3 files from a server…
pbodsk
  • 6,787
  • 3
  • 21
  • 51
9
votes
1 answer

AvaudioEngine - Record voice at specific sample rate AvaudioEngine for Analysis

we are working on a project which records voice from an external microphone. For analysis purposes, we need to have a sample rate of about 5k Hz. We are using AvAudioEngine to record a voice. We know Apple devices want able to record at a specific…
Bhavin Vaghela
  • 654
  • 1
  • 5
  • 19
9
votes
1 answer

AVAudioConverter float32/48khz -> int16/16khz conversion failure

This method handles the callback from installTap on the input node from an AVAudioEngine. I have confirmed that I'm getting mono float32/48000hz buffer data, and I'd like to convert it to mono int16/16000hz. var converter: AVAudioConverter? =…
Jacob Jennings
  • 2,796
  • 1
  • 24
  • 26
9
votes
0 answers

stream audio via UDP by using CocoaAsyncSocket in swift

I have a problem to send audio by CocoaAsyncSocket via UDP in swift. First of all I run below code to start listening 4444 UDP port. vlc --demux=rawaud --rawaud-channels=1 --rawaud-samplerate=48000 udp://@:4444 after that I run my application in…
9
votes
2 answers

Is it possible to record the audio that comes out of the iPhone?

I am working on an app that allows the user to create a sort of dub. There is an audio file playing, and the user can tap at certain moments to insert sound (kind of like a censor button.) I'm wondering how to go about capturing the final product.…
swiftyboi
  • 2,965
  • 4
  • 25
  • 52
9
votes
0 answers

Save audio file with changed time pitch using AVAudioEngine in Swift

Currently, I am trying to change the time pitch of an existing audio file from the Document folder, then override the old file with the modified one using AVAudioEngine. I have got the first part working using AVAudioPlayerNode and…
Lê Hoàng
  • 187
  • 5
8
votes
1 answer

How to apply audio effects in iOS

I use AVPlayer to play audio(streaming or local file). For this audio I want to apply some effects - boost volume, skip silence, reduce noise, change speed(in 0.1 intervals). I did same thing in android by creating own player, decoding different…
Martin Vandzura
  • 3,047
  • 1
  • 31
  • 63
1
2
3
35 36