Audio meter when recording is on in ios - ios

I am using the audio recorder in my project,want to show audio meter when recording is on, and stop it when recording is off.i have used PCSEQ meter but it show default meter not depend on pitch level of volume.,but i want it depend on volume pitch level show high or low.So please tell me how can i do it ?

after waiting 1 day today i have work with http://code4app.net/ios/ATTabandHoldAudioRecord/52366f936803fa533b000000 and show the volume pitch level when user record audio.
thanks to developer who made it.

Related

Simultaneous recording and playback at different sample rates in iOS

I am working on an iOS app where audio recording and playback should happen simultaneously but at different sampling rates.
Recording will be done through a connected USB Audio device, and playback is done through the inbuilt speaker. I am using AudioUnits for both recording and playback.
AVAudioSession category is set to AVAudioSessionCategoryPlayAndRecord.
Problem is that, recording sample rate should be 96kHz whereas playback sample rate should be 8kHz and, both should run simultaneously.
Currently, whenever I use AVAudioSessionCategoryPlayAndRecord and setPreferredSampleRate to 96kHz, ultimately sampleRate property of AVAudioSession remains at 48kHz and I am loosing half of the samples while recording.
If I use AVAudioSessionCategoryRecord recording happens just fine. But I can't run the audio playback simultaneously with this category. I even tried AVAudioSessionCategoryMultiRoute with no luck, here sampleRate remains at 44.1kHz
So, my question is in iOS how to use different sample rates for recording and playback and, still run them simultaneously? Any advice or references are greatly appreciated.
Please let me know if any other details are required.
I ended up using AVAudioSessionCategoryPlayAndRecord category.
Preferred sample rate is set to 48kHz.
To achieve higher sampling rate for recording, I am using setPreferredInputNumberOfChannels. By increasing number of input channels(which affects only recording) you can have different sampling rate for recording.
In case the recording sampling rate is not a multiple of playback sample rate, we may need to add some interleaving/padding to input samples(Assuming you have control over how data is formatted by the USB device)

iOS Change pitch of voice while recording the sound file

My basic question is that , Is it possible that I can change pitch of the sound before recording so that the recorded sound shall be saved as my desired pitch value. Means If I need to record sound in low/high pitch what Audio settings I need to do before recording a sound.
Regards

Record Audio For Ten Hours in iOS

I'm having trouble with my application where I'm looking to record audio for roughly ten hours at a time. I'm not looking to save a ten hour clip, but rather listen out for short loud noises over that ten hour period and save only them.
Currently I have made a prototype using the AVFoundation framework which records audio in the background, plays it back and monitors the noise levels to check how loud the current audio is. I had an idea of how to get around my problem where I could monitor the noise levels and only save the recording if it exceeds these noise levels. Therefore only recording short second clips and saving on space.
However in order to check the noise levels the audio recorder must be recording all the time and so will currently record that full audio clip.
Could anyone offer me some guidance on the matter please?

Monitoring Audio Input on iPhone Without Recording it?

I am trying to write an app in Apple Swift that monitors audio from the microphone and displays the volume level on a VU meter style graph. I know how to do it using AVAudioRecorder, but I don't want to record and save the audio, I just want to monitor and observe the volume levels, as I will be monitoring the audio for multiple hours and saving this to the phone would take up tons of space.
Can anybody lead me in the right direction as to how I can do this?
Thanks!
I do not have any code to show, as I a just looking for the right direction to go not debugging.
You can use AVCaptureSession:
add an input device (the microphone) using AVCaptureDeviceInput;
add an output AVCaptureAudioDataOutput, setting the sample buffer delegate
Once you start the session, the delegate will receive audio samples that you can process however you wish.
Don't forget to ask permission before using the AVCaptureDevice!

Capture when recording audio, stops to receiving audio AVAudioRecorder

There is a talking cat app well known for iOS devices, in which you speak your voice and he repeats. Analyzing this app, you'll see that it stops talking when you stop talking, that is, it stops to capture the audio when not receive another voice.
I was giving a analyzing the methods of AVAudioRecorder class, and not found any method in which to capture when the User stop to talking or recorder stops to receive external audio.
How can I capture when the audio recorder stops to receiving audio.
Process the audio stream as it is coming through. You can look at the frequency and volume of the stream. From there you can determine if the user has stopped talking.
I suggest frequency and volume as the recorder still picks up background audio. If the volume drops dramatically then the sounds the recorder is picking up must be further away from the device than before. The frequency can also lend itself to:
A.) Filter out the background audio in the audio used to replay the audio with a pitch change or any other changes. etc.
B.) I do not know the limits of frequency for the average human. But this covers the use case where the user has stopped talking, but have moved the device in such a way that the recorder still picks up load shuffling from moving fingers near the mic.

Resources