Double commands in hypothesis

Home Forums OpenEars plugins Double commands in hypothesis

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

  • Author
    Posts
  • #13828
    cricketgeek
    Participant

    Using the code from the tutorial and OpenEars demo app everything is working great except I seem to get double commands inside of pocketsphinxDidReceiveHypothesis for the hypothesis sometimes even though I’m very carefully saying the command once. Actually, sometimes there are other words from my generated grammar and dictionary, like “RIGHT GO” or “LEFT GO STOP” when “GO” was spoken.

    Tried
    [self.pocketSphinxController setSecondsOfSilenceToDetect:0.6];
    and then also
    [self.pocketSphinxController setNBestNumber:1];
    [self.pocketSphinxController setReturnNbest:YES];

    other than cleaning the result up myself is there something I can tweak to get this only returning the best match and 1 result?

    #13829
    Halle Winkler
    Politepix

    Any chance you’re testing on the Simulator?

    #13830
    cricketgeek
    Participant

    No, testing through an iPad 3. And I noticed this time that after I get the extra words in hypothesis, if I try again it usually works and only returns the 1 word, “STOP” or “GO”. I am using the demo version which I just downloaded yesterday (probably obvious from my noob question here).

    #13831
    Halle Winkler
    Politepix

    OK, is it happening on the first hypothesis of the session or does it also happen afterwards?

    #13832
    Halle Winkler
    Politepix

    Oh, another question — you posted this in the OpenEars plugins section, but from the info in the question I’ve been assuming that the question is actually about OpenEars without a plugin. Is this incorrect and the question is about one of the OpenEars plugins, or is it just about OpenEars itself?

    #13833
    cricketgeek
    Participant

    Ok, yes I thought I was using Rejecto but I was not yet using anything in that area.
    So I think this is just OpenEars.
    This happens after the first hypothesis. Once I got “STOP” “LEFT” “STOP” “GO” “STOP” from just saying “STOP” once

    Anything wrong with the way the grammar and dictionary are setup?
    NSArray *words = @[@”LEFT”,@”RIGHT”,@”GO”,@”STOP”,@”FINISH”,@”KILL”];
    NSString *name = @”commandLanguageModelFile.languagemodel”;
    NSError *error = [lmGenerator generateLanguageModelFromArray:words withFilesNamed:name];

    NSDictionary *languageGeneratorResults = nil;

    if ([error code] == noErr)
    {
    languageGeneratorResults = [error userInfo];
    self.pathToDynamicallyGeneratedGrammar = [languageGeneratorResults objectForKey:@”LMPath”];
    self.pathToDynamicallyGeneratedDictionary = [languageGeneratorResults objectForKey:@”DictionaryPath”];

    [self startListening];
    }
    else
    {
    NSLog(@”Error: %@”,[error localizedDescription]);
    }

    #13834
    Halle Winkler
    Politepix

    OK, that sounds a bit buggy. It’s possibly an iPad 3 issue with the cmninit value that we could probably fix right now. Your code looks reasonable to me.

    Can I ask you to turn on verbosePocketsphinx and verboseLanguageModelGenerator and OpenEarsLogging and then print the log here? I’d like to see a log for 5 recognition rounds and it would be great if you would separately tell me what you really said.

    #13835
    Halle Winkler
    Politepix

    Also let me know which mic you are using when you’re getting these results and how far you are from the device, thanks.

    #13838
    cricketgeek
    Participant

    Ok, will do this evening or tomorrow morning. I am using the built-in mic at the top of the iPad. Also one thing I found by going through the official demo code was that after making the call below it worked perfectly. So I plugged that into my demo code just to see and it also worked perfectly every time.

    [self.pocketSphinxController changeLanguageModelToFile:self.pathToDynamicallyGeneratedGrammar withDictionary:self.pathToDynamicallyGeneratedDictionary];

    #13839
    Halle Winkler
    Politepix

    That’s funny, thanks for letting me know. It’s a big hint about what the underlying issue might be and I’m glad you have a workaround for now. When you get the time to send me the full log output I will see if I can track down the issue.

    #14931
    cricketgeek
    Participant

    Now I’m using this codebase on iPhone 5 and getting groups of words when I say one word and pause. Such as LEFT ends up being a hypothesis of LEFT GO and RIGHT turns into RIGHT GO RIGHT

    Here’s the verbose logging output:

    2012-12-17 10:40:57.960 sharkBomber[44811:907] Starting OpenEars logging for OpenEars version 1.2.3 on device: iPhone running iOS version: 6.000000
    2012-12-17 10:40:57.963 sharkBomber[44811:907] A sample rate was requested that isn’t one of the two supported values of 16000 or 8000 so we will use the default of 16000.
    2012-12-17 10:40:57.965 sharkBomber[44811:907] The audio session has already been initialized but we will override its properties.
    2012-12-17 10:40:57.970 sharkBomber[44811:907] Checking and resetting all audio session settings.
    2012-12-17 10:40:57.973 sharkBomber[44811:907] audioCategory is incorrect, we will change it.
    2012-12-17 10:40:59.888 sharkBomber[44811:907] audioCategory is now on the correct setting of kAudioSessionCategory_PlayAndRecord.
    2012-12-17 10:40:59.893 sharkBomber[44811:907] bluetoothInput is incorrect, we will change it.
    2012-12-17 10:40:59.950 sharkBomber[44811:907] bluetooth input is now on the correct setting of 1.
    2012-12-17 10:41:00.008 sharkBomber[44811:907] categoryDefaultToSpeaker is incorrect, we will change it.
    2012-12-17 10:41:00.080 sharkBomber[44811:907] CategoryDefaultToSpeaker is now on the correct setting of 1.
    2012-12-17 10:41:00.084 sharkBomber[44811:907] preferredBufferSize is incorrect, we will change it.
    2012-12-17 10:41:00.092 sharkBomber[44811:907] PreferredBufferSize is now on the correct setting of 0.128000.
    2012-12-17 10:41:00.096 sharkBomber[44811:907] preferredSampleRateCheck is incorrect, we will change it.
    2012-12-17 10:41:00.352 sharkBomber[44811:907] preferred hardware sample rate is now on the correct setting of 16000.000000.
    2012-12-17 10:41:00.787 sharkBomber[44811:907] AudioSessionManager startAudioSession has reached the end of the initialization.
    2012-12-17 10:41:00.790 sharkBomber[44811:907] Exiting startAudioSession.
    2012-12-17 10:41:00.795 sharkBomber[44811:72e3] Recognition loop has started
    2012-12-17 10:41:00.825 sharkBomber[44811:907]
    setting up brick with accessory…

    2012-12-17 10:41:00.966 sharkBomber[44811:72e3] Starting openAudioDevice on the device.
    2012-12-17 10:41:00.967 sharkBomber[44811:72e3] Audio unit wrapper successfully created.
    2012-12-17 10:41:00.971 sharkBomber[44811:72e3] Set audio route to HeadsetInOut
    2012-12-17 10:41:00.972 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:41:00.973 sharkBomber[44811:907] void readSensor(ReadSensorCommand *) [Line 270] SensorCommand for brick:Bottle Rocket was type:2
    2012-12-17 10:41:00.975 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.
    2012-12-17 10:41:00.977 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    command
    2012-12-17 10:41:00.979 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    we have a completion block on lightSensor command
    2012-12-17 10:41:00.981 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:41:00.983 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:41:00.987 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:41:00.989 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:41:00.994 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:41:00.998 sharkBomber[44811:72e3] Calibration has started

    2012-12-17 10:41:01.734 sharkBomber[44811:907] Audio route has changed for the following reason:
    2012-12-17 10:41:01.735 sharkBomber[44811:907] There has been a change of category
    2012-12-17 10:41:01.737 sharkBomber[44811:907] The previous audio route was Headphone
    2012-12-17 10:41:01.738 sharkBomber[44811:907] This is not a case in which OpenEars performs a route change voluntarily. At the close of this function, the audio route is HeadsetInOut
    2012-12-17 10:41:03.221 sharkBomber[44811:72e3] Calibration has completed
    2012-12-17 10:41:03.224 sharkBomber[44811:72e3] Project has these words in its dictionary:
    BACK
    CONTACT
    GO
    LEFT
    LIGHTS
    RANGE
    RIGHT
    STOP
    2012-12-17 10:41:03.226 sharkBomber[44811:72e3] Listening.
    2012-12-17 10:41:03.227 sharkBomber[44811:72e3] there is a request to change to the language model file /var/mobile/Applications/909749F5-5889-458F-A656-C775C73BFA91/Documents/commandLanguageModelFile.languagemodel.DMP
    2012-12-17 10:41:03.229 sharkBomber[44811:72e3] A request has been made to change an ARPA grammar on the fly. The language model to change to is /var/mobile/Applications/909749F5-5889-458F-A656-C775C73BFA91/Documents/commandLanguageModelFile.languagemodel.DMP
    2012-12-17 10:41:03.231 sharkBomber[44811:72e3] In this session, the requested language model will be known to Pocketsphinx as id 1760422.
    2012-12-17 10:41:03.233 sharkBomber[44811:72e3] languageModelID is 1760422
    2012-12-17 10:41:03.268 sharkBomber[44811:72e3] Success loading the dictionary file /var/mobile/Applications/909749F5-5889-458F-A656-C775C73BFA91/Documents/commandLanguageModelFile.languagemodel.dic.
    2012-12-17 10:41:03.270 sharkBomber[44811:72e3] Changed language model. Project has these words in its dictionary:
    BACK
    CONTACT
    GO
    LEFT
    LIGHTS
    RANGE
    RIGHT
    STOP
    2012-12-17 10:41:09.633 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:41:11.192 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:41:11.192 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:41:11.445 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:41:11.448 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:41:11.461 sharkBomber[44811:72e3] Pocketsphinx heard “STOP” with a score of (0) and an utterance ID of 000000000.
    2012-12-17 10:41:11.462 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    [Line 98] The received hypothesis is STOP with a score of 0 and an ID of 000000000
    2012-12-17 10:41:11.465 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.
    2012-12-17 10:41:11.466 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:41:11.469 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    2012-12-17 10:41:11.470 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.

    2012-12-17 10:41:11.471 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:41:11.474 sharkBomber[44811:72e3] Setting the variables for the device and starting it.

    2012-12-17 10:41:11.476 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:41:11.480 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:41:11.483 sharkBomber[44811:72e3] Listening.

    2012-12-17 10:41:16.740 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:41:18.104 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:41:18.105 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:41:18.356 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:41:18.358 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:41:18.372 sharkBomber[44811:72e3] Pocketsphinx heard “LIGHTS” with a score of (-539) and an utterance ID of 000000001.
    2012-12-17 10:41:18.373 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:41:18.373 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is LIGHTS with a score of -539 and an ID of 000000001
    2012-12-17 10:41:18.376 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.
    2012-12-17 10:41:18.378 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:41:18.380 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    2012-12-17 10:41:18.382 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:41:18.385 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:41:18.388 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:41:18.389 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:41:18.392 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:41:18.399 sharkBomber[44811:72e3] Listening.

    2012-12-17 10:41:21.471 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:41:22.709 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:41:22.709 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:41:22.965 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:41:22.968 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:41:22.976 sharkBomber[44811:72e3] Pocketsphinx heard “GO” with a score of (-862) and an utterance ID of 000000002.
    2012-12-17 10:41:22.977 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    [Line 98] The received hypothesis is GO with a score of -862 and an ID of 000000002
    2012-12-17 10:41:22.979 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.

    2012-12-17 10:41:22.981 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:41:22.984 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.

    2012-12-17 10:41:22.985 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:41:22.987 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:41:22.990 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:41:22.991 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:41:22.994 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:41:22.995 sharkBomber[44811:72e3] Listening.

    2012-12-17 10:41:25.446 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:41:29.876 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:41:29.877 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:41:30.133 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:41:30.137 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:41:30.178 sharkBomber[44811:72e3] Pocketsphinx heard “STOP” with a score of (-899) and an utterance ID of 000000003.
    2012-12-17 10:41:30.180 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:41:30.180 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is STOP with a score of -899 and an ID of 000000003
    2012-12-17 10:41:30.183 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.
    012-12-17 10:41:30.186 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:41:30.188 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    2012-12-17 10:41:30.191 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:41:30.194 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:41:30.196 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:41:30.198 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:41:30.203 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:41:30.206 sharkBomber[44811:72e3] Listening.
    2012-12-17 10:41:39.911 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:41:41.143 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:41:41.143 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:41:41.397 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:41:41.399 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:41:41.412 sharkBomber[44811:72e3] Pocketsphinx heard “LEFT GO” with a score of (-14016) and an utterance ID of 000000004.
    2012-12-17 10:41:41.414 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:41:41.414 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is LEFT GO with a score of -14016 and an ID of 000000004
    2012-12-17 10:41:41.416 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.
    2012-12-17 10:41:41.418 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:41:41.421 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    2012-12-17 10:41:41.423 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:41:41.425 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:41:41.426 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:41:41.427 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:41:41.430 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:41:41.433 sharkBomber[44811:72e3] Listening.
    2012-12-17 10:41:45.534 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:41:47.799 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:41:47.800 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:41:48.053 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:41:48.058 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:41:48.082 sharkBomber[44811:72e3] Pocketsphinx heard “RIGHT GO RIGHT” with a score of (-800) and an utterance ID of 000000005.
    2012-12-17 10:41:48.084 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:41:48.084 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is RIGHT GO RIGHT with a score of -800 and an ID of 000000005
    2012-12-17 10:41:48.086 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.
    2012-12-17 10:41:48.088 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:41:48.089 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    2012-12-17 10:41:48.091 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:41:48.093 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:41:48.095 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:41:48.096 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:41:48.099 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:41:48.103 sharkBomber[44811:72e3] Listening.
    2012-12-17 10:41:49.774 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:41:51.379 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:41:51.379 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:41:51.637 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:41:51.640 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:41:51.653 sharkBomber[44811:72e3] Pocketsphinx heard “GO” with a score of (-1120) and an utterance ID of 000000006.
    2012-12-17 10:41:51.654 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:41:51.655 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is GO with a score of -1120 and an ID of 000000006
    2012-12-17 10:41:51.656 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.

    2012-12-17 10:41:51.659 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:41:51.660 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.

    2012-12-17 10:41:51.661 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:41:51.662 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:41:51.664 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:41:51.667 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:41:51.670 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:41:51.672 sharkBomber[44811:72e3] Listening.

    2012-12-17 10:41:52.302 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:41:59.573 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:41:59.574 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:41:59.829 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:41:59.832 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:41:59.897 sharkBomber[44811:72e3] Pocketsphinx heard “GO” with a score of (-1) and an utterance ID of 000000007.
    2012-12-17 10:41:59.898 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:41:59.898 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is GO with a score of -1 and an ID of 000000007
    2012-12-17 10:41:59.901 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.
    2012-12-17 10:41:59.902 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.

    2012-12-17 10:41:59.903 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    2012-12-17 10:41:59.904 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.

    2012-12-17 10:41:59.906 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:41:59.908 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:41:59.910 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:41:59.914 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:41:59.916 sharkBomber[44811:72e3] Listening.
    2012-12-17 10:42:01.639 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:42:02.901 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:42:02.901 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:42:03.156 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:42:03.160 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:42:03.169 sharkBomber[44811:72e3] Pocketsphinx heard “STOP” with a score of (-884) and an utterance ID of 000000008.
    2012-12-17 10:42:03.170 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:42:03.170 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is STOP with a score of -884 and an ID of 000000008
    2012-12-17 10:42:03.173 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.
    2012-12-17 10:42:03.174 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:42:03.176 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    2012-12-17 10:42:03.179 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:42:03.182 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:42:03.185 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:42:03.187 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:42:03.190 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:42:03.194 sharkBomber[44811:72e3] Listening.

    2012-12-17 10:42:14.224 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:42:15.576 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:42:15.577 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:42:15.829 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:42:15.832 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:42:15.844 sharkBomber[44811:72e3] Pocketsphinx heard “LEFT GO” with a score of (-20453) and an utterance ID of 000000009.
    2012-12-17 10:42:15.846 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:42:15.846 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is LEFT GO with a score of -20453 and an ID of 000000009
    2012-12-17 10:42:15.848 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.
    2012-12-17 10:42:15.850 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:42:15.852 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    2012-12-17 10:42:15.854 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:42:15.855 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:42:15.857 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:42:15.858 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:42:15.861 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:42:15.865 sharkBomber[44811:72e3] Listening.
    2012-12-17 10:42:19.861 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:42:21.207 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:42:21.207 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:42:21.461 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:42:21.463 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:42:21.476 sharkBomber[44811:72e3] Pocketsphinx heard “LEFT” with a score of (-857) and an utterance ID of 000000010.
    2012-12-17 10:42:21.478 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:42:21.478 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is LEFT with a score of -857 and an ID of 000000010
    2012-12-17 10:42:21.480 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.

    2012-12-17 10:42:21.482 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:42:21.484 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    2012-12-17 10:42:21.485 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.

    2012-12-17 10:42:21.487 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:42:21.489 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:42:21.490 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:42:21.494 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:42:21.499 sharkBomber[44811:72e3] Listening.
    2012-12-17 10:42:29.801 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:42:30.934 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:42:30.935 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:42:31.189 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:42:31.193 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:42:31.207 sharkBomber[44811:72e3] Pocketsphinx heard “GO” with a score of (-267) and an utterance ID of 000000011.
    2012-12-17 10:42:31.209 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:42:31.209 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is GO with a score of -267 and an ID of 000000011
    2012-12-17 10:42:31.211 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.

    2012-12-17 10:42:31.214 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.0
    2012-12-17 10:42:31.215 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.

    2012-12-17 10:42:31.217 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:42:31.218 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:42:31.220 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:42:31.222 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:42:31.226 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:42:31.228 sharkBomber[44811:72e3] Listening.
    2012-12-17 10:42:33.944 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:42:40.791 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:42:40.791 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:42:41.044 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:42:41.047 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:42:41.109 sharkBomber[44811:72e3] Pocketsphinx heard “STOP” with a score of (-69) and an utterance ID of 000000012.
    2012-12-17 10:42:41.111 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:42:41.111 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is STOP with a score of -69 and an ID of 000000012
    2012-12-17 10:42:41.114 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.
    2012-12-17 10:42:41.117 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:42:41.119 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    2012-12-17 10:42:41.122 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:42:41.125 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:42:41.127 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:42:41.129 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:42:41.133 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:42:41.142 sharkBomber[44811:72e3] Listening.
    2012-12-17 10:42:48.636 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:42:49.878 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:42:49.878 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:42:50.132 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:42:50.134 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:42:50.145 sharkBomber[44811:72e3] Pocketsphinx heard “RIGHT” with a score of (-915) and an utterance ID of 000000013.
    2012-12-17 10:42:50.147 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:42:50.147 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is RIGHT with a score of -915 and an ID of 000000013
    2012-12-17 10:42:50.149 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.

    2012-12-17 10:42:50.152 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:42:50.153 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.

    2012-12-17 10:42:50.156 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:42:50.158 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:42:50.162 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:42:50.165 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:42:50.170 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:42:50.173 sharkBomber[44811:72e3] Listening.

    2012-12-17 10:43:04.391 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:43:05.495 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:43:05.495 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:43:05.749 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:43:05.752 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:43:05.759 sharkBomber[44811:72e3] Pocketsphinx heard “” with a score of (0) and an utterance ID of 000000014.
    2012-12-17 10:43:05.760 sharkBomber[44811:72e3] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set PocketsphinxController’s property returnNullHypotheses to TRUE before starting PocketsphinxController.
    2012-12-17 10:43:05.762 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:43:05.763 sharkBomber[44811:72e3] audioCategory is correct, we will leave it as it is.
    2012-12-17 10:43:05.765 sharkBomber[44811:72e3] bluetoothInput is correct, we will leave it as it is.
    2012-12-17 10:43:05.766 sharkBomber[44811:72e3] categoryDefaultToSpeaker is correct, we will leave it as it is.
    2012-12-17 10:43:05.768 sharkBomber[44811:72e3] preferredBufferSize is correct, we will leave it as it is.
    2012-12-17 10:43:05.771 sharkBomber[44811:72e3] preferredSampleRateCheck is correct, we will leave it as it is.
    2012-12-17 10:43:05.773 sharkBomber[44811:72e3] Setting the variables for the device and starting it.
    2012-12-17 10:43:05.774 sharkBomber[44811:72e3] Looping through ringbuffer sections and pre-allocating them.
    2012-12-17 10:43:05.777 sharkBomber[44811:72e3] Started audio output unit.
    2012-12-17 10:43:05.781 sharkBomber[44811:72e3] Listening.
    2012-12-17 10:43:09.271 sharkBomber[44811:72e3] Speech detected…
    2012-12-17 10:43:10.355 sharkBomber[44811:72e3] Stopping audio unit.
    2012-12-17 10:43:10.355 sharkBomber[44811:907]
    ****Pocketsphinx has detected a period of silence, concluding an utterance.***
    2012-12-17 10:43:10.614 sharkBomber[44811:72e3] Audio Output Unit stopped, cleaning up variable states.
    2012-12-17 10:43:10.616 sharkBomber[44811:72e3] Processing speech, please wait…
    2012-12-17 10:43:10.625 sharkBomber[44811:72e3] Pocketsphinx heard “GO” with a score of (-4469) and an utterance ID of 000000015.
    2012-12-17 10:43:10.626 sharkBomber[44811:72e3] Checking and resetting all audio session settings.
    2012-12-17 10:43:10.626 sharkBomber[44811:907] -[Plugin pocketsphinxDidReceiveHypothesis:recognitionScore:utteranceID:] [Line 98] The received hypothesis is GO with a score of -4469 and an ID of 000000015

    ****Pocketsphinx has detected a period of silence, concluding an utterance.***

    #14932
    Halle Winkler
    Politepix

    OK, thanks for the logging. I’ve never received a report of this issue before (not that I don’t believe it, just that it’s not a common issue) and the OS and device you’re using is part of the testbed, so I think I’d want to check out the app code in order to learn more about what is happening — would it be possible for you to make a stripped-down sample app that manifests the issue to send me so I can see it?

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.