Home › Forums › OpenEars › How to deallocate OpenEars singleton (2.0) ? › Reply To: How to deallocate OpenEars singleton (2.0) ?
I agree the problem must be in StopListening(), so from now on I’ll be focusing on that.
I’ve removed my workaround, and added an AVAudioSessionRouteChangeNotification observer so I can dump the whole AVAudioSession settings whenever a route change is detected.
First, I ran the application without OpenEars enabled, which means Unity is the only one managing the audio session.
After app startup, I plugged the headphones and then unplugged it a few seconds later.
Here are the logs with the AVAudioSession settings dumps:
[AudioController] Reset Audio System. Buffer size: 1024, numRealVoices: 32, numVirtualVoices: 512, sampleRate: 24000, speakerMode: Stereo
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
2015-09-03 13:41:35.739 mathcommand[1553:476906] 13:41:35.738 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:111: GetProperty: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 13:41:35.739 mathcommand[1553:476906] 13:41:35.739 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:124: GetProperty_DefaultToZero: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 13:41:35.745 mathcommand[1553:476906] Dumping AVAudioSession settings:
- availableInputs:
- category: AVAudioSessionCategoryAmbient
- categoryOptions: 1
- currentRoute.inputs:
- currentRoute.outputs:
- portName: Speaker
- portType: Speaker
- UID: Speaker
- portType: Speaker
- channels:
- channelName: Speaker
- owningPortUID: Speaker
- channelNumber: 1
- channelLabel: 4294967295
- inputAvailable: 1
- mode: AVAudioSessionModeDefault
- IOBufferDuration: 0.042667
- inputLatency: 0.000000
- inputGain: 1.000000
- inputGainSettable: 0
- maximumInputNumberOfChannels: 0
- maximumOutputNumberOfChannels: 1
- outputNumberOfChannels: 1
- outputVolume: 0.437500
- outputLatency: 0.013500
- otherAudioPlaying: 0
- preferredIOBufferDuration: 0.000000
- preferredInputNumberOfChannels: 0
- preferredOutputNumberOfChannels: 0
- preferredSampleRate: 24000.000000
- recordPermission: 1735552628
- sampleRate: 24000.000000
- secondaryAudioShouldBeSilencedHint: 0
- shouldGroupAccessibilityChildren: 0
2015-09-03 13:41:46.055 mathcommand[1553:476906] routeChangeReason : AVAudioSessionRouteChangeReasonNewDeviceAvailable
2015-09-03 13:41:46.063 mathcommand[1553:476906] 13:41:46.063 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:111: GetProperty: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 13:41:46.065 mathcommand[1553:476906] 13:41:46.065 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:124: GetProperty_DefaultToZero: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 13:41:46.067 mathcommand[1553:476906] Dumping AVAudioSession settings:
- availableInputs:
- category: AVAudioSessionCategoryAmbient
- categoryOptions: 1
- currentRoute.inputs:
- currentRoute.outputs:
- portName: Headphones
- portType: Headphones
- UID: Wired Headphones
- portType: Headphones
- channels:
- channelName: Headphones Left
- owningPortUID: Wired Headphones
- channelNumber: 1
- channelLabel: 4294967295
- channelName: Headphones Right
- owningPortUID: Wired Headphones
- channelNumber: 2
- channelLabel: 4294967295
- inputAvailable: 1
- mode: AVAudioSessionModeDefault
- IOBufferDuration: 0.023220
- inputLatency: 0.000000
- inputGain: 1.000000
- inputGainSettable: 0
- maximumInputNumberOfChannels: 0
- maximumOutputNumberOfChannels: 2
- outputNumberOfChannels: 2
- outputVolume: 0.375000
- outputLatency: 0.001633
- otherAudioPlaying: 0
- preferredIOBufferDuration: 0.000000
- preferredInputNumberOfChannels: 0
- preferredOutputNumberOfChannels: 0
- preferredSampleRate: 44100.000000
- recordPermission: 1735552628
- sampleRate: 44100.000000
- secondaryAudioShouldBeSilencedHint: 0
- shouldGroupAccessibilityChildren: 0
Chartboost: didCacheRewardedVideo: Game Over
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
2015-09-03 13:42:34.820 mathcommand[1553:476906] routeChangeReason : AVAudioSessionRouteChangeReasonOldDeviceUnavailable
2015-09-03 13:42:34.828 mathcommand[1553:476906] 13:42:34.828 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:111: GetProperty: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 13:42:34.829 mathcommand[1553:476906] 13:42:34.829 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:124: GetProperty_DefaultToZero: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 13:42:34.831 mathcommand[1553:476906] Dumping AVAudioSession settings:
- availableInputs:
- category: AVAudioSessionCategoryAmbient
- categoryOptions: 1
- currentRoute.inputs:
- currentRoute.outputs:
- portName: Speaker
- portType: Speaker
- UID: Speaker
- portType: Speaker
- channels:
- channelName: Speaker
- owningPortUID: Speaker
- channelNumber: 1
- channelLabel: 4294967295
- inputAvailable: 1
- mode: AVAudioSessionModeDefault
- IOBufferDuration: 0.023220
- inputLatency: 0.000000
- inputGain: 1.000000
- inputGainSettable: 0
- maximumInputNumberOfChannels: 0
- maximumOutputNumberOfChannels: 1
- outputNumberOfChannels: 1
- outputVolume: 0.437500
- outputLatency: 0.013356
- otherAudioPlaying: 0
- preferredIOBufferDuration: 0.000000
- preferredInputNumberOfChannels: 0
- preferredOutputNumberOfChannels: 0
- preferredSampleRate: 44100.000000
- recordPermission: 1735552628
- sampleRate: 44100.000000
- secondaryAudioShouldBeSilencedHint: 0
- shouldGroupAccessibilityChildren: 0
From these logs, I noticed these key settings:
category: AVAudioSessionCategoryAmbient
mode: AVAudioSessionModeDefault
sampleRate: 24000 (but changes to 44100 when plugging/unplugging the headphones)
Only the sample rate was changed during the route change.
So this was with no OpenEars.
Next is the full log with OpenEars enabled.
Note that I start the application, wait for OpenEars to fully initialize (and even recognize a few utterances), and then I plug the headphones and unplug it a few seconds later.
Here what is looks like:
[AudioController] Reset Audio System. Buffer size: 1024, numRealVoices: 32, numVirtualVoices: 512, sampleRate: 24000, speakerMode: Stereo
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
2015-09-03 14:21:12.938 mathcommand[1591:483805] 14:21:12.937 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:111: GetProperty: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 14:21:12.938 mathcommand[1591:483805] 14:21:12.938 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:124: GetProperty_DefaultToZero: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 14:21:12.943 mathcommand[1591:483805]
Dumping AVAudioSession settings:
- availableInputs:
- category: AVAudioSessionCategoryAmbient
- categoryOptions: 1
- currentRoute.inputs:
- currentRoute.outputs:
- portName: Speaker
- portType: Speaker
- UID: Speaker
- portType: Speaker
- channels:
- channelName: Speaker
- owningPortUID: Speaker
- channelNumber: 1
- channelLabel: 4294967295
- inputAvailable: 1
- mode: AVAudioSessionModeDefault
- IOBufferDuration: 0.042667
- inputLatency: 0.000000
- inputGain: 1.000000
- inputGainSettable: 0
- maximumInputNumberOfChannels: 0
- maximumOutputNumberOfChannels: 1
- outputNumberOfChannels: 1
- outputVolume: 0.437500
- outputLatency: 0.013500
- otherAudioPlaying: 0
- preferredIOBufferDuration: 0.000000
- preferredInputNumberOfChannels: 0
- preferredOutputNumberOfChannels: 0
- preferredSampleRate: 24000.000000
- recordPermission: 1735552628
- sampleRate: 24000.000000
- secondaryAudioShouldBeSilencedHint: 0
- shouldGroupAccessibilityChildren: 0
2015-09-03 14:21:12.943 mathcommand[1591:483805] [PocketSphinx] Startup
2015-09-03 14:21:12.946 mathcommand[1591:483805] Starting OpenEars logging for OpenEars version 2.041 on 32-bit device (or build): iPhone running iOS version: 8.400000
2015-09-03 14:21:12.947 mathcommand[1591:483805] [PocketSphinx] SetupLanguage: English
[AudioController] Reset Audio System. Buffer size: 1024, numRealVoices: 32, numVirtualVoices: 512, sampleRate: 24000, speakerMode: Stereo
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
2015-09-03 14:21:13.772 mathcommand[1591:483805] [PocketSphinx] Start Recording
2015-09-03 14:21:13.772 mathcommand[1591:483955] Creating shared instance of OEPocketsphinxController
2015-09-03 14:21:13.773 mathcommand[1591:483955] Attempting to start listening session from startListeningWithLanguageModelAtPath:
2015-09-03 14:21:13.774 mathcommand[1591:483955] User gave mic permission for this app.
2015-09-03 14:21:13.775 mathcommand[1591:483955] Valid setSecondsOfSilence value of 0.100000 will be used.
2015-09-03 14:21:13.775 mathcommand[1591:483955] Successfully started listening session from startListeningWithLanguageModelAtPath:
2015-09-03 14:21:13.775 mathcommand[1591:483966] Starting listening.
2015-09-03 14:21:13.775 mathcommand[1591:483966] about to set up audio session
[PocketSphinx] Recognition Setup Completed
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
2015-09-03 14:21:14.287 mathcommand[1591:483966] Creating audio session with default settings.
2015-09-03 14:21:14.382 mathcommand[1591:483805] routeChangeReason : AVAudioSessionRouteChangeReasonCategoryChange
Dumping AVAudioSession settings:
- availableInputs:
- portName: MicrophoneBuiltIn
- portType: iPhone Microphone
- UID: Built-In Microphone
- portType: iPhone Microphone
- channels:
- category: AVAudioSessionCategoryPlayAndRecord
- categoryOptions: 13
- currentRoute.inputs:
- portName: MicrophoneBuiltIn
- portType: iPhone Microphone
- UID: Built-In Microphone
- portType: iPhone Microphone
- channels:
- channelName: iPhone Microphone
- owningPortUID: Built-In Microphone
- channelNumber: 1
- channelLabel: 4294967295
- currentRoute.outputs:
- portName: Speaker
- portType: Speaker
- UID: Speaker
- portType: Speaker
- channels:
- channelName: Speaker
- owningPortUID: Speaker
- channelNumber: 1
- channelLabel: 4294967295
- inputAvailable: 1
- inputDataSource.dataSourceID: 1835216945
- inputDataSource.dataSourceName: Bottom
- inputDataSource.orientation: Bottom
- inputDataSource.location: Lower
- mode: AVAudioSessionModeDefault
- IOBufferDuration: 0.128000
- inputLatency: 0.012542
- inputGain: 0.368421
- inputGainSettable: 1
- maximumInputNumberOfChannels: 1
- maximumOutputNumberOfChannels: 1
- outputNumberOfChannels: 1
- outputVolume: 0.437500
- outputLatency: 0.013667
- otherAudioPlaying: 0
- preferredIOBufferDuration: 0.128000
- preferredInputNumberOfChannels: 0
- preferredOutputNumberOfChannels: 0
- preferredSampleRate: 24000.000000
- recordPermission: 1735552628
- sampleRate: 24000.000000
- secondaryAudioShouldBeSilencedHint: 0
- shouldGroupAccessibilityChildren: 0
2015-09-03 14:21:14.390 mathcommand[1591:483966] done starting audio unit
2015-09-03 14:21:14.396 mathcommand[1591:483805] Audio route has changed for the following reason:
2015-09-03 14:21:14.398 mathcommand[1591:483805] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
2015-09-03 14:21:14.400 mathcommand[1591:483805] This is not a case in which OpenEars notifies of a route change. At the close of this function, the new audio route is ---SpeakerMicrophoneBuiltIn---. The previous route before changing to this route was <AVAudioSessionRouteDescription: 0x1726f200,
inputs = (null);
outputs = (
"<AVAudioSessionPortDescription: 0x172c23f0, type = Speaker; name = Speaker; UID = Speaker; selectedDataSource = (null)>"
)>.
INFO: cmd_ln.c(703): Parsing command line:
\
-lm /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/LanguageModels.bundle/LanguageModel.dmp \
-vad_prespeech 10 \
-vad_postspeech 10 \
-vad_threshold 2.500000 \
-remove_noise yes \
-remove_silence yes \
-bestpa2015-09-03 14:21:14.417 mathcommand[1591:483805] routeChangeReason : AVAudioSessionRouteChangeReasonCategoryChange
Dumping AVAudioSession settings:
- availableInputs:
- portName: MicrophoneBuiltIn
- portType: iPhone Microphone
- UID: Built-In Microphone
- portType: iPhone Microphone
- channels:
- category: AVAudioSessionCategoryPlayAndRecord
- categoryOptions: 13
- currentRoute.inputs:
- portName: MicrophoneBuiltIn
- portType: iPhone Microphone
- UID: Built-In Microphone
- portType: iPhone Microphone
- channels:
- channelName: iPhone Microphone
- owningPortUID: Built-In Microphone
- channelNumber: 1
- channelLabel: 4294967295
- currentRoute.outputs:
- portName: Speaker
- portType: Speaker
- UID: Speaker
- portType: Speaker
- channels:
- channelName: Speaker
- owningPortUID: Speaker
- channelNumber: 1
- channelLabel: 4294967295
- inputAvailable: 1
- inputDataSource.dataSourceID: 1835216945
- inputDataSource.dataSourceName: Bottom
- inputDataSource.orientation: Bottom
- inputDataSource.location: Lower
- mode: AVAudioSessionModeDefault
- IOBufferDuration: 0.128000
- inputLatency: 0.012542
- inputGain: 0.368421
- inputGainSettable: 1
- maximumInputNumberOfChannels: 1
- maximumOutputNumberOfChannels: 1
- outputNumberOfChannels: 1
- outputVolume: 0.437500
- outputLatency: 0.013667
- otherAudioPlaying: 0
- preferredIOBufferDuration: 0.128000
- preferredInputNumberOfChannels: 0
- preferredOutputNumberOfChannels: 0
- preferredSampleRate: 24000.000000
- recordPermission: 1735552628
- sampleRate: 24000.000000
- secondaryAudioShouldBeSilencedHint: 0
- shouldGroupAccessibilityChildren: 0
th yes \
-lw 6.500000 \
-dict /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/LanguageModels.bundle/EnglishLanguageModel.dic \
-hmm /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle
Current configuration:
[NAME] [DEFLT] [VALUE]
-agc none none
-agcthresh 2.0 2.000000e+00
-allphone
-allphone_ci no no
-alpha 0.97 9.700000e-01
-argfile
-ascale 20.0 2015-09-03 14:21:14.422 mathcommand[1591:483805] Audio route has changed for the following reason:
2.000000e+01
-aw 1 1
-backtrace no no
-beam 1e-48 1.000000e-48
-bestpath yes yes
-bestpathlw 9.5 9.500000e+00
-ceplen 13 13
-cmn current current
-cmninit 8.0 8.0
-compallsen no no
-debug 0
-dict /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/LanguageModels.bundle/EnglishLanguageModel.dic
-dictcase no no
-dither no no
-doublebw no no
-ds 1 1
-fdict
2015-09-03 14:21:14.423 mathcommand[1591:483805] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
-feat 1s_c_d_dd 1s_c_d_dd
-featparams
-fillprob 1e-8 1.000000e-08
-frate 100 100
-fsg
-fsgusealtpron yes yes
-fsgusefiller yes yes
-fwdflat yes yes
-fwdflatbeam 1e-64 1.000000e-64
-fwdflatefwid 4 4
-fwdflatlw 8.5 8.500000e+00
-fwdflatsfwin 25 25
-fwdflatwbeam 7e-29 7.000000e-29
-fwdtree yes yes
-hmm /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E82015-09-03 14:21:14.425 mathcommand[1591:483805] This is not a case in which OpenEars notifies of a route change. At the close of this function, the new audio route is ---SpeakerMicrophoneBuiltIn---. The previous route before changing to this route was <AVAudioSessionRouteDescription: 0x1726ad10,
inputs = (
"<AVAudioSessionPortDescription: 0x1724a260, type = MicrophoneBuiltIn; name = iPhone Microphone; UID = Built-In Microphone; selectedDataSource = Bottom>"
);
outputs = (
"<AVAudioSessionPortDescription: 0x172743b0, type = Receiver; name = Receiver; UID = Built-In Receiver; selectedDataSource = (null)>"
)>.
6-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle
-input_endian little little
-jsgf
-keyphrase
-kws
-kws_delay 10 10
-kws_plp 1e-1 1.000000e-01
-kws_threshold 1 1.000000e+00
-latsize 5000 5000
-lda
-ldadim 0 0
-lifter 0 0
-lm /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/LanguageModels.bundle/LanguageModel.dmp
-lmctl
-lmname
-logbase 1.0001 1.000100e+00
-logfn
-logspec no no
-lowerf 133.33334 1.333333e+02
-lpbeam 1e-40 1.000000e-40
-lponlybeam 7e-29 7.000000e-29
-lw 6.5 6.500000e+00
-maxhmmpf 30000 30000
-maxwpf -1 -1
-mdef
-mean
-mfclogdir
-min_endfr 0 0
-mixw
-mixwfloor 0.0000001 1.000000e-07
-mllr
-mmap yes yes
-ncep 13 13
-nfft 512 512
-nfilt 40 40
-nwpen 1.0 1.000000e+00
-pbeam 1e-48 1.000000e-48
-pip 1.0 1.000000e+00
-pl_beam 1e-10 1.000000e-10
-pl_pbeam 1e-10 1.000000e-10
-pl_pip 1.0 1.000000e+00
-pl_weight 3.0 3.000000e+00
-pl_window 5 5
-rawlogdir
-remove_dc no no
-remove_noise yes yes
-remove_silence yes yes
-round_filters yes yes
-samprate 16000 1.600000e+04
-seed -1 -1
-sendump
-senlogdir
-senmgau
-silprob 0.005 5.000000e-03
-smoothspec no no
-svspec
-tmat
-tmatfloor 0.0001 1.000000e-04
-topn 4 4
-topn_beam 0 0
-toprule
-transform legacy legacy
-unit_area yes yes
-upperf 6855.4976 6.855498e+03
-uw 1.0 1.000000e+00
-vad_postspeech 50 10
-vad_prespeech 20 10
-vad_startspeech 10 10
-vad_threshold 2.0 2.500000e+00
-var
-varfloor 0.0001 1.000000e-04
-varnorm no no
-verbose no no
-warp_params
-warp_type inverse_linear inverse_linear
-wbeam 7e-29 7.000000e-29
-wip 0.65 6.500000e-01
-wlen 0.025625 2.562500e-02
INFO: cmd_ln.c(703): Parsing command line:
\
-nfilt 25 \
-lowerf 130 \
-upperf 6800 \
-feat 1s_c_d_dd \
-svspec 0-12/13-25/26-38 \
-agc none \
-cmn current \
-varnorm no \
-transform dct \
-lifter 22 \
-cmninit 40
Current configuration:
[NAME] [DEFLT] [VALUE]
-agc none none
-agcthresh 2.0 2.000000e+00
-alpha 0.97 9.700000e-01
-ceplen 13 13
-cmn current current
-cmninit 8.0 40
-dither no no
-doublebw no no
-feat 1s_c_d_dd 1s_c_d_dd
-frate 100 100
-input_endian little little
-lda
-ldadim 0 0
-lifter 0 22
-logspec no no
-lowerf 133.33334 1.300000e+02
-ncep 13 13
-nfft 512 512
-nfilt 40 25
-remove_dc no no
-remove_noise yes yes
-remove_silence yes yes
-round_filters yes yes
-samprate 16000 1.600000e+04
-seed -1 -1
-smoothspec no no
-svspec 0-12/13-25/26-38
-transform legacy dct
-unit_area yes yes
-upperf 6855.4976 6.800000e+03
-vad_postspeech 50 10
-vad_prespeech 20 10
-vad_startspeech 10 10
-vad_threshold 2.0 2.500000e+00
-varnorm no no
-verbose no no
-warp_params
-warp_type inverse_linear inverse_linear
-wlen 0.025625 2.562500e-02
INFO: acmod.c(252): Parsed model-specific feature parameters from /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle/feat.params
INFO: feat.c(715): Initializing feature stream to type: '1s_c_d_dd', ceplen=13, CMN='current', VARNORM='no', AGC='none'
INFO: cmn.c(143): mean[0]= 12.00, mean[1..12]= 0.0
INFO: acmod.c(171): Using subvector specification 0-12/13-25/26-38
INFO: mdef.c(518): Reading model definition: /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle/mdef
INFO: mdef.c(531): Found byte-order mark BMDF, assuming this is a binary mdef file
INFO: bin_mdef.c(336): Reading binary model definition: /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle/mdef
-> applicationWillResignActive()
INFO: bin_mdef.c(516): 46 CI-phone, 168344 CD-phone, 3 emitstate/phone, 138 CI-sen, 6138 Sen, 32881 Sen-Seq
INFO: tmat.c(206): Reading HMM transition probability matrices: /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle/transition_matrices
INFO: acmod.c(124): Attempting to use PTM computation module
INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle/means
INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle/variances
INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(354): 0 variance values floored
INFO: ptm_mgau.c(805): Number of codebooks doesn't match number of ciphones, doesn't look like PTM: 1 != 46
INFO: acmod.c(126): Attempting to use semi-continuous computation module
INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle/means
INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle/variances
INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(294): 512x13
INFO: ms_gauden.c(354): 0 variance values floored
INFO: s2_semi_mgau.c(904): Loading senones from dump file /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle/sendump
INFO: s2_semi_mgau.c(928): BEGIN FILE FORMAT DESCRIPTION
INFO: s2_semi_mgau.c(991): Rows: 512, Columns: 6138
INFO: s2_semi_mgau.c(1023): Using memory-mapped I/O for senones
INFO: s2_semi_mgau.c(1294): Maximum top-N: 4 Top-N beams: 0 0 0
INFO: phone_loop_search.c(114): State beam -225 Phone exit beam -225 Insertion penalty 0
INFO: dict.c(320): Allocating 4224 * 20 bytes (82 KiB) for word entries
INFO: dict.c(333): Reading main dictionary: /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/LanguageModels.bundle/EnglishLanguageModel.dic
INFO: dict.c(213): Allocated 0 KiB for strings, 1 KiB for phones
INFO: dict.c(336): 119 words read
INFO: dict.c(358): Reading filler dictionary: /private/var/mobile/Containers/Bundle/Application/A57FE0BE-40E1-4E86-9BBE-2915F35097FE/mathcommand.app/AcousticModelEnglish.bundle/noisedict
INFO: dict.c(213): Allocated 0 KiB for strings, 0 KiB for phones
INFO: dict.c(361): 9 words read
INFO: dict2pid.c(396): Building PID tables for dictionary
INFO: dict2pid.c(406): Allocating 46^3 * 2 bytes (190 KiB) for word-initial triphones
INFO: dict2pid.c(132): Allocated 25576 bytes (24 KiB) for word-final triphones
INFO: dict2pid.c(196): Allocated 25576 bytes (24 KiB) for single-phone word triphones
INFO: ngram_model_arpa.c(77): No \data\ mark in LM file
INFO: ngram_model_dmp.c(166): Will use memory-mapped I/O for LM file
INFO: ngram_model_dmp.c(220): ngrams 1=119, 2=234, 3=117
INFO: ngram_model_dmp.c(266): 119 = LM.unigrams(+trailer) read
INFO: ngram_model_dmp.c(312): 234 = LM.bigrams(+trailer) read
INFO: ngram_model_dmp.c(338): 117 = LM.trigrams read
INFO: ngram_model_dmp.c(363): 3 = LM.prob2 entries read
INFO: ngram_model_dmp.c(383): 3 = LM.bo_wt2 entries read
INFO: ngram_model_dmp.c(403): 2 = LM.prob3 entries read
INFO: ngram_model_dmp.c(431): 1 = LM.tseg_base entries read
INFO: ngram_model_dmp.c(487): 119 = ascii word strings read
INFO: ngram_search_fwdtree.c(99): 18 unique initial diphones
INFO: ngram_search_fwdtree.c(148): 0 root, 0 non-root channels, 17 single-phone words
INFO: ngram_search_fwdtree.c(186): Creating search tree
INFO: ngram_search_fwdtree.c(192): before: 0 root, 0 non-root channels, 17 single-phone words
INFO: ngram_search_fwdtree.c(326): after: max nonroot chan increased to 441
INFO: ngram_search_fwdtree.c(339): after: 18 root, 313 non-root channels, 16 single-phone words
INFO: ngram_search_fwdflat.c(157): fwdflat: min_ef_width = 4, max_sf_win = 25
2015-09-03 14:21:14.713 mathcommand[1591:483966] There was no previous CMN value in the plist so we are using the fresh CMN value 42.000000.
2015-09-03 14:21:14.713 mathcommand[1591:483966] Listening.
2015-09-03 14:21:14.713 mathcommand[1591:483805] Pocketsphinx is now listening.
2015-09-03 14:21:14.714 mathcommand[1591:483966] Project has these words or phrases in its dictionary:
0
1
10
100
11
12
13
14
15
16
17
18
19
2
20
200
21
22
23
24
25
26
27
28
29
3
30
300
31
32
33
...and 89 more.
2015-09-03 14:21:14.714 mathcommand[1591:483805] Pocketsphinx is starting up.
2015-09-03 14:21:14.715 mathcommand[1591:483966] Recognition loop has started
2015-09-03 14:21:14.888 mathcommand[1591:483966] Speech detected...
2015-09-03 14:21:14.889 mathcommand[1591:483805] Pocketsphinx has detected speech.
2015-09-03 14:21:15.122 mathcommand[1591:483966] End of speech detected...
INFO: cmn_prior.c(131): cmn_prior_update: from < 42.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 >
INFO: cmn_prior.c(149): cmn_prior_update: to < 34.12 -0.58 -8.43 -3.22 -2.60 -1.60 3.53 -1.01 -4.43 1.96 -4.67 -0.28 2.27 >
2015-09-03 14:21:15.123 mathcommand[1591:483805] Pocketsphinx has detected a second of silence, concluding an utterance.
INFO: ngram_search_fwdtree.c(1553): 167 words recognized (6/fr)
INFO: ngram_search_fwdtree.c(1555): 2432 senones evaluated (87/fr)
INFO: ngram_search_fwdtree.c(1559): 893 channels searched (31/fr), 432 1st, 296 last
INFO: ngram_search_fwdtree.c(1562): 296 words for which last channels evaluated (10/fr)
INFO: ngram_search_fwdtree.c(1564): 4 candidate words for entering last phone (0/fr)
INFO: ngram_search_fwdtree.c(1567): fwdtree 0.04 CPU 0.152 xRT
INFO: ngram_search_fwdtree.c(1570): fwdtree 0.26 wall 0.935 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 2 words
INFO: ngram_search_fwdflat.c(948): 167 words recognized (6/fr)
INFO: ngram_search_fwdflat.c(950): 513 senones evaluated (18/fr)
INFO: ngram_search_fwdflat.c(952): 219 channels searched (7/fr)
INFO: ngram_search_fwdflat.c(954): 219 words searched (7/fr)
INFO: ngram_search_fwdflat.c(957): 53 word transitions (1/fr)
INFO: ngram_search_fwdflat.c(960): fwdflat 0.00 CPU 0.003 xRT
INFO: ngram_search_fwdflat.c(963): fwdflat 0.00 wall 0.010 xRT
INFO: ngram_search.c(1280): lattice start node <s>.0 end node </s>.19
INFO: ngram_search.c(1306): Eliminated 3 nodes before end node
INFO: ngram_search.c(1411): Lattice has 95 nodes, 226 links
INFO: ps_lattice.c(1380): Bestpath score: -44159
INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(</s>:19:26) = -2749078
INFO: ps_lattice.c(1441): Joint P(O,S) = -2765097 P(S|O) = -16019
INFO: ngram_search.c(899): bestpath 0.00 CPU 0.001 xRT
INFO: ngram_search.c(902): bestpath 0.00 wall 0.002 xRT
2015-09-03 14:21:15.127 mathcommand[1591:483966] Pocketsphinx heard "" with a score of (-16019) and an utterance ID of 0.
2015-09-03 14:21:15.127 mathcommand[1591:483805] The received hypothesis is with a score of -16019 and an ID of 0
2015-09-03 14:21:15.128 mathcommand[1591:483805] hypothesisArray is [
{
"Hypothesis" : "",
"Score" : -65247
},
{
"Hypothesis" : "",
"Score" : -810302
},
{
"Hypothesis" : "",
"Score" : -810525
},
{
"Hypothesis" : "",
"Score" : -810549
},
{
"Hypothesis" : "",
"Score" : -810573
}
]
2015-09-03 14:21:15.128 mathcommand[1591:483805] hypothesisArray is ,,,,
-> applicationDidBecomeActive()
[PocketSphinx] Start Listening
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
LoadingScreen: OnStartListening
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
Avg mic level: 0.009702918
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
2015-09-03 14:21:17.312 mathcommand[1591:483955] Speech detected...
2015-09-03 14:21:17.316 mathcommand[1591:483805] Pocketsphinx has detected speech.
2015-09-03 14:21:17.552 mathcommand[1591:483966] End of speech detected...
INFO: cmn_prior.c(131): cmn_prior_update: from < 34.12 -0.58 -8.43 -3.22 -2.60 -1.60 3.53 -1.01 -4.43 1.96 -4.67 -0.28 2.27 >
INFO: cmn_prior.c(149): cmn_prior_update: to < 37.30 -7.32 -9.74 -4.97 -2.30 1.95 1.13 4.18 -5.96 -1.30 -6.07 -0.42 0.44 >
INFO: ngram_search_fwdtree.c(1553): 263 words recognized (11/fr)
INFO: ngram_search_fwdtree.c(1555): 5829 senones evaluated (243/fr)
INFO: ngram_search_fwdtree.c(1559): 3059 channels searched (127/fr), 360 1st, 1527 last
INFO: ngram_search_fwdtree.c(1562): 370 words for which last channels evaluated (15/fr)
INFO: ngram_search_fwdtree.c(1564): 170 candidate words for entering last phone (7/fr)
INFO: ngram_search_fwdtree.c(1567): fwdtree 0.35 CPU 1.475 xRT
INFO: ngram_search_fwdtree.c(1570): fwdtree 2.43 wall 10.112 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 7 words
INFO: ngram_search_fwdflat.c(948): 198 words recognized (8/fr)
INFO: ngram_search_fwdflat.c(950): 2460 senones evaluated (102/fr)
INFO: ngram_search_fwdflat.c(952): 1289 channels searched (53/fr)
INFO: ngram_search_fwdflat.c(954): 303 words searched (12/fr)
INFO: ngram_search_fwdflat.c(957): 161 word transitions (6/fr)
INFO: ngram_search_fwdflat.c(960): fwdflat 0.00 CPU 0.012 xRT
INFO: ngram_search_fwdflat.c(963): fwdflat 0.00 wall 0.014 xRT
INFO: ngram_search.c(1280): lattice start node <s>.0 end node </s>.20
INFO: ngram_search.c(1306): Eliminated 5 nodes before end node
INFO: ngram_search.c(1411): Lattice has 56 nodes, 221 links
INFO: ps_lattice.c(1380): Bestpath score: -4158
INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(</s>:20:22) = 1758229
INFO: ps_lattice.c(1441): Joint P(O,S) = 1671595 P(S|O) = -86634
INFO: ngram_search.c(899): bestpath 0.00 CPU 0.001 xRT
INFO: ngram_search.c(902): bestpath 0.00 wall 0.002 xRT
2015-09-03 14:21:17.559 mathcommand[1591:483966] Pocketsphinx heard "E" with a score of (-86634) and an utterance ID of 1.
2015-09-03 14:21:17.566 mathcommand[1591:483805] Pocketsphinx has detected a second of silence, concluding an utterance.
2015-09-03 14:21:17.566 mathcommand[1591:483805] The received hypothesis is E with a score of -86634 and an ID of 1
2015-09-03 14:21:17.567 mathcommand[1591:483805] hypothesisArray is [
{
"Hypothesis" : "",
"Score" : -66989
},
{
"Hypothesis" : "",
"Score" : -811778
},
{
"Hypothesis" : "",
"Score" : -811970
},
{
"Hypothesis" : "",
"Score" : -812047
},
{
"Hypothesis" : "",
"Score" : -812108
}
]
2015-09-03 14:21:17.567 mathcommand[1591:483805] hypothesisArray is ,,,,
2015-09-03 14:21:17.827 mathcommand[1591:483966] Speech detected...
2015-09-03 14:21:17.833 mathcommand[1591:483805] Pocketsphinx has detected speech.
2015-09-03 14:21:18.065 mathcommand[1591:483955] End of speech detected...
INFO: cmn_prior.c(131): cmn_prior_update: from < 37.30 -7.32 -9.74 -4.97 -2.30 1.95 1.13 4.18 -5.96 -1.30 -6.07 -0.42 0.44 >
INFO: cmn_prior.c(149): cmn_prior_update: to < 41.64 -6.46 -9.00 -2.98 -3.14 0.15 -2.56 -0.20 -7.90 -0.61 -4.38 1.92 -1.89 >
INFO: ngram_search_fwdtree.c(1553): 325 words recognized (13/fr)
INFO: ngram_search_fwdtree.c(1555): 6380 senones evaluated (255/fr)
INFO: ngram_search_fwdtree.c(1559): 3350 channels searched (134/fr), 378 1st, 1665 last
INFO: ngram_search_fwdtree.c(1562): 401 words for which last channels evaluated (16/fr)
INFO: ngram_search_fwdtree.c(1564): 218 candidate words for entering last phone (8/fr)
INFO: ngram_search_fwdtree.c(1567): fwdtree 0.23 CPU 0.901 xRT
INFO: ngram_search_fwdtree.c(1570): fwdtree 0.51 wall 2.028 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 7 words
INFO: ngram_search_fwdflat.c(948): 230 words recognized (9/fr)
INFO: ngram_search_fwdflat.c(950): 2251 senones evaluated (90/fr)
INFO: ngram_search_fwdflat.c(952): 1206 channels searched (48/fr)
INFO: ngram_search_fwdflat.c(954): 318 words searched (12/fr)
INFO: ngram_search_fwdflat.c(957): 168 word transitions (6/fr)
INFO: ngram_search_fwdflat.c(960): fwdflat 0.00 CPU 0.000 xRT
INFO: ngram_search_fwdflat.c(963): fwdflat 0.00 wall 0.011 xRT
INFO: ngram_search.c(1280): lattice start node <s>.0 end node </s>.21
INFO: ngram_search.c(1306): Eliminated 1 nodes before end node
INFO: ngram_search.c(1411): Lattice has 48 nodes, 312 links
INFO: ps_lattice.c(1380): Bestpath score: -4357
INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(</s>:21:23) = 1737231
INFO: ps_lattice.c(1441): Joint P(O,S) = 1654545 P(S|O) = -82686
INFO: ngram_search.c(899): bestpath 0.00 CPU 0.000 xRT
INFO: ngram_search.c(902): bestpath 0.00 wall 0.002 xRT
2015-09-03 14:21:18.076 mathcommand[1591:483955] Pocketsphinx heard "A" with a score of (-82686) and an utterance ID of 2.
2015-09-03 14:21:18.213 mathcommand[1591:483805] Pocketsphinx has detected a second of silence, concluding an utterance.
2015-09-03 14:21:18.214 mathcommand[1591:483805] The received hypothesis is A with a score of -82686 and an ID of 2
2015-09-03 14:21:18.214 mathcommand[1591:483805] hypothesisArray is [
{
"Hypothesis" : "",
"Score" : -67284
},
{
"Hypothesis" : "",
"Score" : -812128
},
{
"Hypothesis" : "",
"Score" : -812255
},
{
"Hypothesis" : "",
"Score" : -812256
},
{
"Hypothesis" : "",
"Score" : -812276
}
]
2015-09-03 14:21:18.214 mathcommand[1591:483805] hypothesisArray is ,,,,
Chartboost: didCacheRewardedVideo: Game Over
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
2015-09-03 14:21:19.094 mathcommand[1591:483866] Speech detected...
2015-09-03 14:21:19.095 mathcommand[1591:483805] Pocketsphinx has detected speech.
2015-09-03 14:21:19.342 mathcommand[1591:483964] End of speech detected...
2015-09-03 14:21:19.343 mathcommand[1591:483805] Pocketsphinx has detected a second of silence, concluding an utterance.
INFO: cmn_prior.c(131): cmn_prior_update: from < 41.64 -6.46 -9.00 -2.98 -3.14 0.15 -2.56 -0.20 -7.90 -0.61 -4.38 1.92 -1.89 >
INFO: cmn_prior.c(149): cmn_prior_update: to < 41.50 -2.73 -9.19 -1.18 -1.44 0.56 -1.91 -0.37 -8.52 -0.63 -2.23 2.94 -2.73 >
INFO: ngram_search_fwdtree.c(1553): 484 words recognized (15/fr)
INFO: ngram_search_fwdtree.c(1555): 8844 senones evaluated (276/fr)
INFO: ngram_search_fwdtree.c(1559): 4659 channels searched (145/fr), 504 1st, 2338 last
INFO: ngram_search_fwdtree.c(1562): 545 words for which last channels evaluated (17/fr)
INFO: ngram_search_fwdtree.c(1564): 293 candidate words for entering last phone (9/fr)
INFO: ngram_search_fwdtree.c(1567): fwdtree 0.30 CPU 0.953 xRT
INFO: ngram_search_fwdtree.c(1570): fwdtree 1.27 wall 3.958 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 10 words
INFO: ngram_search_fwdflat.c(948): 341 words recognized (11/fr)
INFO: ngram_search_fwdflat.c(950): 5291 senones evaluated (165/fr)
INFO: ngram_search_fwdflat.c(952): 3241 channels searched (101/fr)
INFO: ngram_search_fwdflat.c(954): 507 words searched (15/fr)
INFO: ngram_search_fwdflat.c(957): 303 word transitions (9/fr)
INFO: ngram_search_fwdflat.c(960): fwdflat 0.01 CPU 0.031 xRT
INFO: ngram_search_fwdflat.c(963): fwdflat 0.01 wall 0.030 xRT
INFO: ngram_search.c(1280): lattice start node <s>.0 end node </s>.28
INFO: ngram_search.c(1306): Eliminated 3 nodes before end node
INFO: ngram_search.c(1411): Lattice has 57 nodes, 324 links
INFO: ps_lattice.c(1380): Bestpath score: -4770
INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(</s>:28:30) = 1717224
INFO: ps_lattice.c(1441): Joint P(O,S) = 1636113 P(S|O) = -81111
INFO: ngram_search.c(899): bestpath 0.00 CPU 0.006 xRT
INFO: ngram_search.c(902): bestpath 0.00 wall 0.004 xRT
2015-09-03 14:21:19.356 mathcommand[1591:483964] Pocketsphinx heard "A" with a score of (-81111) and an utterance ID of 3.
2015-09-03 14:21:19.357 mathcommand[1591:483805] The received hypothesis is A with a score of -81111 and an ID of 3
2015-09-03 14:21:19.358 mathcommand[1591:483805] hypothesisArray is [
{
"Hypothesis" : "A",
"Score" : -26007
},
{
"Hypothesis" : "OH A",
"Score" : -26529
},
{
"Hypothesis" : "O A",
"Score" : -26529
},
{
"Hypothesis" : "I A",
"Score" : -26546
},
{
"Hypothesis" : "A A",
"Score" : -26575
}
]
2015-09-03 14:21:19.358 mathcommand[1591:483805] hypothesisArray is A,OH A,O A,I A,A A
Showing screen: GameOpening
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
[AudioController] Playing music: OpeningMusic (UnityEngine.GameObject)
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
Refresh Anchors
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
2015-09-03 14:21:21.420 mathcommand[1591:483965] Speech detected...
2015-09-03 14:21:21.435 mathcommand[1591:483805] Pocketsphinx has detected speech.
2015-09-03 14:21:21.663 mathcommand[1591:483964] End of speech detected...
INFO: cmn_prior.c(131): cmn_prior_update: from < 41.50 -2.73 -9.19 -1.18 -1.44 0.56 -1.91 -0.37 -8.52 -0.63 -2.23 2.94 -2.73 >
INFO: cmn_prior.c(149): cmn_prior_update: to < 42.67 -0.19 -7.35 -1.26 -3.40 -2.54 -2.14 -2.70 -6.86 -2.12 -2.61 0.15 -2.16 >
INFO: ngram_search_fwdtree.c(1553): 572 words recognized (16/fr)
INFO: ngram_search_fwdtree.c(1555): 10938 senones evaluated (304/fr)
INFO: ngram_search_fwdtree.c(1559): 6592 channels searched (183/fr), 576 1st, 4451 last
INFO: ngram_search_fwdtree.c(1562): 674 words for which last channels evaluated (18/fr)
INFO: ngram_search_fwdtree.c(1564): 215 candidate words for entering last phone (5/fr)
2015-09-03 14:21:21.673 mathcommand[1591:483805] Pocketsphinx has detected a second of silence, concluding an utterance.
INFO: ngram_search_fwdtree.c(1567): fwdtree 1.24 CPU 3.435 xRT
INFO: ngram_search_fwdtree.c(1570): fwdtree 2.31 wall 6.431 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 14 words
INFO: ngram_search_fwdflat.c(948): 505 words recognized (14/fr)
INFO: ngram_search_fwdflat.c(950): 7370 senones evaluated (205/fr)
INFO: ngram_search_fwdflat.c(952): 5420 channels searched (150/fr)
INFO: ngram_search_fwdflat.c(954): 707 words searched (19/fr)
INFO: ngram_search_fwdflat.c(957): 455 word transitions (12/fr)
INFO: ngram_search_fwdflat.c(960): fwdflat 0.04 CPU 0.115 xRT
INFO: ngram_search_fwdflat.c(963): fwdflat 0.03 wall 0.070 xRT
INFO: ngram_search.c(1280): lattice start node <s>.0 end node </s>.32
INFO: ngram_search.c(1306): Eliminated 3 nodes before end node
INFO: ngram_search.c(1411): Lattice has 89 nodes, 581 links
INFO: ps_lattice.c(1380): Bestpath score: -5721
INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(</s>:32:34) = 1653457
INFO: ps_lattice.c(1441): Joint P(O,S) = 1584196 P(S|O) = -69261
INFO: ngram_search.c(899): bestpath 0.01 CPU 0.025 xRT
INFO: ngram_search.c(902): bestpath 0.01 wall 0.017 xRT
2015-09-03 14:21:21.714 mathcommand[1591:483964] Pocketsphinx heard "AND" with a score of (-69261) and an utterance ID of 4.
2015-09-03 14:21:21.718 mathcommand[1591:483805] The received hypothesis is AND with a score of -69261 and an ID of 4
2015-09-03 14:21:21.720 mathcommand[1591:483805] hypothesisArray is [
{
"Hypothesis" : "AND",
"Score" : -26809
},
{
"Hypothesis" : "AND",
"Score" : -26841
},
{
"Hypothesis" : "OH",
"Score" : -26900
},
{
"Hypothesis" : "O",
"Score" : -26900
},
{
"Hypothesis" : "A",
"Score" : -26916
}
]
2015-09-03 14:21:21.722 mathcommand[1591:483805] hypothesisArray is AND,AND,OH,O,A
Chartboost: didCacheInterstitial: Game Over
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
2015-09-03 14:21:22.550 mathcommand[1591:483955] Speech detected...
2015-09-03 14:21:22.553 mathcommand[1591:483805] Pocketsphinx has detected speech.
2015-09-03 14:21:23.577 mathcommand[1591:483865] End of speech detected...
INFO: cmn_prior.c(131): cmn_prior_update: from < 42.67 -0.19 -7.35 -1.26 -3.40 -2.54 -2.14 -2.70 -6.86 -2.12 -2.61 0.15 -2.16 >
INFO: cmn_prior.c(149): cmn_prior_update: to < 47.85 1.17 -7.23 -2.44 -13.78 -4.70 -7.25 -8.91 -3.97 -3.01 -0.88 -3.18 2.08 >
INFO: ngram_search_fwdtree.c(1553): 1609 words recognized (13/fr)
INFO: ngram_search_fwdtree.c(1555): 35766 senones evaluated (296/fr)
INFO: ngram_search_fwdtree.c(1559): 18413 channels searched (152/fr), 2106 1st, 7690 last
INFO: ngram_search_fwdtree.c(1562): 2068 words for which last channels evaluated (17/fr)
INFO: ngram_search_fwdtree.c(1564): 1172 candidate words for entering last phone (9/fr)
INFO: ngram_search_fwdtree.c(1567): fwdtree 1.44 CPU 1.186 xRT
INFO: ngram_search_fwdtree.c(1570): fwdtree 1.86 wall 1.538 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 15 words
2015-09-03 14:21:23.591 mathcommand[1591:483805] Pocketsphinx has detected a second of silence, concluding an utterance.
INFO: ngram_search_fwdflat.c(948): 1296 words recognized (11/fr)
INFO: ngram_search_fwdflat.c(950): 24934 senones evaluated (206/fr)
INFO: ngram_search_fwdflat.c(952): 15674 channels searched (129/fr)
INFO: ngram_search_fwdflat.c(954): 2297 words searched (18/fr)
INFO: ngram_search_fwdflat.c(957): 1053 word transitions (8/fr)
INFO: ngram_search_fwdflat.c(960): fwdflat 0.05 CPU 0.038 xRT
INFO: ngram_search_fwdflat.c(963): fwdflat 0.03 wall 0.026 xRT
INFO: ngram_search.c(1280): lattice start node <s>.0 end node </s>.117
INFO: ngram_search.c(1306): Eliminated 3 nodes before end node
INFO: ngram_search.c(1411): Lattice has 513 nodes, 4124 links
INFO: ps_lattice.c(1380): Bestpath score: -18550
INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(</s>:117:119) = 1060502
INFO: ps_lattice.c(1441): Joint P(O,S) = 921618 P(S|O) = -138884
INFO: ngram_search.c(899): bestpath 0.01 CPU 0.010 xRT
INFO: ngram_search.c(902): bestpath 0.01 wall 0.008 xRT
2015-09-03 14:21:23.621 mathcommand[1591:483865] Pocketsphinx heard "AH" with a score of (-138884) and an utterance ID of 5.
2015-09-03 14:21:23.634 mathcommand[1591:483805] The received hypothesis is AH with a score of -138884 and an ID of 5
2015-09-03 14:21:23.634 mathcommand[1591:483805] hypothesisArray is [
{
"Hypothesis" : "A",
"Score" : -1572166
},
{
"Hypothesis" : "AH A",
"Score" : -1572638
},
{
"Hypothesis" : "OH A",
"Score" : -1572696
},
{
"Hypothesis" : "O A",
"Score" : -1572696
},
{
"Hypothesis" : "OH AH A",
"Score" : -1573206
}
]
2015-09-03 14:21:23.634 mathcommand[1591:483805] hypothesisArray is A,AH A,OH A,O A,OH AH A
2015-09-03 14:21:23.830 mathcommand[1591:483965] Speech detected...
2015-09-03 14:21:23.835 mathcommand[1591:483805] Pocketsphinx has detected speech.
2015-09-03 14:21:24.085 mathcommand[1591:483865] End of speech detected...
INFO: cmn_prior.c(131): cmn_prior_update: from < 47.85 1.17 -7.23 -2.44 -13.78 -4.70 -7.25 -8.91 -3.97 -3.01 -0.88 -3.18 2.08 >
INFO: cmn_prior.c(149): cmn_prior_update: to < 49.49 0.62 -7.32 -2.56 -14.25 -5.01 -7.48 -9.15 -3.13 -2.77 -0.17 -3.15 2.67 >
INFO: ngram_search_fwdtree.c(1553): 328 words recognized (11/fr)
INFO: ngram_search_fwdtree.c(1555): 7392 senones evaluated (238/fr)
INFO: ngram_search_fwdtree.c(1559): 3547 channels searched (114/fr), 486 1st, 1611 last
INFO: ngram_search_fwdtree.c(1562): 483 words for which last channels evaluated (15/fr)
INFO: ngram_search_fwdtree.c(1564): 202 candidate words for entering last phone (6/fr)
INFO: ngram_search_fwdtree.c(1567): fwdtree 0.29 CPU 0.926 xRT
INFO: ngram_search_fwdtree.c(1570): fwdtree 0.47 wall 1.509 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 5 words
2015-09-03 14:21:24.103 mathcommand[1591:483805] Pocketsphinx has detected a second of silence, concluding an utterance.
INFO: ngram_search_fwdflat.c(948): 239 words recognized (8/fr)
INFO: ngram_search_fwdflat.c(950): 3297 senones evaluated (106/fr)
INFO: ngram_search_fwdflat.c(952): 1746 channels searched (56/fr)
INFO: ngram_search_fwdflat.c(954): 354 words searched (11/fr)
INFO: ngram_search_fwdflat.c(957): 146 word transitions (4/fr)
INFO: ngram_search_fwdflat.c(960): fwdflat 0.02 CPU 0.072 xRT
INFO: ngram_search_fwdflat.c(963): fwdflat 0.02 wall 0.053 xRT
INFO: ngram_search.c(1280): lattice start node <s>.0 end node </s>.26
INFO: ngram_search.c(1306): Eliminated 3 nodes before end node
INFO: ngram_search.c(1411): Lattice has 86 nodes, 395 links
INFO: ps_lattice.c(1380): Bestpath score: -5250
INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(</s>:26:29) = 1681657
INFO: ps_lattice.c(1441): Joint P(O,S) = 1596689 P(S|O) = -84968
INFO: ngram_search.c(899): bestpath 0.00 CPU 0.012 xRT
INFO: ngram_search.c(902): bestpath 0.00 wall 0.004 xRT
2015-09-03 14:21:24.113 mathcommand[1591:483865] Pocketsphinx heard "I" with a score of (-84968) and an utterance ID of 6.
2015-09-03 14:21:24.119 mathcommand[1591:483805] The received hypothesis is I with a score of -84968 and an ID of 6
2015-09-03 14:21:24.119 mathcommand[1591:483805] hypothesisArray is [
{
"Hypothesis" : "",
"Score" : -67985
},
{
"Hypothesis" : "",
"Score" : -812856
},
{
"Hypothesis" : "",
"Score" : -813002
},
{
"Hypothesis" : "",
"Score" : -813074
},
{
"Hypothesis" : "",
"Score" : -813196
}
]
2015-09-03 14:21:24.120 mathcommand[1591:483805] hypothesisArray is ,,,,
2015-09-03 14:21:24.213 mathcommand[1591:483955] Speech detected...
2015-09-03 14:21:24.218 mathcommand[1591:483805] Pocketsphinx has detected speech.
2015-09-03 14:21:24.331 mathcommand[1591:483865] End of speech detected...
INFO: cmn_prior.c(131): cmn_prior_update: from < 49.49 0.62 -7.32 -2.56 -14.25 -5.01 -7.48 -9.15 -3.13 -2.77 -0.17 -3.15 2.67 >
INFO: cmn_prior.c(149): cmn_prior_update: to < 50.30 0.30 -7.52 -2.45 -14.36 -5.06 -7.69 -9.25 -3.07 -2.72 0.34 -2.94 2.71 >
INFO: ngram_search_fwdtree.c(1553): 181 words recognized (10/fr)
INFO: ngram_search_fwdtree.c(1555): 3494 senones evaluated (184/fr)
INFO: ngram_search_fwdtree.c(1559): 1650 channels searched (86/fr), 270 1st, 800 last
INFO: ngram_search_fwdtree.c(1562): 264 words for which last channels evaluated (13/fr)
INFO: ngram_search_fwdtree.c(1564): 105 candidate words for entering last phone (5/fr)
INFO: ngram_search_fwdtree.c(1567): fwdtree 0.17 CPU 0.869 xRT
INFO: ngram_search_fwdtree.c(1570): fwdtree 0.22 wall 1.154 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 4 words
2015-09-03 14:21:24.337 mathcommand[1591:483805] Pocketsphinx has detected a second of silence, concluding an utterance.
INFO: ngram_search_fwdflat.c(948): 135 words recognized (7/fr)
INFO: ngram_search_fwdflat.c(950): 1203 senones evaluated (63/fr)
INFO: ngram_search_fwdflat.c(952): 519 channels searched (27/fr)
INFO: ngram_search_fwdflat.c(954): 183 words searched (9/fr)
INFO: ngram_search_fwdflat.c(957): 72 word transitions (3/fr)
INFO: ngram_search_fwdflat.c(960): fwdflat 0.01 CPU 0.055 xRT
INFO: ngram_search_fwdflat.c(963): fwdflat 0.01 wall 0.049 xRT
INFO: ngram_search.c(1280): lattice start node <s>.0 end node </s>.12
INFO: ngram_search.c(1306): Eliminated 2 nodes before end node
INFO: ngram_search.c(1411): Lattice has 67 nodes, 129 links
INFO: ps_lattice.c(1380): Bestpath score: -2685
INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(</s>:12:17) = 1775616
INFO: ps_lattice.c(1441): Joint P(O,S) = 1709176 P(S|O) = -66440
INFO: ngram_search.c(899): bestpath 0.00 CPU 0.000 xRT
INFO: ngram_search.c(902): bestpath 0.00 wall 0.003 xRT
2015-09-03 14:21:24.348 mathcommand[1591:483865] Pocketsphinx heard "A" with a score of (-66440) and an utterance ID of 7.
2015-09-03 14:21:24.352 mathcommand[1591:483805] The received hypothesis is A with a score of -66440 and an ID of 7
2015-09-03 14:21:24.353 mathcommand[1591:483805] hypothesisArray is [
{
"Hypothesis" : "A",
"Score" : -23773
},
{
"Hypothesis" : "",
"Score" : -65559
},
{
"Hypothesis" : "A",
"Score" : -790154
},
{
"Hypothesis" : "A",
"Score" : -790303
},
{
"Hypothesis" : "A",
"Score" : -790332
}
]
2015-09-03 14:21:24.354 mathcommand[1591:483805] hypothesisArray is A,,A,A,A
2015-09-03 14:21:24.859 mathcommand[1591:483955] Speech detected...
2015-09-03 14:21:24.869 mathcommand[1591:483805] Pocketsphinx has detected speech.
2015-09-03 14:21:24.980 mathcommand[1591:483965] End of speech detected...
INFO: cmn_prior.c(131): cmn_prior_update: from < 50.30 0.30 -7.52 -2.45 -14.36 -5.06 -7.69 -9.25 -3.07 -2.72 0.34 -2.94 2.71 >
INFO: cmn_prior.c(149): cmn_prior_update: to < 50.87 0.49 -6.92 -2.47 -14.54 -4.87 -7.81 -9.22 -2.63 -2.63 0.40 -2.64 3.03 >
INFO: ngram_search_fwdtree.c(1553): 196 words recognized (10/fr)
INFO: ngram_search_fwdtree.c(1555): 3399 senones evaluated (179/fr)
INFO: ngram_search_fwdtree.c(1559): 1554 channels searched (81/fr), 270 1st, 840 last
INFO: ngram_search_fwdtree.c(1562): 270 words for which last channels evaluated (14/fr)
INFO: ngram_search_fwdtree.c(1564): 47 candidate words for entering last phone (2/fr)
INFO: ngram_search_fwdtree.c(1567): fwdtree 0.46 CPU 2.397 xRT
INFO: ngram_search_fwdtree.c(1570): fwdtree 0.63 wall 3.336 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 6 words
2015-09-03 14:21:24.990 mathcommand[1591:483805] Pocketsphinx has detected a second of silence, concluding an utterance.
INFO: ngram_search_fwdflat.c(948): 135 words recognized (7/fr)
INFO: ngram_search_fwdflat.c(950): 1377 senones evaluated (72/fr)
INFO: ngram_search_fwdflat.c(952): 585 channels searched (30/fr)
INFO: ngram_search_fwdflat.c(954): 213 words searched (11/fr)
INFO: ngram_search_fwdflat.c(957): 108 word transitions (5/fr)
INFO: ngram_search_fwdflat.c(960): fwdflat 0.01 CPU 0.068 xRT
INFO: ngram_search_fwdflat.c(963): fwdflat 0.01 wall 0.068 xRT
INFO: ngram_search.c(1280): lattice start node <s>.0 end node </s>.13
INFO: ngram_search.c(1306): Eliminated 0 nodes before end node
INFO: ngram_search.c(1411): Lattice has 49 nodes, 171 links
INFO: ps_lattice.c(1380): Bestpath score: -2817
INFO: ps_lattice.c(1384): Normalizer P(O) = alpha(</s>:13:17) = 1792958
INFO: ps_lattice.c(1441): Joint P(O,S) = 1721004 P(S|O) = -71954
INFO: ngram_search.c(899): bestpath 0.00 CPU 0.000 xRT
INFO: ngram_search.c(902): bestpath 0.00 wall 0.003 xRT
2015-09-03 14:21:25.000 mathcommand[1591:483965] Pocketsphinx heard "A" with a score of (-71954) and an utterance ID of 8.
2015-09-03 14:21:25.003 mathcommand[1591:483805] The received hypothesis is A with a score of -71954 and an ID of 8
2015-09-03 14:21:25.004 mathcommand[1591:483805] hypothesisArray is [
{
"Hypothesis" : "A",
"Score" : -23905
},
{
"Hypothesis" : "A A",
"Score" : -24537
},
{
"Hypothesis" : "",
"Score" : -65818
},
{
"Hypothesis" : "A",
"Score" : -790302
},
{
"Hypothesis" : "A",
"Score" : -790407
}
]
2015-09-03 14:21:25.005 mathcommand[1591:483805] hypothesisArray is A,A A,,A,A
2015-09-03 14:21:25.115 mathcommand[1591:483865] Speech detected...
2015-09-03 14:21:25.119 mathcommand[1591:483805] Pocketsphinx has detected speech.
2015-09-03 14:21:25.707 mathcommand[1591:483805] routeChangeReason : AVAudioSessionRouteChangeReasonNewDeviceAvailable
Dumping AVAudioSession settings:
- availableInputs:
- portName: MicrophoneBuiltIn
- portType: iPhone Microphone
- UID: Built-In Microphone
- portType: iPhone Microphone
- channels:
- portName: MicrophoneWired
- portType: Headset Microphone
- UID: Wired Microphone
- portType: Headset Microphone
- channels:
- category: AVAudioSessionCategoryPlayAndRecord
- categoryOptions: 13
- currentRoute.inputs:
- portName: MicrophoneWired
- portType: Headset Microphone
- UID: Wired Microphone
- portType: Headset Microphone
- channels:
- channelName: Headset Microphone
- owningPortUID: Wired Microphone
- channelNumber: 1
- channelLabel: 4294967295
- currentRoute.outputs:
- portName: Headphones
- portType: Headphones
- UID: Wired Headphones
- portType: Headphones
- channels:
- channelName: Headphones Left
- owningPortUID: Wired Headphones
- channelNumber: 1
- channelLabel: 4294967295
- channelName: Headphones Right
- owningPortUID: Wired Headphones
- channelNumber: 2
- channelLabel: 4294967295
- inputAvailable: 1
- mode: AVAudioSessionModeDefault
- IOBufferDuration: 0.092880
- inputLatency: 0.000476
- inputGain: 0.763158
- inputGainSettable: 1
- maximumInputNumberOfChannels: 1
- maximumOutputNumberOfChannels: 2
- outputNumberOfChannels: 2
- outputVolume: 0.375000
- outputLatency: 0.001633
- otherAudioPlaying: 0
- preferredIOBufferDuration: 0.128000
- preferredInputNumberOfChannels: 0
- preferredOutputNumberOfChannels: 0
- preferredSampleRate: 44100.000000
- recordPermission: 1735552628
- sampleRate: 44100.000000
- secondaryAudioShouldBeSilencedHint: 0
- shouldGroupAccessibilityChildren: 0
2015-09-03 14:21:25.716 mathcommand[1591:483805] Audio route has changed for the following reason:
2015-09-03 14:21:25.721 mathcommand[1591:483805] A new device is available
2015-09-03 14:21:25.721 mathcommand[1591:483805] The audio input is available
2015-09-03 14:21:25.722 mathcommand[1591:483965] A request has been made to start a listening session using startListeningWithLanguageModelAtPath:dictionaryAtPath:acousticModelAtPath:languageModelIsJSGF:, however, there is already a listening session in progress which has not been stopped. Please stop this listening session first with [[OEPocketsphinxController sharedInstance] stopListening]; and wait to receive the OEEventsObserver callback pocketsphinxDidStopListening before starting a new session. You can still change models in the existing session by using OEPocketsphinxController's method changeLanguageModelToFile:withDictionary:
2015-09-03 14:21:25.724 mathcommand[1591:483805] This is a case for performing a route change. Before the route change, the current route was HeadphonesMicrophoneWired. Performing route change.
2015-09-03 14:21:25.734 mathcommand[1591:483805] Audio route change. The new audio route is HeadphonesMicrophoneWired
2015-09-03 14:21:25.735 mathcommand[1591:483805] Stopping listening.
2015-09-03 14:21:27.162 mathcommand[1591:483805] 14:21:27.161 ERROR: [0x37a9f9dc] AVAudioSession.mm:646: -[AVAudioSession setActive:withOptions:error:]: Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session.
2015-09-03 14:21:27.163 mathcommand[1591:483805] Error: couldn't set session inactive.: '!act'
2015-09-03 14:21:27.172 mathcommand[1591:483805] Error: there was a problem tearing down the audio session: Error Domain=NSOSStatusErrorDomain Code=560030580 "The operation couldn’t be completed. (OSStatus error 560030580.)".
2015-09-03 14:21:27.173 mathcommand[1591:483805] Unable to stop listening because because an utterance is still in progress; trying again.
2015-09-03 14:21:27.224 mathcommand[1591:483805] Attempting to stop an unstopped utterance so listening can stop.
INFO: cmn_prior.c(131): cmn_prior_update: from < 50.87 0.49 -6.92 -2.47 -14.54 -4.87 -7.81 -9.22 -2.63 -2.63 0.40 -2.64 3.03 >
INFO: cmn_prior.c(149): cmn_prior_update: to < 51.13 0.71 -6.81 -2.38 -14.46 -4.81 -7.81 -9.21 -2.55 -2.53 0.46 -2.45 3.02 >
INFO: ngram_search_fwdtree.c(1553): 49 words recognized (5/fr)
INFO: ngram_search_fwdtree.c(1555): 807 senones evaluated (90/fr)
INFO: ngram_search_fwdtree.c(1559): 389 channels searched (43/fr), 90 1st, 261 last
INFO: ngram_search_fwdtree.c(1562): 89 words for which last channels evaluated (9/fr)
INFO: ngram_search_fwdtree.c(1564): 9 candidate words for entering last phone (1/fr)
INFO: ngram_search_fwdtree.c(1567): fwdtree 0.45 CPU 5.013 xRT
INFO: ngram_search_fwdtree.c(1570): fwdtree 2.23 wall 24.733 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 1 words
INFO: ngram_search_fwdflat.c(948): 30 words recognized (3/fr)
INFO: ngram_search_fwdflat.c(950): 114 senones evaluated (13/fr)
INFO: ngram_search_fwdflat.c(952): 48 channels searched (5/fr)
INFO: ngram_search_fwdflat.c(954): 48 words searched (5/fr)
INFO: ngram_search_fwdflat.c(957): 8 word transitions (0/fr)
INFO: ngram_search_fwdflat.c(960): fwdflat 0.00 CPU 0.026 xRT
INFO: ngram_search_fwdflat.c(963): fwdflat 0.00 wall 0.025 xRT
INFO: ngram_search_fwdtree.c(432): TOTAL fwdtree 4.96 CPU 1.484 xRT
INFO: ngram_search_fwdtree.c(435): TOTAL fwdtree 12.19 wall 3.648 xRT
INFO: ngram_search_fwdflat.c(176): TOTAL fwdflat 0.15 CPU 0.045 xRT
INFO: ngram_search_fwdflat.c(179): TOTAL fwdflat 0.12 wall 0.035 xRT
INFO: ngram_search.c(307): TOTAL bestpath 0.03 CPU 0.008 xRT
INFO: ngram_search.c(310): TOTAL bestpath 0.02 wall 0.006 xRT
2015-09-03 14:21:27.234 mathcommand[1591:483805] No longer listening.
2015-09-03 14:21:27.235 mathcommand[1591:483805] Pocketsphinx has stopped listening.
2015-09-03 14:21:27.236 mathcommand[1591:483965] A request has been made to start a listening session using startListeningWithLanguageModelAtPath:dictionaryAtPath:acousticModelAtPath:languageModelIsJSGF:, however, there is already a listening session in progress which has not been stopped. Please stop this listening session first with [[OEPocketsphinxController sharedInstance] stopListening]; and wait to receive the OEEventsObserver callback pocketsphinxDidStopListening before starting a new session. You can still change models in the existing session by using OEPocketsphinxController's method changeLanguageModelToFile:withDictionary:
2015-09-03 14:21:27.253 mathcommand[1591:483805] 14:21:27.253 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:111: GetProperty: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 14:21:27.253 mathcommand[1591:483805] 14:21:27.253 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:124: GetProperty_DefaultToZero: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 14:21:27.258 mathcommand[1591:483805] routeChangeReason : AVAudioSessionRouteChangeReasonCategoryChange
Dumping AVAudioSession settings:
- availableInputs:
- portName: MicrophoneBuiltIn
- portType: iPhone Microphone
- UID: Built-In Microphone
- portType: iPhone Microphone
- channels:
- portName: MicrophoneWired
- portType: Headset Microphone
- UID: Wired Microphone
- portType: Headset Microphone
- channels:
- category: AVAudioSessionCategoryPlayAndRecord
- categoryOptions: 13
- currentRoute.inputs:
- currentRoute.outputs:
- portName: Headphones
- portType: Headphones
- UID: Wired Headphones
- portType: Headphones
- channels:
- channelName: Headphones Left
- owningPortUID: Wired Headphones
- channelNumber: 1
- channelLabel: 4294967295
- channelName: Headphones Right
- owningPortUID: Wired Headphones
- channelNumber: 2
- channelLabel: 4294967295
- inputAvailable: 1
- mode: AVAudioSessionModeDefault
- IOBufferDuration: 0.092880
- inputLatency: 0.000000
- inputGain: 1.000000
- inputGainSettable: 0
- maximumInputNumberOfChannels: 0
- maximumOutputNumberOfChannels: 2
- outputNumberOfChannels: 2
- outputVolume: 0.375000
- outputLatency: 0.001633
- otherAudioPlaying: 0
- preferredIOBufferDuration: 0.128000
- preferredInputNumberOfChannels: 0
- preferredOutputNumberOfChannels: 0
- preferredSampleRate: 44100.000000
- recordPermission: 1735552628
- sampleRate: 44100.000000
- secondaryAudioShouldBeSilencedHint: 0
- shouldGroupAccessibilityChildren: 0
2015-09-03 14:21:27.260 mathcommand[1591:483805] Audio route has changed for the following reason:
2015-09-03 14:21:27.260 mathcommand[1591:483805] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
2015-09-03 14:21:27.263 mathcommand[1591:483805] This is not a case in which OpenEars notifies of a route change. At the close of this function, the new audio route is ---Headphones---. The previous route before changing to this route was <AVAudioSessionRouteDescription: 0x175429d0,
inputs = (
"<AVAudioSessionPortDescription: 0x1752b870, type = MicrophoneWired; name = Headset Microphone; UID = Wired Microphone; selectedDataSource = (null)>"
);
outputs = (
"<AVAudioSessionPortDescription: 0x17300080, type = Headphones; name = Headphones; UID = Wired Headphones; selectedDataSource = (null)>"
)>.
[PocketSphinx] Stop Listening
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 65)
2015-09-03 14:21:33.837 mathcommand[1591:483805] 14:21:33.837 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:111: GetProperty: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 14:21:33.837 mathcommand[1591:483805] 14:21:33.837 ERROR: [0x37a9f9dc] AVAudioSessionUtilities.h:124: GetProperty_DefaultToZero: AudioSessionGetProperty ('cilt') failed with error: '!siz'
2015-09-03 14:21:33.841 mathcommand[1591:483805] routeChangeReason : AVAudioSessionRouteChangeReasonOldDeviceUnavailable
Dumping AVAudioSession settings:
- availableInputs:
- portName: MicrophoneBuiltIn
- portType: iPhone Microphone
- UID: Built-In Microphone
- portType: iPhone Microphone
- channels:
- category: AVAudioSessionCategoryPlayAndRecord
- categoryOptions: 13
- currentRoute.inputs:
- currentRoute.outputs:
- portName: Speaker
- portType: Speaker
- UID: Speaker
- portType: Speaker
- channels:
- channelName: Speaker
- owningPortUID: Speaker
- channelNumber: 1
- channelLabel: 4294967295
- inputAvailable: 1
- mode: AVAudioSessionModeDefault
- IOBufferDuration: 0.092880
- inputLatency: 0.000000
- inputGain: 1.000000
- inputGainSettable: 0
- maximumInputNumberOfChannels: 0
- maximumOutputNumberOfChannels: 1
- outputNumberOfChannels: 1
- outputVolume: 0.437500
- outputLatency: 0.013356
- otherAudioPlaying: 0
- preferredIOBufferDuration: 0.128000
- preferredInputNumberOfChannels: 0
- preferredOutputNumberOfChannels: 0
- preferredSampleRate: 44100.000000
- recordPermission: 1735552628
- sampleRate: 44100.000000
- secondaryAudioShouldBeSilencedHint: 0
- shouldGroupAccessibilityChildren: 0
2015-09-03 14:21:33.843 mathcommand[1591:483805] Audio route has changed for the following reason:
2015-09-03 14:21:33.844 mathcommand[1591:483805] An old device became unavailable
2015-09-03 14:21:33.844 mathcommand[1591:483805] The audio input has become unavailable
2015-09-03 14:21:33.844 mathcommand[1591:483805] [[OEPocketsphinxController sharedInstance] stopListening] was called while listening was not in progress. This is not necessarily an exception, just a notification that that a request to stop a listening session was ignored because there was no active listening session to stop.
2015-09-03 14:21:33.844 mathcommand[1591:483805] the audio input is now unavailable.
2015-09-03 14:21:33.845 mathcommand[1591:483805] This is a case for performing a route change. Before the route change, the current route was Speaker. Performing route change.
2015-09-03 14:21:33.846 mathcommand[1591:483805] Audio route change. The new audio route is Speaker
2015-09-03 14:21:33.846 mathcommand[1591:483805] [[OEPocketsphinxController sharedInstance] stopListening] was called while listening was not in progress. This is not necessarily an exception, just a notification that that a request to stop a listening session was ignored because there was no active listening session to stop.
2015-09-03 14:21:33.851 mathcommand[1591:483866] A request has been made to start a listening session using startListeningWithLanguageModelAtPath:dictionaryAtPath:acousticModelAtPath:languageModelIsJSGF:, however, there is already a listening session in progress which has not been stopped. Please stop this listening session first with [[OEPocketsphinxController sharedInstance] stopListening]; and wait to receive the OEEventsObserver callback pocketsphinxDidStopListening before starting a new session. You can still change models in the existing session by using OEPocketsphinxController's method changeLanguageModelToFile:withDictionary:
Again, I’m dumping the full audio settings at every route change.
I can see that OpenEars is using a different category than Unity was: AVAudioSessionCategoryPlayAndRecord.
Another thing was the sample rate: my app started at 24000, and then changed to 44100 after plugging the headphones.
I didn’t notice any other settings being changed during my dumps (I may be missing something though).
I have then proceeded to set the sample rate to 44100 from the start of my app to see if anything would change, but the problem still remained. The logs were all the same.
I think the key here is this error:
2015-09-03 14:21:27.162 mathcommand[1591:483805] 14:21:27.161 ERROR: [0x37a9f9dc] AVAudioSession.mm:646: -[AVAudioSession setActive:withOptions:error:]: Deactivating an audio session that has running I/O. All I/O should be stopped or paused prior to deactivating the audio session.
2015-09-03 14:21:27.163 mathcommand[1591:483805] Error: couldn't set session inactive.: '!act'
2015-09-03 14:21:27.172 mathcommand[1591:483805] Error: there was a problem tearing down the audio session: Error Domain=NSOSStatusErrorDomain Code=560030580 "The operation couldn’t be completed. (OSStatus error 560030580.)".
I have even tried stopping all my audio playback before unplugging the headphones, but I always get this error during stopListening().
Could this be the reason of the StopListening() failure?
One more thing I should add: With OpenEars 1.x StopListening() used to work well, but since upgrading to 2.x I’ve been having these issues related to anything concerning StopListening() calls. I thought leaving my app free of StopListening() calls would solve the issue, but I guess I was wrong.