Compare two audio files for rhythm / tempo and rating in iphone

I want to develop an application for the iPhone, which should be able to count the number of phrases that will be received when the user sings on the microphone.

This application should also be able to decrypt whether user phrases are in cadence with a predefined bit or outside it. When a user sings on a microphone, only a musical instrument is played.

Thus, I have to combine users with recorded voice with instrumental music - this is one audio file. I already have the original song file. I need to compare both and give a rating to users.

Note ... Instrumental music without vocals of the original song file.

Can anybody help me? Thanks, Vadivel

+3
source share
2 answers

First you need a solution for segmenting sound and detecting the beginning. There are several different ways to do this, some of which have already been discussed in stack overflows. Aubio is one library that can help you with this.

The second part, combining the two sound files, should be a simple summing operation between the sound sample buffers of the incoming microphone and the sample buffers of the original sound source.

+1
source

Let me try to understand which application you are building.

  • I have an iPhone and I play Lady Gaga: P.
  • It plays the original song (instrumental instruments + vocals).
  • , , .
  • , ( ).
  • . , .

, 4. , - , .

(, ). , , , , , , , .

, - , ( - ).

.

, 2:00 "", 1:55 2:00 5 , . - . , , "" .

!

0

Source: https://habr.com/ru/post/1781697/


All Articles