Search code examples
openears

What is utteranceID parameter in Openears ios library callback?


the callback of openears is

- (void) pocketsphinxDidReceiveHypothesis:(NSString *)hypothesis recognitionScore:(NSString *)recognitionScore utteranceID:(NSString *)utteranceID 

hypothesis is the text itself and score is self explained. what is utteranceID?

thanks allot!


Solution

  • It doesn't mean anything significant, you can ignore this parameter. It is just an artifact of a very old pocketsphinx API.

    Originally in pocketsphinx the API allowed to set the ID for every utterance it starts recognizing, so that in pocketsphinx log the recognized results are attributed to a certain wav file. Now there is no much need in that and this parameter will be removed from pocketsphinx API most likely.