You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I am new to iOS development and Aubio. Can someone show me how to compute the mfcc from audio input file? So far, I manage to load audio file following the example from aubio's documentation;
below is my code in Objective-C:
The file tests/src/spectral/test-mfcc.c was just updated to a more complete example, see 423a427 (the branch will be merged in master once the tests have passed).
Could you share the line where audio_file_path is declared? @socalledsound mentioned having troubles with this in #179.
Hello, I am new to iOS development and Aubio. Can someone show me how to compute the mfcc from audio input file? So far, I manage to load audio file following the example from aubio's documentation;
below is my code in Objective-C:
unsigned int hop_size = 512;
fvec_t *f_vector = new_fvec(hop_size);
aubio_source_t *new_source = new_aubio_source(audio_file_path, 0, hop_size);
// smpl_t samplerate = aubio_source_get_samplerate(new_source);
unsigned int read = 0;
unsigned int total_frames = 0;
int count = 0;
while (true)
{
aubio_source_do(new_source, f_vector, &read);
total_frames += read;
count += 1;
if (read < hop_size)
{
break;
}
}
NSLog (@"Read: %u frames at: %u Hz", total_frames, aubio_source_get_samplerate(new_source));
NSLog (@"Data Vector:");
fvec_print(f_vector);
Thank you
The text was updated successfully, but these errors were encountered: