Can anyone tell me how can i get frequency from a song file through android. I can get only bitrate and song format, but not frequency.

CompatMetadata data = new CompatMetadata(path);
        format=decodeMimeType(data.extractMetadata(MediaMetadataRetriever.METADATA_KEY_MIMETYPE));
        bitrate = Integer.parseInt(data.extractMetadata(MediaMetadataRetriever.METADATA_KEY_BITRATE))/1000;

Related posts

Recent Viewed