{"action":"created","issue":{"url":"https://api.github.com/repos/aubio/aubio/issues/219","repository_url":"https://api.github.com/repos/aubio/aubio","labels_url":"https://api.github.com/repos/aubio/aubio/issues/219/labels{/name}","comments_url":"https://api.github.com/repos/aubio/aubio/issues/219/comments","events_url":"https://api.github.com/repos/aubio/aubio/issues/219/events","html_url":"https://github.com/aubio/aubio/issues/219","id":389449835,"node_id":"MDU6SXNzdWUzODk0NDk4MzU=","number":219,"title":"Compute MFCC from audio file for iOS apps","user":{"login":"Bee-HN","id":25906691,"node_id":"MDQ6VXNlcjI1OTA2Njkx","avatar_url":"https://avatars2.githubusercontent.com/u/25906691?v=4","gravatar_id":"","url":"https://api.github.com/users/Bee-HN","html_url":"https://github.com/Bee-HN","followers_url":"https://api.github.com/users/Bee-HN/followers","following_url":"https://api.github.com/users/Bee-HN/following{/other_user}","gists_url":"https://api.github.com/users/Bee-HN/gists{/gist_id}","starred_url":"https://api.github.com/users/Bee-HN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bee-HN/subscriptions","organizations_url":"https://api.github.com/users/Bee-HN/orgs","repos_url":"https://api.github.com/users/Bee-HN/repos","events_url":"https://api.github.com/users/Bee-HN/events{/privacy}","received_events_url":"https://api.github.com/users/Bee-HN/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-10T19:24:35Z","updated_at":"2018-12-13T16:02:24Z","closed_at":"2018-12-11T14:59:12Z","author_association":"NONE","body":"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;\r\nbelow is my code in Objective-C:\r\n\r\n unsigned int hop_size = 512;\r\n        fvec_t *f_vector = new_fvec(hop_size);\r\n        aubio_source_t *new_source = new_aubio_source(audio_file_path, 0, hop_size);\r\n//        smpl_t samplerate = aubio_source_get_samplerate(new_source);\r\n        unsigned int read = 0;\r\n        unsigned int total_frames = 0;\r\n        int count = 0;\r\n        while (true)\r\n        {\r\n            aubio_source_do(new_source, f_vector, &read);\r\n            total_frames += read;\r\n            count += 1;\r\n            if (read < hop_size)\r\n            {\r\n                break;\r\n            }\r\n        }\r\n        NSLog (@\"Read: %u frames at: %u Hz\", total_frames, aubio_source_get_samplerate(new_source));\r\n        NSLog (@\"Data Vector:\");\r\n        fvec_print(f_vector);\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/aubio/aubio/issues/comments/447022203","html_url":"https://github.com/aubio/aubio/issues/219#issuecomment-447022203","issue_url":"https://api.github.com/repos/aubio/aubio/issues/219","id":447022203,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzAyMjIwMw==","user":{"login":"Bee-HN","id":25906691,"node_id":"MDQ6VXNlcjI1OTA2Njkx","avatar_url":"https://avatars2.githubusercontent.com/u/25906691?v=4","gravatar_id":"","url":"https://api.github.com/users/Bee-HN","html_url":"https://github.com/Bee-HN","followers_url":"https://api.github.com/users/Bee-HN/followers","following_url":"https://api.github.com/users/Bee-HN/following{/other_user}","gists_url":"https://api.github.com/users/Bee-HN/gists{/gist_id}","starred_url":"https://api.github.com/users/Bee-HN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bee-HN/subscriptions","organizations_url":"https://api.github.com/users/Bee-HN/orgs","repos_url":"https://api.github.com/users/Bee-HN/repos","events_url":"https://api.github.com/users/Bee-HN/events{/privacy}","received_events_url":"https://api.github.com/users/Bee-HN/received_events","type":"User","site_admin":false},"created_at":"2018-12-13T16:02:24Z","updated_at":"2018-12-13T16:02:24Z","author_association":"NONE","body":"Hi piem, \r\nThis is my code to get the file path of the audio file \r\n\r\n    NSString *file_path_string = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) firstObject] stringByAppendingPathComponent:@\"name_of_audio_file.m4a\"];\r\n\r\n    const char *audio_file_path = [file_path_string UTF8String];"}}
{"actor":{"display_login":"Bee-HN"}}