Questions tagged [audiokit]

AudioKit is an audio synthesis, processing, and analysis platform for macOS, iOS, and tvOS.

Use this tag to get answers on AudioKit. Please post code that you have tried. Make sure it is actually a question concerning AudioKit. Questions for toolchain, language or software design should also contain more tags to get a wider audience.

Getting help

There are two methods for getting support for AudioKit, listed in order of what you should try first:

  1. Post your problem to StackOverflow with this audiokit tag.

  2. If you are pretty sure the problem is not in your implementation, but in AudioKit itself, you can open a Github Issue.

Links to documentation, samples and code

947 questions
5
votes
0 answers

Measure (frequency-weighted) sound levels with AudioKit

I am trying to implement an SLM app for iOS using AudioKit. Therefore I need to determine different loudness values to a) display the current loudness (averaged over a second) and b) do further calculations (e.g. to calculate the "Equivalent…
Rob
  • 491
  • 4
  • 14
5
votes
1 answer

Synchronizing AKPlayer with AKSampleMetronome

I am trying to use AKSamplerMetronome as a master clock in my (sort of) multi audiofile playback project. I wanted AKPlayers to be started in sync with Metronome's downbeat. Mixing AKPlayer and AKSamplerMetronome as AudioKit.output was successful,…
Gavin
  • 251
  • 1
  • 6
5
votes
1 answer

Using multiple AKPlayers for multiple audio files playback

I am trying to play 4 mp3 files synchronously using AudioKit's AKPlayer, and it was pretty successful. As a part of my Swift study, though, I wanted to simplify my code using arrays (or something I haven't learned yet) since I feel there's something…
Gavin
  • 251
  • 1
  • 6
5
votes
1 answer

AudioKit handling of AVAudioSessionInterruption

After receiving a phone call or just having the phone ring our background play enabled AudioKit app goes silent for good and I am not sure how to handle that. The only way to restart sound output is to kill and restart the app. Other interruptions…
caxix
  • 1,085
  • 1
  • 13
  • 25
5
votes
0 answers

Use internal Microphone with AudioKit with headphones connected

I am using AudioKit in Swift with ios 11 and AudioKit. I cant get my app to use the iphone mic instead of the mic built into my headphones. They are standard apple in-ear headphones. (Wired not Bluetooth) let mic = AKMicrophone() if let inputs…
user759885
5
votes
0 answers

Audiokit - random crashes when app comes from background

I've started experimenting with AudioKit - lovely framework, however I'm having some crashes that I can't trace. To get started, I wanted to build a sequencer and I followed the example in this medium post:…
aandrei
  • 355
  • 1
  • 7
5
votes
1 answer

Play pure tones periodically with AudioKit

I want to play very basic sounds using the AudioKit oscillator at a given frequency. For example: play a simple sine wave at 400Hz for 50 miliseconds, then 100 ms of silence, then play 600Hz for 50ms … I have a metal view where I render some visual…
bienqueda
  • 89
  • 5
5
votes
0 answers

How do I stop AudioKit Inputs and Outputs efficiently and definitively?

I've been using Audiokit.stop() to reasonable effect, and some minor issues that I'd like to resolve now. With the recent update to Audiokit 4.2, I'm now getting a (very useful) error message from the following code: do { try AudioKit.stop() }…
Mr_P
  • 523
  • 2
  • 16
5
votes
1 answer

Audiokit crashes when changing AKPlayer file

I have recently done the migration from AudioKit 3.7 to 4.2 (using Cocoapods), needed for XCode 9.3. I followed the migration guide and changed AKAudioPlayer to AKPlayer. The issue When AKPlayer plays an audio file, AudioKit is crashing with this…
syfonseq
  • 123
  • 1
  • 6
5
votes
0 answers

iOS - AudioKit: Different devices for input and output

I'm trying to record an audio using Build-In Microphone and playback it simultaneously through Remote Speaker. I'm using AudioKit as follows: import UIKit import AudioKit class ViewController: UIViewController { let session =…
goldwalk
  • 341
  • 1
  • 2
  • 11
5
votes
2 answers

No type or protocol named AKNode/AKToggleable

I'm trying to extend AKNode and AKToggelable and this error appears on Project-Swift.h file What is the way to do this? My class is class AKCustom: AKNode, AKToggleable, AKComponent, AKInput { public typealias AKAudioUnitType =…
5
votes
1 answer

Crash when adding AKMicrophone

I'm developing an audio app with AudioKit which involves periodically stopping AudioKit, rearranging or replacing the chain of AKNode subclasses, then restarting AudioKit. This has been working smoothly until I tried it with AKMicrophone. If…
c_booth
  • 2,185
  • 1
  • 13
  • 22
5
votes
1 answer

AudioKit (iOS) - Add observer for frequency / amplitude change

I'm using the AudioKit framework for developing a small application that is able to listen for the microphone input frequency & amplitude and I want to trigger an event (obviously I want to trigger a function) every time the frequency & the…
user9174501
5
votes
2 answers

Stop AKMicrophone without stopping AudioKit

I have an app in which I only want to be recording from one particular screen. On every other screen I would like to not be recording mostly so that audio can still play while the app is in the background without the red recording bar being there.…
Nathan
  • 1,013
  • 6
  • 6
5
votes
1 answer

Is it possible to connect a MusicPlayer using MusicSequence to AVAudioUnitSampler?

I'm using Audiokit for the audio needs of my iOS app, where I need to use a sequencer to programmatically control a sequence of notes and I want to drive a sampler with it. Audiokit seems to be designed to use MIDI internally, but I'd like to avoid…
whistler
  • 540
  • 4
  • 14