Search code examples
iosiphoneaudio-recordingsample-rate

iPhone 6S audio issue while streaming


I developed an iOS application with live video streaming. I fixed the audio sample rate to 8k. Audio works fine up to iPhone6 devices, but when i stream video in 6s and 6s plus audio part is not working. How can i fixed this issue? I tried in different blogs and found that in iPhone 6s sample rate is locked in 48k. How can i manually down sample? Because the library that i used for live streaming works only in 8k. Please help me on these


Solution

  • You can do your own sample rate conversion by low-pass filtering the data to a frequency below 4 kHz, and then taking every 6th sample (to convert 48 ksps samples to 8 ksps samples).