Reply To: Words not recognized

Home Forums OpenEars Words not recognized 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)>”
)>”.