decoder

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)

  • Author
    Posts
  • in reply to: AVCaptureSession audio combined with speech recognition #1024176
    decoder
    Participant

    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/DTS40011004

    in reply to: AVCaptureSession audio combined with speech recognition #1023671
    decoder
    Participant

    Hi 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.

    in reply to: [Resolved] Problems with Video/Audio capture #1022838
    decoder
    Participant

    True. 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?

    in reply to: [Resolved] Problems with Video/Audio capture #1022836
    decoder
    Participant

    With 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 AVCaptureSession

    in reply to: AVCaptureSession audio combined with speech recognition #1022613
    decoder
    Participant

    Looked 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…

    in reply to: AVCaptureSession audio combined with speech recognition #1022612
    decoder
    Participant

    Thanks 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.

    in reply to: AVCaptureSession audio combined with speech recognition #1022343
    decoder
    Participant

    @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.

Viewing 7 posts - 1 through 7 (of 7 total)