Tag Archives: audio

(Python) Get ID3 from MP3 File

// Python – Get id3 from MP3 File

Posted in Python | Also tagged , , , , , , , , , | Leave a comment

(Objective C) Play a sound file

// Play sound //To load sound file. +(void) playSound:(NSString *)fileName { NSString *path = [NSString stringWithFormat:@"%@/%@",[[NSBundle mainBundle] resourcePath],fileName];</code> <code>//declare a system sound id SystemSoundID soundID; //Get a URL for the sound file NSURL *filePath = [NSURL fileURLWithPath:path isDirectory:NO]; //Use audio sevices to create the sound AudioServicesCreateSystemSoundID((CFURLRef)filePath, &soundID); </code> <code> //Use audio services to play the [...]

Posted in Objective-C | Also tagged , , , , , , , | Leave a comment

(Bash) Audio conversion 3gpp to mp3 with ffmpeg

$FFMPEG_HOME/bin/ffmpeg -i rec_1452.3gpp -acodec libmp3lame -ar 22050 audio_only_test.mp3 –stdout   ffmpeg version N-30956-g81ef892, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 22 2011 17:37:00 with gcc 4.5.3 … libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘rec_1452.3gpp’: Metadata: major_brand : 3gp4 minor_version : 0 compatible_brands: isom3gp4 Duration: 00:01:27.44, start: 0.000000, [...]

Posted in Bash | Also tagged , , , , , , , , , , , | Leave a comment