kelvin

Forum Replies Created

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

  • Author
    Posts
  • in reply to: Delay pocketsphinxDidDetectSpeech #15084
    kelvin
    Participant

    I’ve added #import to my view controller.

    And when i input this
    [AudioSessionManager sharedAudioSessionManager].soundMixing = TRUE;

    the error shows
    Property ‘soundMixing’ not found on object of type ‘id’

    so i did this instead
    [[AudioSessionManager sharedAudioSessionManager]setSoundMixing:YES];

    and added this for vibration
    AudioServicesPlayAlertSound(kSystemSoundID_Vibrate);
    to – (void) fliteDidFinishSpeaking

    but it didn’t vibrate on the device.

    in reply to: Delay pocketsphinxDidDetectSpeech #15082
    kelvin
    Participant

    Ok got it. Thanks alot for ur help.

    Another question is that we can’t vibrate the phone during the sound playback right? I’ve have read some of ur previous post regarding this topic and you mention [AudioSessionManager sharedAudioSessionManager].soundMixing = TRUE; Where do i add this code? Do i need to modify the framework? Any other addition steps?

    in reply to: Delay pocketsphinxDidDetectSpeech #15080
    kelvin
    Participant

    I guess my problem would be after flite has finished speaking, i suspended recognition and wait for 5 sec before audio is played but during that time audioPlayerDidFinishPlaying would have been flagged with a “YES” and resumed recognition. So i guess i would have to find a way to stop recognition for 5 sec.

    in reply to: Delay pocketsphinxDidDetectSpeech #15079
    kelvin
    Participant

    I have tried suspending the recognition after flite finished speaking and after a delay of 5 seconds before playing a sound file but it seems that pocketsphinx did detect the sound file which is not what i wanted. Following are my functions for your reference.

    – (void) fliteDidFinishSpeaking {
    [self.pocketsphinxController suspendRecognition];
    [self performSelector:@selector(playAudioAlert:) withObject:nil afterDelay:5.0f];
    }

    -(void) playAudioAlert{
    self.player = [[AVAudioPlayer alloc] initWithContentsOfURL:
    [NSURL fileURLWithPath:[[NSBundle mainBundle]
    pathForResource:@”Audio1″ ofType:@”wav”]] error:nil];

    player.delegate = self;
    [self.player play];
    }

    -(void) audioPlayerDidFinishPlaying:(AVAudioPlayer *)player successfully:(BOOL)flag{
    if(flag == YES){
    [self.pocketsphinxController resumeRecognition];
    }
    }

    in reply to: Start & Stop Listening #11487
    kelvin
    Participant

    Noted…

    in reply to: Start & Stop Listening #11485
    kelvin
    Participant

    It’s only appearing in the simulator. Device works well.

    in reply to: Start & Stop Listening #11483
    kelvin
    Participant

    It’s the unchanged downloaded straight from the web.

    in reply to: Changing voice level of flitecontroller #11456
    kelvin
    Participant

    Thanks for the advice. Got it to work in the IBAction with [self.fliteController.audioPlayer setVolume:volumeSlider.value];

    in reply to: Return hypothesis #11352
    kelvin
    Participant

    ok… thanks for the update

    in reply to: Scores used in Openears #10903
    kelvin
    Participant

    Ok. Thanks for all the advice that you have provided.

    in reply to: Scores used in Openears #10900
    kelvin
    Participant

    Thanks for the prompt reply. Any idea how the recognitionScore are being generated as in the formulae in it?

    No problem returning n-best.

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