bhavin

Forum Replies Created

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

  • Author
    Posts
  • in reply to: Words not recognized #1030650
    bhavin
    Participant

    Halle, Thank you for your suggestion. I went through the class documentation and also played around with disabling the properties.

    It looks like the:

    OEPocketsphinxController.sharedInstance().disablePreferredBufferSize = true

    is the one that is actually having an effect. I do not disable anything else now and the loudness issue still persists. The volume increases whenever i start the listening.

    Function:

    func startListening() {
    OEPocketsphinxController.sharedInstance().disablePreferredBufferSize = true

    do {
    try OEPocketsphinxController.sharedInstance().setActive(true)
    } catch {
    print(error)
    }

    OEPocketsphinxController.sharedInstance().startListeningWithLanguageModelAtPath(lmPath, dictionaryAtPath: dicPath, acousticModelAtPath: OEAcousticModel.pathToModel(“AcousticModelEnglish”), languageModelIsJSGF: false)
    }

    Log:

    2016-07-01 15:09:37.904 app[5044:1990481] Starting OpenEars logging for OpenEars version 2.502 on 64-bit device (or build): iPhone running iOS version: 9.300000
    2016-07-01 15:09:37.922 app[5044:1990481] Starting dynamic language model generation

    2016-07-01 15:09:37.996 app[5044:1990481] Done creating language model with CMUCLMTK in 0.073687 seconds.
    2016-07-01 15:09:37.997 app[5044:1990481] Since there is no cached version, loading the language model lookup list for the acoustic model called AcousticModelEnglish
    2016-07-01 15:09:38.044 app[5044:1990481] I’m done running performDictionaryLookup and it took 0.032958 seconds
    2016-07-01 15:09:38.050 app[5044:1990481] I’m done running dynamic language model generation and it took 0.143244 seconds
    [app.AudioHandler.AudioEvent(speakMessageType: app.AudioHandler.SpeakMessageType.ConnectionMessage, message: “Copilot connected.”)]
    Setting audio timer.
    2016-07-01 15:09:38.169 app[5044:1990481] Configuring the default app.
    2016-07-01 15:09:38.196: <FIRInstanceID/WARNING> FIRInstanceID AppDelegate proxy enabled, will swizzle app delegate remote notification handlers. To disable add “FirebaseAppDelegateProxyEnabled” to your Info.plist and set it to NO
    2016-07-01 15:09:38.203: <FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 “(null)”
    2016-07-01 15:09:38.218: <FIRMessaging/INFO> FIRMessaging library version 1.1.0
    2016-07-01 15:09:38.229: <FIRMessaging/WARNING> FIRMessaging AppDelegate proxy enabled, will swizzle app delegate remote notification receiver handlers. Add “FirebaseAppDelegateProxyEnabled” to your Info.plist and set it to NO
    2016-07-01 15:09:38.327 app[5044:] <FIRAnalytics/INFO> Firebase Analytics v.3200000 started
    2016-07-01 15:09:38.331 app[5044:] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)
    2016-07-01 15:09:38.356 app[5044:] <FIRAnalytics/INFO> Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
    2016-07-01 15:09:38.459 app[5044:] <FIRAnalytics/INFO> Firebase Analytics enabled
    2016-07-01 15:09:38.562: <FIRInstanceID/WARNING> APNS Environment in profile: development
    Audio Session Started.
    Removing audio timer.
    2016-07-01 15:09:39.240 app[5044:1990655] Building MacinTalk voice for asset: (null)
    [app.AudioHandler.AudioEvent(speakMessageType: app.AudioHandler.SpeakMessageType.BatteryNotification, message: “4 and a half hours of talktime remaining.”)]
    Setting audio timer.
    Audio Session Stopped.
    Audio Session Started.
    Removing audio timer.
    [message: Test142., sender: Bhavin Modi, collapse_key: do_not_collapse, msgid: 376, timestamp: 1467400187730, from: 579452197266]
    [app.AudioHandler.AudioEvent(speakMessageType: app.AudioHandler.SpeakMessageType.RemoteNotification, message: “New Message from Bhavin Modi. Test142.”)]
    Setting audio timer.
    Audio Session Stopped.
    Audio Session Started.
    Removing audio timer.
    Audio Session Stopped.
    Audio Session Started.
    Record Permission Granted. Starting.
    2016-07-01 15:10:01.326 app[5044:1990481] Creating shared instance of OEPocketsphinxController
    2016-07-01 15:10:01.329 app[5044:1990481] Attempting to start listening session from startListeningWithLanguageModelAtPath:
    2016-07-01 15:10:01.331 app[5044:1990481] User gave mic permission for this app.
    2016-07-01 15:10:01.332 app[5044:1990481] setSecondsOfSilence wasn’t set, using default of 0.700000.
    2016-07-01 15:10:01.333 app[5044:1990571] Starting listening.
    2016-07-01 15:10:01.334 app[5044:1990571] About to set up audio session
    2016-07-01 15:10:03.222 app[5044:1990594] Audio route has changed for the following reason:
    2016-07-01 15:10:03.226 app[5044:1990571] Creating audio session with default settings.
    2016-07-01 15:10:03.227 app[5044:1990571] Done setting audio session category.
    2016-07-01 15:10:03.230 app[5044:1990571] Sample rate is already the preferred rate of 16000.000000 so not setting it.
    2016-07-01 15:10:03.231 app[5044:1990594] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-07-01 15:10:03.248 app[5044:1990571] number of channels is already the preferred number of 1 so not setting it.
    2016-07-01 15:10:03.250 app[5044:1990571] Not setting a preferred buffer duration at developer request, keeping the default duration for this hardware of 0.016000.
    2016-07-01 15:10:03.251 app[5044:1990571] Done setting up audio session
    2016-07-01 15:10:03.256 app[5044:1990571] About to set up audio IO unit in a session with a sample rate of 16000.000000, a channel number of 1 and a buffer duration of 0.016000.
    2016-07-01 15:10:03.264 app[5044:1990594] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x13007bbb0,
    inputs = (
    “<AVAudioSessionPortDescription: 0x13126bee0, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x13161dbc0, type = BluetoothA2DPOutput; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:69-tacl; selectedDataSource = (null)>”
    )>”.
    2016-07-01 15:10:03.294 app[5044:1990571] Done setting up audio unit
    2016-07-01 15:10:03.337 app[5044:1990571] About to start audio IO unit
    2016-07-01 15:10:03.337 app[5044:1990594] Audio route has changed for the following reason:
    2016-07-01 15:10:03.341 app[5044:1990571] Done starting audio unit
    2016-07-01 15:10:03.347 app[5044:1990594] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-07-01 15:10:03.353 app[5044:1990594] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x13140d7c0,
    inputs = (
    “<AVAudioSessionPortDescription: 0x1302f8b60, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Bottom>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x130222460, type = Receiver; name = Receiver; UID = Built-In Receiver; selectedDataSource = (null)>”
    )>”.
    2016-07-01 15:10:03.458 app[5044:1990571] Restoring SmartCMN value of 35.950439
    2016-07-01 15:10:03.458 app[5044:1990571] Listening.
    2016-07-01 15:10:03.459 app[5044:1990571] Project has these words or phrases in its dictionary:
    OK
    REPEAT
    REPEAT(2)
    REPLAY

    2016-07-01 15:10:03.459 app[5044:1990571] Recognition loop has started
    2016-07-01 15:10:03.459 app[5044:1990481] Successfully started listening session from startListeningWithLanguageModelAtPath:
    2016-07-01 15:10:03.617 app[5044:1990571] Speech detected…
    2016-07-01 15:10:04.597 app[5044:1990814] End of speech detected…
    2016-07-01 15:10:04.613 app[5044:1990814] Pocketsphinx heard “” with a score of (-29001) and an utterance ID of 0.
    2016-07-01 15:10:04.614 app[5044:1990814] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-07-01 15:10:05.642 app[5044:1990814] Speech detected…
    2016-07-01 15:10:07.790 app[5044:1990619] End of speech detected…
    2016-07-01 15:10:07.940 app[5044:1990619] Pocketsphinx heard “” with a score of (-45240) and an utterance ID of 1.
    2016-07-01 15:10:07.941 app[5044:1990619] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-07-01 15:10:08.437 app[5044:1990814] Speech detected…
    2016-07-01 15:10:10.359 app[5044:1990814] End of speech detected…
    2016-07-01 15:10:10.463 app[5044:1990814] Pocketsphinx heard “” with a score of (-37409) and an utterance ID of 2.
    2016-07-01 15:10:10.465 app[5044:1990814] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    Regsitered for nod callback
    2016-07-01 15:10:11.968 app[5044:1990571] Speech detected…
    2016-07-01 15:10:12.910 app[5044:1990814] End of speech detected…
    2016-07-01 15:10:12.964 app[5044:1990814] Pocketsphinx heard “OK” with a score of (-33460) and an utterance ID of 3.
    Heard: OK
    2016-07-01 15:10:12.978 app[5044:1990481] Stopping listening.
    Listening can’t stop yet for the following reason or reasons: an utterance is still in progress | Trying again.
    2016-07-01 15:10:13.530 app[5044:1990594] Audio route has changed for the following reason:
    2016-07-01 15:10:13.555 app[5044:1990594] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-07-01 15:10:13.563 app[5044:1990594] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “MicrophoneBuiltIn”. Output route or routes: “BluetoothA2DPOutput”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x131408fe0,
    inputs = (
    “<AVAudioSessionPortDescription: 0x12eef5cc0, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:69-tsco; selectedDataSource = (null)>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x12efe6a50, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:69-tsco; selectedDataSource = (null)>”
    )>”.
    2016-07-01 15:10:13.569 app[5044:1990481] Attempting to stop an unstopped utterance so listening can stop.
    2016-07-01 15:10:13.571 app[5044:1990481] No longer listening.
    Unregistering success.
    Audio Session Started.
    2016-07-01 15:10:13.621 app[5044:1990594] Audio route has changed for the following reason:
    2016-07-01 15:10:15.080 app[5044:1990594] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-07-01 15:10:15.119 app[5044:1990594] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x12efdaff0,
    inputs = (
    “<AVAudioSessionPortDescription: 0x131441f90, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x12ef1cbb0, type = BluetoothA2DPOutput; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:69-tacl; selectedDataSource = (null)>”
    )>”.
    Audio Session Stopped.
    2016-07-01 15:10:18.410 app[5044:1990594] Audio route has changed for the following reason:
    2016-07-01 15:10:18.439 app[5044:1990594] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-07-01 15:10:18.452 app[5044:1990594] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “MicrophoneBuiltIn”. Output route or routes: “BluetoothA2DPOutput”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x13121e4f0,
    inputs = (
    “<AVAudioSessionPortDescription: 0x1312f2180, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:69-tsco; selectedDataSource = (null)>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x131238fc0, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:69-tsco; selectedDataSource = (null)>”
    )>”.

    in reply to: Words not recognized #1030644
    bhavin
    Participant

    This part is from a previous reply of yours from a different post.

    The loudness thing is less clear. I don’t know the reason for that, but my best guess is that it is related to the route. Playback can either be routed to the external speaker or the ear speaker and one is much louder than the other. Different audio sessions have different default routes and need to be overridden to get different results. PocketsphinxController does re-route to the louder speaker, but it is possible that something about the session mixing is causing it to not successfully do that and then it is only when the new session is created that the sound is fully routed to the speaker. It could also be due to a side effect of the mixing setting, for instance if it does some kind of active volume reduction on the assumption that there are two output streams that have to be combined without clipping.Lastly it could just be a difference between the two different audio session settings that is more noticeable when the session is returned to ambient.

    The function i am using to start listening is:

    func startListening() {
    OEPocketsphinxController.sharedInstance().disablePreferredSampleRate = true
    OEPocketsphinxController.sharedInstance().disablePreferredBufferSize = true
    do {
    try OEPocketsphinxController.sharedInstance().setActive(true)
    } catch {
    print(error)
    } OEPocketsphinxController.sharedInstance().startListeningWithLanguageModelAtPath(lmPath, dictionaryAtPath: dicPath, acousticModelAtPath: OEAcousticModel.pathToModel(“AcousticModelEnglish”), languageModelIsJSGF: false)
    }

    My question is why does the volume of the bluetooth headset get really loud whenever i start listening. It really is very loud.
    The loudness goes away when i stop the audio session (setting setActive to false) that i am usng for TTS (using AVSpeechSynthesizer). The session i use for my TTS is set with AVAudioSessionCategoryPlayback category and with the DuckOthers options.
    But every time i use OpenEars it appears again. Any advise is highly appreciated.

    I am also attaching the while log below. Hope it helps.

    Thank You.

    Log:
    2016-06-30 17:38:32.970 app[4598:1792249] Starting OpenEars logging for OpenEars version 2.502 on 64-bit device (or build): iPhone running iOS version: 9.300000
    2016-06-30 17:38:32.988 app[4598:1792249] Starting dynamic language model generation

    2016-06-30 17:38:33.051 app[4598:1792249] Done creating language model with CMUCLMTK in 0.063187 seconds.
    2016-06-30 17:38:33.052 app[4598:1792249] Since there is no cached version, loading the language model lookup list for the acoustic model called AcousticModelEnglish
    2016-06-30 17:38:33.107 app[4598:1792249] I’m done running performDictionaryLookup and it took 0.039200 seconds
    2016-06-30 17:38:33.113 app[4598:1792249] I’m done running dynamic language model generation and it took 0.139315 seconds
    2016-06-30 17:38:33.231 app[4598:1792249] Configuring the default app.
    2016-06-30 17:38:33.262: <FIRInstanceID/WARNING> FIRInstanceID AppDelegate proxy enabled, will swizzle app delegate remote notification handlers. To disable add “FirebaseAppDelegateProxyEnabled” to your Info.plist and set it to NO
    2016-06-30 17:38:33.272: <FIRInstanceID/WARNING> Failed to fetch APNS token Error Domain=com.firebase.iid Code=1001 “(null)”
    2016-06-30 17:38:33.280: <FIRMessaging/INFO> FIRMessaging library version 1.1.0
    2016-06-30 17:38:33.295: <FIRMessaging/WARNING> FIRMessaging AppDelegate proxy enabled, will swizzle app delegate remote notification receiver handlers. Add “FirebaseAppDelegateProxyEnabled” to your Info.plist and set it to NO
    2016-06-30 17:38:33.380 app[4598:] <FIRAnalytics/INFO> Firebase Analytics v.3200000 started
    2016-06-30 17:38:33.381 app[4598:] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)
    2016-06-30 17:38:33.405 app[4598:] <FIRAnalytics/INFO> Successfully created Firebase Analytics App Delegate Proxy automatically. To disable the proxy, set the flag FirebaseAppDelegateProxyEnabled to NO in the Info.plist
    2016-06-30 17:38:33.443 app[4598:] <FIRAnalytics/INFO> Firebase Analytics enabled
    2016-06-30 17:38:33.506: <FIRInstanceID/WARNING> APNS Environment in profile: development
    [app.AudioHandler.AudioEvent(speakMessageType: app.AudioHandler.SpeakMessageType.ConnectionMessage, message: “Copilot connected.”)]
    Setting audio timer.
    Audio Session Started.
    Removing audio timer.
    2016-06-30 17:39:07.877 app[4598:1792587] Building MacinTalk voice for asset: (null)
    [app.AudioHandler.AudioEvent(speakMessageType: app.AudioHandler.SpeakMessageType.BatteryNotification, message: “11 and a half hours of talktime remaining.”)]
    Setting audio timer.
    Audio Session Stopped.
    Audio Session Started.
    Removing audio timer.
    Audio Session Stopped.
    [message: Test122., sender: Bhavin Modi, collapse_key: do_not_collapse, msgid: 312, timestamp: 1467322788447, from: 579452197266]
    [app.AudioHandler.AudioEvent(speakMessageType: app.AudioHandler.SpeakMessageType.RemoteNotification, message: “New Message from Bhavin Modi. Test122.”)]
    Setting audio timer.
    Audio Session Started.
    Removing audio timer.
    Audio Session Stopped.
    Audio Session Started.
    Record Permission Granted. Starting.
    2016-06-30 17:39:57.985 app[4598:1792249] Creating shared instance of OEPocketsphinxController
    2016-06-30 17:39:57.992 app[4598:1792249] Attempting to start listening session from startListeningWithLanguageModelAtPath:
    2016-06-30 17:39:58.029 app[4598:1792249] User gave mic permission for this app.
    2016-06-30 17:39:58.033 app[4598:1792249] setSecondsOfSilence wasn’t set, using default of 0.700000.
    2016-06-30 17:39:58.034 app[4598:1792357] Starting listening.
    2016-06-30 17:39:58.036 app[4598:1792357] About to set up audio session
    2016-06-30 17:40:00.228 app[4598:1792357] Creating audio session with default settings.
    2016-06-30 17:40:00.228 app[4598:1792357] Done setting audio session category.
    2016-06-30 17:40:00.258 app[4598:1792357] Not setting a preferred sample rate at developer request, keeping the default rate for this hardware of 16000.000000.
    2016-06-30 17:40:00.266 app[4598:1792357] number of channels is already the preferred number of 1 so not setting it.
    2016-06-30 17:40:00.267 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:40:00.271 app[4598:1792357] Not setting a preferred buffer duration at developer request, keeping the default duration for this hardware of 0.016000.
    2016-06-30 17:40:00.271 app[4598:1792357] Done setting up audio session
    2016-06-30 17:40:00.276 app[4598:1792357] About to set up audio IO unit in a session with a sample rate of 16000.000000, a channel number of 1 and a buffer duration of 0.016000.
    2016-06-30 17:40:00.275 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:40:00.320 app[4598:1792357] Done setting up audio unit
    2016-06-30 17:40:00.323 app[4598:1792357] About to start audio IO unit
    2016-06-30 17:40:00.321 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x153546cf0,
    inputs = (
    “<AVAudioSessionPortDescription: 0x14f8a82a0, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x14f88d500, type = BluetoothA2DPOutput; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tacl; selectedDataSource = (null)>”
    )>”.
    2016-06-30 17:40:00.365 app[4598:1792357] Done starting audio unit
    2016-06-30 17:40:00.389 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:40:00.392 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:40:00.395 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x15337fe20,
    inputs = (
    “<AVAudioSessionPortDescription: 0x153324510, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Bottom>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x15360b6e0, type = Receiver; name = Receiver; UID = Built-In Receiver; selectedDataSource = (null)>”
    )>”.
    2016-06-30 17:40:00.468 app[4598:1792357] Restoring SmartCMN value of 34.620361
    2016-06-30 17:40:00.469 app[4598:1792357] Listening.
    2016-06-30 17:40:00.469 app[4598:1792357] Project has these words or phrases in its dictionary:
    OK
    REPEAT
    REPEAT(2)
    REPLAY

    2016-06-30 17:40:00.469 app[4598:1792357] Recognition loop has started
    2016-06-30 17:40:00.470 app[4598:1792249] Successfully started listening session from startListeningWithLanguageModelAtPath:
    2016-06-30 17:40:00.590 app[4598:1792357] Speech detected…
    2016-06-30 17:40:01.546 app[4598:1792575] End of speech detected…
    2016-06-30 17:40:01.605 app[4598:1792575] Pocketsphinx heard “” with a score of (-22356) and an utterance ID of 0.
    2016-06-30 17:40:01.605 app[4598:1792575] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-30 17:40:03.864 app[4598:1792357] Speech detected…
    2016-06-30 17:40:07.403 app[4598:1792575] End of speech detected…
    2016-06-30 17:40:07.596 app[4598:1792575] Pocketsphinx heard “” with a score of (-73378) and an utterance ID of 1.
    2016-06-30 17:40:07.597 app[4598:1792575] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-30 17:40:07.811 app[4598:1792334] Speech detected…
    2016-06-30 17:40:08.723 app[4598:1792575] End of speech detected…
    2016-06-30 17:40:08.776 app[4598:1792575] Pocketsphinx heard “OK” with a score of (-45625) and an utterance ID of 2.
    2016-06-30 17:40:08.777 app[4598:1792249] Stopping listening.
    2016-06-30 17:40:09.355 app[4598:1792249] No longer listening.
    Audio Session Started.
    2016-06-30 17:40:10.980 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:40:10.982 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:40:10.986 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x153140fc0,
    inputs = (
    “<AVAudioSessionPortDescription: 0x1531ae1e0, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x1535432a0, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    )>”.
    2016-06-30 17:40:10.998 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:40:11.000 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:40:11.076 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x1533e8260,
    inputs = (
    “<AVAudioSessionPortDescription: 0x153321460, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x1533e6ab0, type = BluetoothA2DPOutput; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tacl; selectedDataSource = (null)>”
    )>”.
    Audio Session Stopped.
    2016-06-30 17:40:14.279 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:40:14.292 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:40:14.335 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “MicrophoneBuiltIn”. Output route or routes: “BluetoothA2DPOutput”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x15350a400,
    inputs = (
    “<AVAudioSessionPortDescription: 0x1531b69a0, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x153136790, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    )>”.
    2016-06-30 17:40:29.138 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:40:29.138 app[4598:1792342] An old device became unavailable
    2016-06-30 17:40:29.139 app[4598:1792342] the audio input is now unavailable.
    2016-06-30 17:40:29.144 app[4598:1792342] This is a case for performing a route change. At the close of this method, the new audio route will be <Input route or routes: “MicrophoneBuiltIn”. Output route or routes: “Speaker”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x14e7e74c0,
    inputs = (
    “<AVAudioSessionPortDescription: 0x153321460, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x1533e2c30, type = BluetoothA2DPOutput; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tacl; selectedDataSource = (null)>”
    )>”.
    2016-06-30 17:40:43.319 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:40:43.341 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:40:43.348 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “MicrophoneBuiltIn”. Output route or routes: “BluetoothA2DPOutput”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x1531d15a0,
    inputs = (
    “<AVAudioSessionPortDescription: 0x1531ccb30, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x14f8a9700, type = Speaker; name = Speaker; UID = Speaker; selectedDataSource = (null)>”
    )>”.
    [app.AudioHandler.AudioEvent(speakMessageType: app.AudioHandler.SpeakMessageType.ConnectionMessage, message: “Copilot connected.”)]
    Setting audio timer.
    Audio Session Started.
    Removing audio timer.
    2016-06-30 17:40:45.117 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:40:45.118 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:40:45.121 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “MicrophoneBuiltIn”. Output route or routes: “Speaker”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x153310de0,
    inputs = (
    “<AVAudioSessionPortDescription: 0x1533f5860, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x153310660, type = BluetoothA2DPOutput; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tacl; selectedDataSource = (null)>”
    )>”.
    2016-06-30 17:40:48.288 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:40:48.312 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:40:48.319 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x14e5b8800,
    inputs = (
    “<AVAudioSessionPortDescription: 0x14e762c90, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Bottom>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x153602140, type = Speaker; name = Speaker; UID = Speaker; selectedDataSource = (null)>”
    )>”.
    Audio Session Stopped.
    2016-06-30 17:40:50.926 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:40:50.927 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:40:50.928 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “MicrophoneBuiltIn”. Output route or routes: “BluetoothA2DPOutput”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x153368d90,
    inputs = (
    “<AVAudioSessionPortDescription: 0x153367920, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x153153d10, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    )>”.
    [app.AudioHandler.AudioEvent(speakMessageType: app.AudioHandler.SpeakMessageType.BatteryNotification, message: “11 and a half hours of talktime remaining.”)]
    Setting audio timer.
    Audio Session Started.
    Removing audio timer.
    2016-06-30 17:40:53.670 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:40:53.678 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:40:53.681 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x153195680,
    inputs = (
    “<AVAudioSessionPortDescription: 0x14f824770, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x1531d4da0, type = BluetoothA2DPOutput; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tacl; selectedDataSource = (null)>”
    )>”.
    [message: Test123., sender: Bhavin Modi, collapse_key: do_not_collapse, msgid: 313, timestamp: 1467322855513, from: 579452197266]
    [app.AudioHandler.AudioEvent(speakMessageType: app.AudioHandler.SpeakMessageType.RemoteNotification, message: “New Message from Bhavin Modi. Test123.”)]
    Setting audio timer.
    Audio Session Stopped.
    2016-06-30 17:41:00.807 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:41:00.822 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:41:00.834 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “MicrophoneBuiltIn”. Output route or routes: “BluetoothA2DPOutput”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x15352cf20,
    inputs = (
    “<AVAudioSessionPortDescription: 0x1531d0d30, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x153543ef0, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    )>”.
    Audio Session Started.
    Removing audio timer.
    2016-06-30 17:41:02.749 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:41:02.750 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:41:02.754 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x1533f5d90,
    inputs = (
    “<AVAudioSessionPortDescription: 0x153367c00, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x1533e5370, type = BluetoothA2DPOutput; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tacl; selectedDataSource = (null)>”
    )>”.
    Audio Session Stopped.
    Audio Session Started.
    Record Permission Granted. Starting.
    2016-06-30 17:41:11.018 app[4598:1792249] Attempting to start listening session from startListeningWithLanguageModelAtPath:
    2016-06-30 17:41:11.019 app[4598:1792249] User gave mic permission for this app.
    2016-06-30 17:41:11.019 app[4598:1792249] setSecondsOfSilence wasn’t set, using default of 0.700000.
    2016-06-30 17:41:11.020 app[4598:1792334] Starting listening.
    2016-06-30 17:41:11.020 app[4598:1792334] About to set up audio session
    2016-06-30 17:41:12.978 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:41:14.521 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:41:14.564 app[4598:1792334] Creating audio session with default settings.
    2016-06-30 17:41:14.565 app[4598:1792334] Done setting audio session category.
    2016-06-30 17:41:14.566 app[4598:1792334] Not setting a preferred sample rate at developer request, keeping the default rate for this hardware of 16000.000000.
    2016-06-30 17:41:14.566 app[4598:1792334] number of channels is already the preferred number of 1 so not setting it.
    2016-06-30 17:41:14.567 app[4598:1792334] Not setting a preferred buffer duration at developer request, keeping the default duration for this hardware of 0.016000.
    2016-06-30 17:41:14.568 app[4598:1792334] Done setting up audio session
    2016-06-30 17:41:14.578 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x153136b30,
    inputs = (
    “<AVAudioSessionPortDescription: 0x14f8a2050, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x153547250, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    )>”.
    2016-06-30 17:41:14.596 app[4598:1792334] About to set up audio IO unit in a session with a sample rate of 16000.000000, a channel number of 1 and a buffer duration of 0.016000.
    2016-06-30 17:41:14.661 app[4598:1792334] Done setting up audio unit
    2016-06-30 17:41:14.662 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:41:14.665 app[4598:1792334] About to start audio IO unit
    2016-06-30 17:41:14.685 app[4598:1792334] Done starting audio unit
    2016-06-30 17:41:14.665 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:41:14.724 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x153155770,
    inputs = (
    “<AVAudioSessionPortDescription: 0x1531fa680, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x14e50c200, type = BluetoothA2DPOutput; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tacl; selectedDataSource = (null)>”
    )>”.
    2016-06-30 17:41:14.745 app[4598:1792334] Restoring SmartCMN value of 33.343750
    2016-06-30 17:41:14.749 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:41:14.751 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:41:14.750 app[4598:1792334] Listening.
    2016-06-30 17:41:14.753 app[4598:1792334] Project has these words or phrases in its dictionary:
    OK
    REPEAT
    REPEAT(2)
    REPLAY

    2016-06-30 17:41:14.754 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x1533f5d90,
    inputs = (
    “<AVAudioSessionPortDescription: 0x14e7d0260, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x15360bc50, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    )>”.
    2016-06-30 17:41:14.755 app[4598:1792334] Recognition loop has started
    2016-06-30 17:41:14.757 app[4598:1792249] Successfully started listening session from startListeningWithLanguageModelAtPath:
    2016-06-30 17:41:14.759 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:41:14.761 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:41:14.763 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x153543c40,
    inputs = (
    “<AVAudioSessionPortDescription: 0x153526720, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Bottom>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x1531386b0, type = Receiver; name = Receiver; UID = Built-In Receiver; selectedDataSource = (null)>”
    )>”.
    2016-06-30 17:41:14.925 app[4598:1793135] Speech detected…
    2016-06-30 17:41:16.409 app[4598:1793284] End of speech detected…
    2016-06-30 17:41:16.526 app[4598:1793284] Pocketsphinx heard “” with a score of (-22381) and an utterance ID of 3.
    2016-06-30 17:41:16.529 app[4598:1793284] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-30 17:41:18.529 app[4598:1793284] Speech detected…
    2016-06-30 17:41:20.175 app[4598:1792685] End of speech detected…
    2016-06-30 17:41:20.248 app[4598:1792685] Pocketsphinx heard “” with a score of (-98738) and an utterance ID of 4.
    2016-06-30 17:41:20.249 app[4598:1792685] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-30 17:41:22.346 app[4598:1793284] Speech detected…
    2016-06-30 17:41:23.371 app[4598:1792685] End of speech detected…
    2016-06-30 17:41:23.425 app[4598:1792685] Pocketsphinx heard “OK” with a score of (-61574) and an utterance ID of 5.
    2016-06-30 17:41:23.433 app[4598:1792249] Stopping listening.
    Listening can’t stop yet for the following reason or reasons: an utterance is still in progress | Trying again.
    2016-06-30 17:41:23.997 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:41:24.004 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:41:24.013 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “MicrophoneBuiltIn”. Output route or routes: “BluetoothA2DPOutput”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x153530820,
    inputs = (
    “<AVAudioSessionPortDescription: 0x153135900, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x15352de80, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    )>”.
    2016-06-30 17:41:24.023 app[4598:1792249] Attempting to stop an unstopped utterance so listening can stop.
    2016-06-30 17:41:24.025 app[4598:1792249] No longer listening.
    Audio Session Started.
    2016-06-30 17:41:25.690 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:41:25.697 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:41:25.703 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x1535152a0,
    inputs = (
    “<AVAudioSessionPortDescription: 0x1531350e0, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x153310660, type = BluetoothA2DPOutput; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tacl; selectedDataSource = (null)>”
    )>”.
    Audio Session Stopped.
    2016-06-30 17:41:29.025 app[4598:1792342] Audio route has changed for the following reason:
    2016-06-30 17:41:29.053 app[4598:1792342] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-30 17:41:29.087 app[4598:1792342] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “MicrophoneBuiltIn”. Output route or routes: “BluetoothA2DPOutput”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x14f8a6350,
    inputs = (
    “<AVAudioSessionPortDescription: 0x153536200, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x15315e2a0, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    )>”.

    in reply to: Words not recognized #1030642
    bhavin
    Participant

    Hi thanks once for your insights.

    So i got it to work by setting:
    OEPocketsphinxController.sharedInstance().disablePreferredSampleRate = true OEPocketsphinxController.sharedInstance().disablePreferredBufferSize = true

    The error still remains like the previous log i copied. If needed please let me know if you need a more detailed log or more information.

    But now the loudness increases after it has completed. I read an existing post with the same issue. Is there anything specific i can try, like what audio mode to try or anything else.

    Thank you for your help.

    The loudness thing is less clear. I don’t know the reason for that, but my best guess is that it is related to the route. Playback can either be routed to the external speaker or the ear speaker and one is much louder than the other. Different audio sessions have different default routes and need to be overridden to get different results. PocketsphinxController does re-route to the louder speaker, but it is possible that something about the session mixing is causing it to not successfully do that and then it is only when the new session is created that the sound is fully routed to the speaker. It could also be due to a side effect of the mixing setting, for instance if it does some kind of active volume reduction on the assumption that there are two output streams that have to be combined without clipping.Lastly it could just be a difference between the two different audio session settings that is more noticeable when the session is returned to ambient.

    in reply to: Words not recognized #1030640
    bhavin
    Participant

    i forgot to mention, i had turned the n best hypothesis on, so it was in an array.

    in reply to: Words not recognized #1030639
    bhavin
    Participant

    Thank you for your quick response.
    Sorry About that. I turned on OELogging and turned verbose off for now. The log shows there seems to issue with audio routing through the bluetooth headset.

    Finally it picket up the word ‘NO’ as default i guess. Please can help me out.
    Thank you once again.

    Record Permission Granted. Starting.
    2016-06-29 17:08:03.875 app[4002:1552350] Creating shared instance of OEPocketsphinxController
    2016-06-29 17:08:03.878 app[4002:1552350] Attempting to start listening session from startListeningWithLanguageModelAtPath:
    2016-06-29 17:08:03.880 app[4002:1552350] User gave mic permission for this app.
    2016-06-29 17:08:03.881 app[4002:1552350] setSecondsOfSilence wasn’t set, using default of 0.700000.
    2016-06-29 17:08:03.884 app[4002:1552458] Starting listening.
    2016-06-29 17:08:03.884 app[4002:1552458] About to set up audio session
    2016-06-29 17:08:04.290 app[4002:1552458] Creating audio session with default settings.
    2016-06-29 17:08:04.290 app[4002:1552458] Done setting audio session category.
    2016-06-29 17:08:04.291 app[4002:1552458] Sample rate is already the preferred rate of 16000.000000 so not setting it.
    2016-06-29 17:08:04.293 app[4002:1552458] number of channels is already the preferred number of 1 so not setting it.
    2016-06-29 17:08:04.292 app[4002:1552439] Audio route has changed for the following reason:
    2016-06-29 17:08:04.298 app[4002:1552458] Done setting session’s preferred I/O buffer duration to 0.128000 – now the actual buffer duration is 0.128000
    2016-06-29 17:08:04.300 app[4002:1552458] Done setting up audio session
    2016-06-29 17:08:04.298 app[4002:1552439] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-29 17:08:04.302 app[4002:1552458] About to set up audio IO unit in a session with a sample rate of 16000.000000, a channel number of 1 and a buffer duration of 0.128000.
    2016-06-29 17:08:04.316 app[4002:1552439] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x12dfa8c30,
    inputs = (
    “<AVAudioSessionPortDescription: 0x130543950, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x1302dee70, type = BluetoothA2DPOutput; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tacl; selectedDataSource = (null)>”
    )>”.
    2016-06-29 17:08:04.320 app[4002:1552458] Done setting up audio unit
    2016-06-29 17:08:04.321 app[4002:1552458] About to start audio IO unit
    2016-06-29 17:08:04.321 app[4002:1552439] Audio route has changed for the following reason:
    2016-06-29 17:08:04.766 app[4002:1552722] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-06-29 17:08:04.893 app[4002:1552722] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-06-29 17:08:05.021 app[4002:1552722] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-06-29 17:08:05.150 app[4002:1552722] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-06-29 17:08:05.278 app[4002:1552722] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-06-29 17:08:05.406 app[4002:1552722] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-06-29 17:08:05.533 app[4002:1552722] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-06-29 17:08:05.662 app[4002:1552722] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-06-29 17:08:05.789 app[4002:1552722] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-06-29 17:08:05.797 app[4002:1552458] Done starting audio unit
    2016-06-29 17:08:05.800 app[4002:1552439] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-06-29 17:08:05.833 app[4002:1552439] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “BluetoothHFP”. Output route or routes: “BluetoothHFP”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x12f2ec850,
    inputs = (
    “<AVAudioSessionPortDescription: 0x12df41640, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Bottom>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x12f231a00, type = Receiver; name = Receiver; UID = Built-In Receiver; selectedDataSource = (null)>”
    )>”.
    2016-06-29 17:08:05.918 app[4002:1552458] Restoring SmartCMN value of 31.968506
    2016-06-29 17:08:05.918 app[4002:1552458] Listening.
    2016-06-29 17:08:05.918 app[4002:1552458] Project has these words or phrases in its dictionary:
    NO
    OK
    REPEAT
    REPEAT(2)
    REPLAY
    YES

    2016-06-29 17:08:05.919 app[4002:1552458] Recognition loop has started
    2016-06-29 17:08:05.919 app[4002:1552350] Successfully started listening session from startListeningWithLanguageModelAtPath:
    Pocketsphinx is now listening.
    pocketsphinxRecognitionLoopDidStart
    2016-06-29 17:08:08.877 app[4002:1552429] Speech detected…
    Pocketsphinx has detected speech.
    2016-06-29 17:08:09.582 app[4002:1552604] End of speech detected…
    Pocketsphinx has detected a period of silence, concluding an utterance.
    2016-06-29 17:08:09.599 app[4002:1552604] Pocketsphinx heard “” with a score of (0) and an utterance ID of 0.
    2016-06-29 17:08:09.602 app[4002:1552604] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-29 17:08:14.417 app[4002:1552604] Speech detected…
    Pocketsphinx has detected speech.
    2016-06-29 17:08:15.158 app[4002:1552604] End of speech detected…
    Pocketsphinx has detected a period of silence, concluding an utterance.
    2016-06-29 17:08:15.172 app[4002:1552604] Pocketsphinx heard “” with a score of (-9021) and an utterance ID of 1.
    2016-06-29 17:08:15.172 app[4002:1552604] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-29 17:08:16.638 app[4002:1552604] Speech detected…
    Pocketsphinx has detected speech.
    2016-06-29 17:08:17.373 app[4002:1552604] End of speech detected…
    Pocketsphinx has detected a period of silence, concluding an utterance.
    2016-06-29 17:08:17.391 app[4002:1552604] Pocketsphinx heard “” with a score of (-15018) and an utterance ID of 2.
    2016-06-29 17:08:17.392 app[4002:1552604] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-29 17:08:25.405 app[4002:1552429] Speech detected…
    Pocketsphinx has detected speech.
    2016-06-29 17:08:26.163 app[4002:1552604] End of speech detected…
    Pocketsphinx has detected a period of silence, concluding an utterance.
    2016-06-29 17:08:26.166 app[4002:1552604] Pocketsphinx heard “” with a score of (-11047) and an utterance ID of 3.
    2016-06-29 17:08:26.166 app[4002:1552604] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-29 17:08:26.442 app[4002:1552429] Speech detected…
    Pocketsphinx has detected speech.
    2016-06-29 17:08:27.194 app[4002:1552429] End of speech detected…
    Pocketsphinx has detected a period of silence, concluding an utterance.
    2016-06-29 17:08:27.208 app[4002:1552429] Pocketsphinx heard “” with a score of (-1) and an utterance ID of 4.
    2016-06-29 17:08:27.208 app[4002:1552429] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-29 17:08:29.757 app[4002:1552604] Speech detected…
    Pocketsphinx has detected speech.
    2016-06-29 17:08:30.562 app[4002:1552604] End of speech detected…
    Pocketsphinx has detected a period of silence, concluding an utterance.
    2016-06-29 17:08:30.574 app[4002:1552604] Pocketsphinx heard “” with a score of (0) and an utterance ID of 5.
    2016-06-29 17:08:30.575 app[4002:1552604] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-29 17:08:41.716 app[4002:1552429] Speech detected…
    Pocketsphinx has detected speech.
    2016-06-29 17:08:42.431 app[4002:1552429] End of speech detected…
    Pocketsphinx has detected a period of silence, concluding an utterance.
    2016-06-29 17:08:42.445 app[4002:1552429] Pocketsphinx heard “” with a score of (-1) and an utterance ID of 6.
    2016-06-29 17:08:42.446 app[4002:1552429] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-29 17:09:12.181 app[4002:1552604] Speech detected…
    Pocketsphinx has detected speech.
    2016-06-29 17:09:12.945 app[4002:1553034] End of speech detected…
    Pocketsphinx has detected a period of silence, concluding an utterance.
    2016-06-29 17:09:12.949 app[4002:1553034] Pocketsphinx heard “” with a score of (-1) and an utterance ID of 7.
    2016-06-29 17:09:12.949 app[4002:1553034] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-29 17:09:16.147 app[4002:1552873] Speech detected…
    Pocketsphinx has detected speech.
    2016-06-29 17:09:16.912 app[4002:1552873] End of speech detected…
    Pocketsphinx has detected a period of silence, concluding an utterance.
    2016-06-29 17:09:16.922 app[4002:1552873] Pocketsphinx heard “” with a score of (-1) and an utterance ID of 8.
    2016-06-29 17:09:16.924 app[4002:1552873] Hypothesis was null so we aren’t returning it. If you want null hypotheses to also be returned, set OEPocketsphinxController’s property returnNullHypotheses to TRUE before starting OEPocketsphinxController.
    2016-06-29 17:09:23.559 app[4002:1552439] Audio route has changed for the following reason:
    2016-06-29 17:09:23.566 app[4002:1552439] There was a route override.
    2016-06-29 17:09:23.574 app[4002:1552439] This is not a case in which OpenEars notifies of a route change. At the close of this method, the new audio route will be <Input route or routes: “MicrophoneBuiltIn”. Output route or routes: “Receiver”>. The previous route before changing to this route was “<AVAudioSessionRouteDescription: 0x130500960,
    inputs = (
    “<AVAudioSessionPortDescription: 0x12f2c8be0, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x12f2e9460, type = BluetoothHFP; name = Maven Co-Pilot; UID = 00:07:80:C3:A1:4C-tsco; selectedDataSource = (null)>”
    )>”.
    2016-06-29 17:09:23.839 app[4002:1553016] Speech detected…
    Pocketsphinx has detected speech.
    2016-06-29 17:09:26.884 app[4002:1552873] End of speech detected…
    Pocketsphinx has detected a period of silence, concluding an utterance.
    2016-06-29 17:09:27.044 app[4002:1552873] Pocketsphinx heard “NO” with a score of (-229438) and an utterance ID of 9.
    2016-06-29 17:09:27.046 app[4002:1552350] Stopping listening.
    2016-06-29 17:09:27.472 app[4002:1552350] No longer listening.
    recognizedSpeech
    Heard: NO
    Pocketsphinx has stopped listening.

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