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
3
votes
0 answers

Metronome with accents in Swift 4 using AVAudioEngine

I'm trying to create a solid metronome that has the option to play accented notes (ie a different note at the beginning of each bar). Having done research on the topic, I've learnt that using Timer (formerly NSTimer) isn't the way to go due to it's…
Matt Lyon
  • 113
  • 9
3
votes
1 answer

AudioKit access to underlying CoreAudio nodes (Spotify integration)

I'm trying to connect to Spotify stream and modify the output with custom synthetizer. It would be great to use the awesome AudioKit. In order to alter the output Spotify stream I have to implement this method, which gives me access to the spotify's…
3
votes
1 answer

Is it possible to play a Song from iOS Music Library with AVAudioEngine?

i have succesfully created a AVAudioEngine. It plays local sound-files from the project-directory. But how can I get access to the Music Library on the phone? Is there a way I can combine AVAudioEngine with the MPMediaPickerController ? Thank you
Joel
  • 396
  • 1
  • 15
3
votes
0 answers

AVAudioUnitEQ: numberOfBands parameter

when i initialize a AVAudioUnitEQ one parameter is the number of bands, which the equalizer Unit will have. My Question is what ist the possible max number of bands? is the number limited to the specific device I am using? (thats how it works on…
Joel
  • 396
  • 1
  • 15
3
votes
1 answer

How to detect that user stops talking when record microphone with AVAudioEngine?

I use AVAudioEngine to record user talking, I want to achieve that when the user pauses or stops talking for over X seconds, will play back the sentence just recorded before. But how can I detect this pause of talking during recording?? Haven't…
Abby Lin
  • 51
  • 4
3
votes
0 answers

How can I convert a stereo (two channels) audio file to a mono (one channel) audio file in iOS?

Currently, I'm recording audio on the Apple Watch using the presentAudioRecorderController and sending it to the corresponding iPhone app. The audio format by default seems to be recorded on the Apple Watch using two channels and there doesn't seem…
itsSLO
  • 359
  • 1
  • 4
  • 10
3
votes
0 answers

Using multiple audio input devices with AVAudioEngine

I've got several usb audio input devices connected and I want to select more than 1 of them to connect to the mixer. The way I understand it, it will not be able to use AVAudioInputNode for this purpose. I could accomplish this by using…
lagnat
  • 483
  • 3
  • 11
3
votes
0 answers

AVAudioEngine to NSData - wav file doesn't play on server

I am trying to record audio using AVAudioEngine. The file gets recorded and plays correctly. However, I also need to send AVAudioPCMBuffer that I receive in the tap handler to my server via socket. I am converting AVAudioPCMBuffer to NSData and…
Rahul Ahuja
  • 705
  • 1
  • 9
  • 16
3
votes
1 answer

Implementing Callback for AuAudioBuffer in AVAudioEngine

I recently watched the WWDC2014, Session on AVAudioEngine in practice, I have a question about the concept explained using AVAudioBuffers with NodeTap installed on the InputNode. The Speaker mentioned that, its possible to notify the App module…
sur
  • 345
  • 1
  • 3
  • 13
3
votes
1 answer

AVAudioEngine with Today Extension

Hello I want to add the Speech framework to an iOS 10 Today Extension. I try to use SpeakToMe sample https://developer.apple.com/library/content/samplecode/SpeakToMe/Introduction/Intro.html to record audio with AVAudioEngine. But I get an exception…
3
votes
4 answers

setting AVAudioFormat to connect function has crash

I have been trying play with AVAudioEngine for singed 16 bit stream data. But pass to AVAudioFormat connect function always make crash. codes like below: let AUDIO_OUTPUT_SAMPLE_RATE = 44100 let AUDIO_OUTPUT_CHANNELS = 2 let…
oozoofrog
  • 166
  • 9
3
votes
1 answer

ios recording with built-in mic only have one channel sound

I'm using AVAudioEngine to capture users' voice and apply some effects to it.When recording with headphone's mic , everything goes well. But when it comes to recording with phone's built-in mic , and playback the sound through headphone , only the…
Keater
  • 123
  • 2
  • 9
3
votes
0 answers

Installing tap on mixer node and convert sample rate

I am attempting to record audio from the input node and sending it to a mixer to convert the audio to a lowered sample rate to be written to disk. My audio file is created like this: let sett = [ AVSampleRateKey : NSNumber(double: 22050), …
hola
  • 3,150
  • 13
  • 21
3
votes
1 answer

Using AVAudioEngine to record mic and sound effects

I'm using AVAudioEngine to record input from the microphone as well as various sound effects to a single file. While recording, the sound is played back through the speakers, via the engine's outputNode. However, this causes a weird effect for users…
rodskagg
  • 3,827
  • 4
  • 27
  • 46
3
votes
1 answer

Save Audio File after apply Filter(AVAudioUnitEQ) and finally save it as mp3?

I am so Frustrating to save the Audio File After Apply the Filter. The filter only applicable for the AVAudioPlayerNode which mean during Playing in the player the filter is perfect to apply but how can i save this ? I am so struggle last 3 days,…
S. Karthik
  • 618
  • 5
  • 16