wit-ai / wit-ios

Wit.ai iOS client
Other
222 stars 71 forks source link

WITRecorder fails to start after the app comes back into the foreground. #47

Closed tqlmobile closed 5 years ago

tqlmobile commented 9 years ago

I have been able to reproduce this in my own app and the wit-iso-eval application.

If the app is opened after being in the background, the first time that Wit.sharedInstance().start() is called, the recorder fails to start when calling "AudioQueueStart" (line 98 WITRecorder.m). There is no indication that it failed other than in the logs and the WITMicButton shows that it is not recording audio.

Visually, you can see the red recording bar flash on the screen and go away.