An iOS and macOS audio visualization framework built upon Core Audio useful for anyone doing real-time, low-latency audio processing and visualizations.
Other
4.94k
stars
821
forks
source link
EZOutput not working with a sample rate of 8000.0 Hz (iPhone 6s and iPhone 6s Plus) #328
I'm having some issues with EZOutput with a sample rate of 8000.0 Hz.
In my app I'm using OpenCore AMR to transfer audio, which only supports 8000 sample rate. It's a legacy app and unfortunately I can not change the codec.
EZAudio works as expected but on the iPhone 6s and on the iPhone 6s Plus it looks like the speaker does not support 8000.
This is the input AudioStreamBasicDescription the app is using:
Hi,
I'm having some issues with EZOutput with a sample rate of 8000.0 Hz.
In my app I'm using OpenCore AMR to transfer audio, which only supports 8000 sample rate. It's a legacy app and unfortunately I can not change the codec.
EZAudio works as expected but on the iPhone 6s and on the iPhone 6s Plus it looks like the speaker does not support 8000.
This is the input AudioStreamBasicDescription the app is using:
To work around this issue, I tried to configure EZOutput with that AudioStreamBasicDescription as inputFormat:
And try to convert from the 8000Hz input format to something the speaker should support:
But I get this error:
Maybe clientFormat doesn't work that way?
I have also tried to convert the frame rate manually using AudioConverterFillComplexBuffer:
But that workaround again does not work.
Any idea about how to fix this iPhone 6s issue? Thank you very much in advance