iPhone:Recording audio with custom volume indicator - iphone

I am developing an app in which I need to record the audio.
Now while recording the audio I need to show the custom volume indicator like, speedometer which will show the volume level of the recoding audio.
So please help me if any one has an idea about how to do that.
Thanks.

You can check this audio meter.. is not analog.. but.. http://developer.apple.com/library/ios/#samplecode/SpeakHere/Introduction/Intro.html
if you want analog.. you must combine Apple exemple with this analog speedometer .
~same answer here objective c audio meter.. or... AVAudioRecorder meter delay on iPad

Related

How can I access the microphone data while running dictation recognizer at the same time in Unity?

Hi I am using the DictationRecognizer Class to add speech input capabilities in my project. I followed this https://learn.microsoft.com/en-us/windows/mixed-reality/voice-input-in-unity to implement the Dictation Recognizer and it works.
However, in my app, i want to include an animation based on the volume of the live microphone data. Whenever the microphone starts getting speech data, I want to run a small animation inside unity to indicate that the microphone is recording. Is it doable while the dictation recognizer is running? Any help is appreciated!
Well yes you can record like 1 second each time without using the DictationRecognizer. You can store the recording inside a audio clip and use the samples to calculate the average volume.
check this for recording audio from the microphone.
https://docs.unity3d.com/ScriptReference/Microphone.Start.html
Once you have the recorded clip you can use this to get average volume:
http://answers.unity.com/answers/1178679/view.html

iOS Audio visualisation using AVPlayer

I am trying to do an audio visualisation for a stream. The audio has to play in the background and currently I am playing it with an AVPlayer but I cannot get the metering from it. How can I get the metering and make the visualisation? Any suggestions?
Here you have an example with waveforms: A cocoa audio player component which displays the waveform of the audio file
Here you have a LED bar gauge and another example how can be used: ATTabandHoldAudioRecord
Apple, also have SpeakHere example - the code includes a LevelView .. but this Apple sample code is anything but simple to implement ...

iOS Capturing Video

I want to make an app for the iPhone with the ability to record video. One thing I want to do with the video once it's recorded, is to take the audio from it and alter it, such as make it sound feminine or masculine etc. I've never done this before but is it better to use AVFoundation or UIImagePickerController. I've read that the UIImagePickerController is easier to use but will it allow be to extract and edit the audio of the recorded video and put it back in?
Any help or suggestions as to how to approach this are appreciated.
Thanks
It is easiest to capture with UIImagePickerController if you do not need to alter it live. Once the video is captured and you have altered the audio track somehow, write it again using AVFoundation's AVMutableComposition and an audio mix.

Loudness on Iphone

The scenario is that I start the recording at in my iphone app maybe by using AVAudioRecoder and when i have some input sound above certain threshold then i will do some thing. Is it possible to process the input audio while recoding??
Is there any way to know the input loudness in iPhone. Like what is the level of the loudness in numbers or if there is any other measure for that.
Look at AVFoundation, AVAudioRecorder and enable the property meteringEnabled to get threshold change callbacks.

iPhone AVAudioRecorder, AudioQueueServices, how to auto record audio when sound is detected

i'm using AVAudioRecorder and AudioQueueServices to record audio from the iphone's mic but I want to auto record the sound once it is detected so theres no need to press on a record button
I've looked at a tutorial about the AVFoundation:
www.iphoneam.com/blog/index.php?title=using-the-iphone-to-record-audio-a-guide&more=1&c=1&tb=1&pb=1
and also a tutorial that explains how the iphone mic can detect sound levels, i've tried adding the two tutorials together but i cant get the code to work at all
Can't figure out what to do and i'm not sure if i'm taking the wrong approach
Any advice?
Thanks
Check out this tutorial: http://mobileorchard.com/tutorial-detecting-when-a-user-blows-into-the-mic/
I got something similar working using the above tutorial. I have one AVAudioRecorder monitoring the mic's volume and another that records the mic's input when a certain threshold is reached.