Add a word to a .mp3 file - objective-c

In my Mac app I need to take a .mp3 file and add a spoken word to it programmatically. The word is custom and is entered by the user.
How can I do it? Which frameworks should I use and are there any custom libraries to do it?
Any help is really appreciated.

Apple has libraries for editing video (and I assume, audio) in iOS 4. You should look into AV Media Framework.

Related

implementing xmp data or dng data on other images in mobile app

I'm trying to build a mobile app (react-native or native languages) that will be able to take xmp file (in other words is presets of photos) and implement its data on other photo, or implementing dng settings on another photo.
What I'm trying to understand if that is even possible, to use Lightroom presets outside of Lightroom App.
Did someone here succeed to implement his\her own Lightroom preset without using Lightroom on mobile?
I dont think so cuz every app has different sets of editing skills, the best I think you could do is to create an app from where a user will click on DNG and it will open in Lightroom.

How to add NSPhotoLibraryUsageDescription, NSCameraUsageDescription, and NSMicrophoneUsageDescription to info.plist for react-native-image-picker

I'm new to xcode and react-native. I'm trying to use react-native-image-picker to add a user profile (uploaded to s3). react-native-image-picker's getting started assumes you have knowledge of info.plist. I'm not 100% sure how to proceed given:
For iOS 10+, Add the NSPhotoLibraryUsageDescription,
NSCameraUsageDescription, and NSMicrophoneUsageDescription (if
allowing video) keys to your Info.plist with strings describing why
your app needs these permissions
I know the info.plists are found in the ios folder, but
which info.plist do these permissions need to get added to (there's multiple inside ios folder: build, RNapp, RNapp-tvOS, RNapp.xcodeproj, etc)?
how does the XML look?
Should this be happening in xcode instead of my text editor?
docs
if you don't providing the privacy key in Info.plist, then your app is crash. You can see its log why crashed.
You will find these code below in the info.plist of your xcode , open in text editor.
adding these will grant the permission for using camera, PhotoLibrary, Video
<key>NSCameraUsageDescription</key>
<string>${PRODUCT_NAME} Camera Usage</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>${PRODUCT_NAME} PhotoLibrary Usage</string>
<key>NSVideoSubscriberAccountUsageDescription</key>
<string>${PRODUCT_NAME} Video Subscribe Usage</string>
add ti info.plist
<key>NSPhotoLibraryUsageDescription</key>
<string>Photo Library Access Warning</string>
You want to edit the plist that you need the permissions for. If you are making a mobile app that would be: RNapp.
You could do this in a text editor but the easiest way to do it is in Xcode.
Open the plist, on the last item (making sure it is not expanded_ hit the + button to create a new row to provide a key to define a value for. Xcode should autocomplete on the keys you provided above and set the value to the appropriate type.
Hope this helps.

Using Audio Unit (Mixer Host) to play from iPod library instead of pre selected sound files.

For a university project i'm working on a DJ mixing app. I'm essentially tackling this project from a 'teach yourself from scratch by googling everything and analysing pre existing source code' type of way so go easy.
I have looked at the Mixer Host sample project from apple found here: http://developer.apple.com/library/ios/#samplecode/MixerHost/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010210
I can't work out how to replace the pre selected audio files (guitar + beat) with a song URL from the iPod library selected from a media picker, or, in this case - 2 media pickers.
Is it a case of grabbing the URL of the iPod library song selected and putting in place of the URL of the preselected audio file?
If someone could point me in the right direction, tell me how i'm completely going about this the wrong way, or even do the coding for me (joke), it would be greatly appreciated.
You can't actually simply stream from the ipod library; you need to copy the files into the documents directory of the app.
try this: http://www.subfurther.com/blog/2010/12/13/from-ipod-library-to-pcm-samples-in-far-fewer-steps-than-were-previously-necessary/
You can use third party libraries to play a iPod library songs using AudioUnit. The below link is useful to you
Clickhere!

iOS selecting pictures from photo library programmatically

I've got a question. Is there possiblity to select from code a given set of pictures from iOS device photos library? I don't want to use UIImagePickerController because I want to decide for user which pictures I want to refer to in my application.
Didn't find anything viable because all questions are about or related to UIImagePickerController.
Hints for you
You can use The Assets Library Framework. Read the documentation: http://developer.apple.com/library/ios/#documentation/AssetsLibrary/Reference/AssetsLibraryFramework/_index.html
Or you can use some of the code from: http://www.fiveminutes.eu/accessing-photo-library-using-assets-library-framework-on-iphone/

Any possibility to add subtitl in AxWindowsMediaPlayer control?

I am using axWindowsMediaPlayer control in my windows mobile application with using .net CF 2.0,
I want to play the video with subtitle.(SRT file type)
Any one know how to add the SRT file in AxWindowMediaPlaye ,It is possible ?
Pl. give me some suggestions
Thank you in advance.
Yes, write or find a DirectShow filter that displays the subtitle. You can also write your own player.
For ASF playback (e.g. wmv, wma) on PC you need to add a script stream to the file. Not sure if the mobile version of WMP supports captioning.
As I know the Windows Media Player doesn't suuport the SubRip SRT-Files, but the smi (SAMI-Files, closed captions). I use the smi-file to show the multi-language subtitles. You can covert very easy your srt to the smi, or create your own smi subtitles, using a free "Subtitle Workshop" tool.
You can also add another language to the smi, here is some samples: Captioning for Windows Media.
You can also change the language of the subtitles using the closedCaption properties, like
AxWindowsMediaPlayer.closedCaption.SAMILang = "German";
or set the smi-file direclty
AxWindowsMediaPlayer.closedCaption.SAMIFileName = "subtitles.smi";