I'm making a app that gives users a rich collection of natural sounds. However the tracks are in 48khz and I need to reduce them to 38khz so that the size of the app could go down.I'll be using AVFoundation to play the audio. Now I'm worrying that this will lead to reduction in sound quality. Is there any way in Xcode to improve audio quality during playback.
Asked
Active
Viewed 272 times
1
-
Refer and try https://developer.apple.com/library/prerelease/ios/documentation/AVFoundation/Reference/AVFoundationAudioSettings_Constants/index.html . – iOSNoob Feb 12 '15 at 05:32
-
Thank you. I'll certainly look into it. – Prithiv Dev Feb 12 '15 at 05:48
-
What format is your original source material in? Sample rate conversions tend not to improve audio quality. – marko Feb 12 '15 at 10:57
-
The original format is .wav – Prithiv Dev Feb 12 '15 at 10:59
1 Answers
1
If you use a compressed format you are looking at a 10 times file size reduction from using WAV which is not compressed ... this way you could keep your sample rate of 48 kHz ... if you must use WAV then also look at reducing bit depth ... two fundamental factors determine audio quality : sample rate & bit depth ... CD quality audio uses 44.1 kHz sample rate with a bit depth of 16 bits
On iOS look at compression using AAC ... for a more broadly accepted non patent encumbered compression check out FLAC
Three nice command line tools to perform all manor of audio format conversion : avconv, ffmpeg and sox

Scott Stensland
- 26,870
- 12
- 93
- 104
-
Thank you for answering,but the real issue with me hear is that is there any I can let Xcode know to take advantage of this HQ tracks and provide better playback?Once again thanks. – Prithiv Dev Feb 12 '15 at 17:50