Skip to main content
April 27, 2011
Question

AIR 2.6 for iOS Speex playback problem

  • April 27, 2011
  • 4 replies
  • 2889 views

Hello,

I've found out that Speex playback doesn't work on iOS devices, while capturing audio in Speex from Microphone works well. Can you please fix that?

This topic has been closed for replies.

4 replies

May 4, 2011

Can we expect this will be fixed and we'll be able to play realtime audio with Speex and BufferTime = 0 ?

Participating Frequently
May 4, 2011

Hi,

We are aware of this bug and are tracking it through an internal defect. We will try to address this at the earliest possible.

Thanks,

Sanika

chris.campbell
Legend
May 4, 2011

For reference, our internal bug number for this issue is #2868777.  Please feel free to post for status updates or you can email me at ccampbel@adobe.com

Thanks,

Chris

Edited with correct bug number and email address

Participating Frequently
May 2, 2011

what settings to use speex on iOS suggests adobe?

Nimisha1
Participating Frequently
April 28, 2011

Hi

Can you please add following line in your code :

ns2.bufferTime = 2;

// The buffertime must be greater than 0 for the netstream which is playing the audio data

[ this fixes audio coming in if  SPEEX sound codec has been used, but causes bufferTime to default to 10secs.]

-Thanks

Nimisha

Runtime Mobile[iOS]

April 28, 2011

Hi,

It doesn't help. I tried to set ns2.bufferTime = 2; but still no sound on iPad, and I don't think that setting bufferTime has to affect this, because I want to have real time communication and bufferTime = 0 has to work as well.

BR,

Alexey

Participating Frequently
April 28, 2011

We have same problem with iPhone4.

Changing bufferTime = 2 or bufferTime = 0,5 it works but latency is very hight (more than 2 sec).

With Speex codec there are a lot of problems (quality, latency etc) whereas with Nellymoser all works fine. Someone knows why?

chris.campbell
Legend
April 27, 2011

Hi,

Thanks for reporting this issue.  When building your app, what target do you use?  Could you try ipa-app-store and see if that makes a difference?

iOS Packages

If you still encounter problems, would you mind attaching code that would demonstrate the issue so we can try it out internally?

Thanks,

Chris

April 28, 2011

Hello Chris,

I use ipa-test target to upload it on device via iTunes, I will try ipa-app-store, but not sure if it's possible to upload app in that case using iTunes and ipa file..

About the code, you can try it easily:

nc = new NetConnection();

nc.connect("SOME_FMS_WITH_LIVE_APP");

in NetStatusEvent handler something like:

var mic:Microphone = Microphone.getMicrophone();

mic.codec = SoundCodec.SPEEX;

ns1 = new NetStream(nc);

ns1.publish("stream");

ns1.attachAudio(mic);

ns2 =  new NetStream(nc);

ns2.play("stream");

If I play "stream" on PC it plays sound, if I play it on iOS it doesn't.