Flutter Comparing different audios with just-audio package - flutter

I am using just_audio, an amazing Flutter package that helps us working with .mp3 files.
The thing is... I need to compare 2 audios for creating a Tunner (Voice Tunner to be specific). I am using frequencies in the audios to compare.
FFT helps us to separate the frequencies from the audio.
In just_audio it has a feature, called FFT (beta). However, I couldn't figure it out how to use it. I was wondering if somebody have any tips to help me understanding it.
Thank you!

Related

tensorflow speaker recognition

Can someone please tell me if it is possible to make speaker recognition using tensorflow? I am extracting MFCC data from audio file using librosa and by that I want to recognize speaker. Any suggestions or links on how to implement that?
Check this repo -> https://github.com/pannous/tensorflow-speech-recognition
You can view the speaker_classifier_tflearn.py and get a feeling on how it works.

Is it possible to convert audio file with some music notes?

I have a music file with a particular tone(music.mp4). I want to convert existing sound file (speech.mp4) into the tone which is specified in music.mp4. Its like converting a speech into some particular tone. I do not want to play both files simultaneously. I want to convert source file with help of some music file. So, output file will be converted file.
Is it possible? I searched for Audio Unit Hosting and Multimedia guide. But do not get any clue.
Thanks in advance.
The answer is: it sounds (no pun intended) like it would be possible with the iOS. You just need to find someone who knows how to program that specific functionality. I do not know why you would think to find the answer in the Apple Docs. I want to know if it's possible to program music that plays backwards. I want to know if I can program a sound that converts my words into something my dog understands. I can't imagine the documentation could possibly cover everything everyone ever wants to program an iPhone to do.
There are no iOS public APIs for frequency analysis of audio files. You would have to write your own DSP code for that. The AVFoundation and Accelerate frameworks have some audio file conversion and math functions that may help, but that is only a small portion of the code needed.

iPhone Audio Modifications (filters/effects)

I am developing an app where the user can record their voice, and then alter it in some way. I have implemented OpenAL, and I am able to adjust the pitch to speed up and slow down the audio file. The thing is, I want to add filters like echo, reverb, etc.. I have scoured the internet for hours and have found nothing to help me. I came across a OpenAL called FreeSL, which has a bunch of filters built in, but I cannot get it compile in xcode.
I have also looked into Dirac3, but again all I am seeing is basic pitch/time controls; no echos or anything.
Can anyone point me in the direction a good framework or explain how OpenAL can handle filters like this?
Thanks!
I found a library that is exactly what I am looking for, FMOD:
http://www.fmod.org/index.php/fmod

Airplay sample Audio

In my app,i need to generate video with audio. Now i am using Air Play Sample But its contains only generate video only and i need to generate video with audio.Any one help me to solve with problem.
Regards,
First of all, you need to increase your accept rate.
Secondly, this is quite a lot what you are asking for. I'm not familiar with Air Play, but my suggestion would be to start with the SpeakHere project. That will get you familiarised with core-audio and give you a template for accessing the audio input.
As for the visual aspect I highly recommend O'Reilly's 3D Programming book which provides a lot of example code.
It will take a bit of time to assimilate both materials, but you'll end up with a better application.

Real-time Pitch Shifting on the iPhone

I have a children's iPhone application that I am writing and I need to be able to shift the pitch of a sound sample using Core Audio. Does anyone have any example code I could look at where this is done. There are many music and game apps in the app store that do this so I know I am not the first one. However, I cannot find any examples of it being done.
you can use dirac-2 from dsp dimension for pitch shifting on the iphone. quote: -
"DIRAC2 is available as both a commercial object library offering unlimited sample rates and phase locked multichannel support and as a free single channel, 44.1/48kHz LE version."
use the soundtouch open source project to change pitch
Here is the link : http://www.surina.net/soundtouch/
Once you add soundtouch to your project, you have to give the input sound file path, output sound file path and pitch change as the input.
Since it takes more time to process your sound its better to modify soundtouch so that when you record the voice, directly give the data for processing. It will make your application better.
I know it's too late for the person who asked but it is really a valuable link (As I found) for any one else who is looking for the solution of the same problem.
So Here we have latest DIRAC3 with it's own audio player classes which will take care of run time pitch and speed(explore for god knows what more) shifting. Run the sample and have huge round of applause for that.
Try Dirac - it's the best technology out there and it's available on Win, Linux, MacOS X and iOS. We're using it in all our products (and a couple of others do as well, search for "Capo" on the App Store). They're at version 3 now which has seen a huge increase in performance since previous versions. Hope this helps.
See: Related question
How much control over pitch do you need... could you precalculate all the different sounds?
If the answer is yes, then you can just pick the right sounds and play them.
You could also use Audio Converter Services in conjunction with AVAudioPlayer, which will allow you to resample the audio (which will effectively repitch them, though they'll change duration).
Alternatively, as the related question points out, you could use OpenAL and AL_PITCH