Speech to text sdk freezes after video playback

蹲街弑〆低调 提交于 2019-11-30 20:37:54

问题


I'm using speech-to-text sdk provided by https://github.com/todoroo/iPhone-Speech-To-Text

Recognizer works just fine until the moment I playback a video using MPMoviePlayerController. Here is the code i'm using to call recognizer:

- (IBAction)actionBtRecognition:(id)sender {
    if(recognizer == nil){
       recognizer = [[SpeechToTextModule alloc] init];
    }
    [recognizer beginRecording];
}

To playback movie I used this tutorial

So, once I playback a movie and call recognizer, it's just freezes. When I debug sdk source code, I was found that my voice is not recording. Variable meterStateDB.mAveragePower is always = -120

Note that on my Mac iphone simulators all works perfect! But on real device (iphone 4, ios 5.1.1) happens the problem I described above. Maybe this is only my device problem?

I would be very grateful if someone will check the same thing on his own device.

来源:https://stackoverflow.com/questions/14087555/speech-to-text-sdk-freezes-after-video-playback

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!