Questions tagged [akmicrophone]

4 questions
2
votes
1 answer

AKMicrophone in AudioKit appears to have no default init(), fails to initialize

This code is in a class that contains my AudioKit code. The call 'mic = AKMicrophone' fails. private let mic : AKMicrophone let tracker : AKFrequencyTracker private let silence : AKBooster init() { do { try…
LostInTheTrees
  • 1,135
  • 9
  • 19
2
votes
0 answers

AudioKit: AKNodeRecorder randomly stops microphone

I've got a strange one - I'm using an AKRecorder to record short segments from the AKMicrophone. However randomly every now and again, the microphone goes silent. Sometimes it happens fairly quickly, sometimes it takes a few minutes. I've stripped…
Craig Grummitt
  • 2,945
  • 1
  • 22
  • 34
0
votes
1 answer

AudioKit: can't restart AudioKit sampling of frequency after calling 'AudioKit.stop()'

I'm using AudioKit 4.10. I use this simple code to sample frequency and amplitude from a microphone: import AudioKit protocol MicAnalyzerDelegate { /** * The MicAnalyzer calls this delegate function. */ func…
madx
  • 6,723
  • 4
  • 55
  • 59
0
votes
1 answer

AKAmplitudeTracker amplitude getting 0.0 using audioKit

I want to get the volume of AKAmplitudeTracker but getting -inf what is wrong with me please help out. AKAudioFile.cleanTempDirectory() AKSettings.audioInputEnabled = true AKSettings.bufferLength = .medium …
Developer
  • 760
  • 3
  • 15