Forum Replies Created
-
AuthorPosts
-
January 10, 2015 at 5:22 pm in reply to: AVCaptureSession audio combined with speech recognition #1024176decoderParticipant
Got some time to upgrade to 2.0, removed the hacks and tested the app in the field. The good news is that the video capture session doesn’t crash anymore on iOS8. So I can record fine the video but now the old problem is back. In the 95% of the cases the audio recording doesn’t start, so the video gets recorded w/o audio. Maybe I should put back the hack and try again on iOS8 and see if is better?
Regarding the example that could reproduce…
You just need to add OpenEars/Pocketsphinx end enable voice commands before starting/stopping video recording on this example from Apple:
https://developer.apple.com/library/mac/samplecode/AVRecorder/Introduction/Intro.html#//apple_ref/doc/uid/DTS40011004December 23, 2014 at 2:13 pm in reply to: AVCaptureSession audio combined with speech recognition #1023671decoderParticipantHi Halle, Thanks for the new release!
I will upgrade to 2.0 these days and I’ll come back with some feedback about this issue.decoderParticipantTrue. The only workaround I see is to turn off the audio recording in the session.
@Halle: Is there at least a very rough estimation of the 2.0 release?
decoderParticipantWith OS7.1 I’ve got it working (check my previous thread).
With OS8.0 didn’t work anymore, but I was able to start it by turning off the audio on the AVCaptureSessionSeptember 24, 2014 at 12:22 am in reply to: AVCaptureSession audio combined with speech recognition #1022613decoderParticipantLooked into the debug info and found that after I get this debug message: “Stopping audio unit” the AVCapture doesn’t work stable.
Apparently, if I speak when stooping/restarting video recording, erratically, “Stopping audio unit” appears and the problems occurs.
If I turn off the OpenEars completely everything woks fine with the recording so it is definitively a conflict.
Forgot the say… On iOS8 if I apply the “patch” the video session is even more unstable.
Do you know what really means “Stopping audio unit.” and what could be the reason of this?
Here’s excerpt of the debug log:
2014-09-24 00:07:25.365 Streetcorder[4816:624437] Stopping audio unit.
2014-09-24 00:07:25.365 Streetcorder[4816:624371] Pocketsphinx has detected a period of silence, concluding an utterance.
2014-09-24 00:07:25.408 Streetcorder[4816:624437] Audio Output Unit stopped, cleaning up variable states.
2014-09-24 00:07:25.409 Streetcorder[4816:624437] Processing speech, please wait…September 24, 2014 at 12:05 am in reply to: AVCaptureSession audio combined with speech recognition #1022612decoderParticipantThanks for your feedback. Tested the same code with iOS 8 and got another issue when switching video recording to another file. Apparently, this time the video recording can’t start anymore (or the delegate doesn’t fire correctly).
Generally OpenEars collides somehow with the AVCaptureSession (or other way around).
When I’ll get some time I will try to add Voice Commands to the AVCam sample from Apple (https://developer.apple.com/library/ios/samplecode/AVCam/Introduction/Intro.html) and hopefully I will be able to reproduces these conflicts.
August 22, 2014 at 7:44 pm in reply to: AVCaptureSession audio combined with speech recognition #1022343decoderParticipant@Halle: Thanks for the feedback. Didn’t found anything that could fix the issue on the fly but while experimenting different values I got it working by doing:
self.pocketsphinxController.audioMode = @”VideoRecording”;
self.pocketsphinxController.audioSessionMixing = YES;
self.pocketsphinxController.outputAudio = NO;before doing startListeningWithLanguageModelAtPath
Now it still happens very seldom, so I restart the session automatically from the pocketSphinxContinuousSetupDidFail function.
-
AuthorPosts