wfp

Forum Replies Created

Viewing 1 post (of 1 total)

  • Author
    Posts
  • in reply to: Open Ears/Rapid Ears 2.0 + Bluetooth #1030112
    wfp
    Participant

    I am having a problem establishing a connection with a Bluetooth 4.0 device (an Electrodragon ED-8635 development kit, using the CSR8635) and OpenEars 2.501. Key points:
    1. The Bluetooth device pairs and works fine with the iOS app “Voice Memos”, and the 3rd-party app, “SuperNote”, both record and playback.
    2. The same Bluetooth device does not work with OpenEars 2.501, the OpenEarsSampleApp, neither record (the Pocketsphinx Input level never changes from -120) nor playback.
    3. The Bluetooth device is paired, as evidenced by both the iPhone “Settings” (specifying the 8635), the status lights on the Bluetooth device that indicate pairing and the OpenEarsSampleApp “outputs… SPK-8635-B” (in logs, below).
    4. The logs (below) show an error message: OpenEarsSampleApp[261:14128] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    5. iOS version = 9.3
    6. The OpenEarsSampleApp works correctly with another Bluetooth headset, send and receive.

    Suggestions?
    If it is recommended to re-compile the Framework, as suggested to morchella, is there a link to instructions?
    Thank you in advance.
    Warren

      LOGS

    :
    Welcome to the OpenEars sample project. This project understands the words:
    BACKWARD,
    CHANGE,
    FORWARD,
    GO,
    LEFT,
    MODEL,
    RIGHT,
    TURN,
    and if you say “CHANGE MODEL” it will switch to its dynamically-generated model which understands the words:
    CHANGE,
    MODEL,
    MONDAY,
    TUESDAY,
    WEDNESDAY,
    THURSDAY,
    FRIDAY,
    SATURDAY,
    SUNDAY,
    QUIDNUNC
    2016-04-20 16:28:26.259 OpenEarsSampleApp[278:36667] Attempting to start listening session from startListeningWithLanguageModelAtPath:
    2016-04-20 16:28:26.264 OpenEarsSampleApp[278:36667] User gave mic permission for this app.
    2016-04-20 16:28:26.264 OpenEarsSampleApp[278:36667] setSecondsOfSilence wasn’t set, using default of 0.700000.
    2016-04-20 16:28:26.265 OpenEarsSampleApp[278:36667] Successfully started listening session from startListeningWithLanguageModelAtPath:
    2016-04-20 16:28:26.265 OpenEarsSampleApp[278:36717] Starting listening.
    2016-04-20 16:28:26.265 OpenEarsSampleApp[278:36717] about to set up audio session
    2016-04-20 16:28:26.266 OpenEarsSampleApp[278:36717] Creating audio session with default settings.
    2016-04-20 16:28:26.323 OpenEarsSampleApp[278:36726] Audio route has changed for the following reason:
    2016-04-20 16:28:26.326 OpenEarsSampleApp[278:36726] There was a category change. The new category is AVAudioSessionCategoryPlayAndRecord
    2016-04-20 16:28:26.332 OpenEarsSampleApp[278:36726] This is not a case in which OpenEars notifies of a route change. At the close of this function, the new audio route is —BluetoothHFPBluetoothHFP—. The previous route before changing to this route was <AVAudioSessionRouteDescription: 0x1476acf50,
    inputs = (
    “<AVAudioSessionPortDescription: 0x147616700, type = MicrophoneBuiltIn; name = iPad Microphone; UID = Built-In Microphone; selectedDataSource = Front>”
    );
    outputs = (
    “<AVAudioSessionPortDescription: 0x147695040, type = BluetoothA2DPOutput; name = SPK-8635-B; UID = 00:00:01:04:15:54-tacl; selectedDataSource = (null)>”
    )>.
    2016-04-20 16:28:26.729 OpenEarsSampleApp[278:36747] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-04-20 16:28:26.857 OpenEarsSampleApp[278:36747] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-04-20 16:28:26.985 OpenEarsSampleApp[278:36747] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-04-20 16:28:27.113 OpenEarsSampleApp[278:36747] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-04-20 16:28:27.241 OpenEarsSampleApp[278:36747] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-04-20 16:28:27.369 OpenEarsSampleApp[278:36747] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-04-20 16:28:27.497 OpenEarsSampleApp[278:36747] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-04-20 16:28:27.625 OpenEarsSampleApp[278:36747] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-04-20 16:28:27.753 OpenEarsSampleApp[278:36747] Audio Unit render error: kAudioUnitErr_CannotDoInCurrentContext
    2016-04-20 16:28:27.758 OpenEarsSampleApp[278:36717] done starting audio unit
    INFO: pocketsphinx.c(145): Parsed model-specific feature parameters from /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/feat.params
    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
    -ascale 20.0 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 40
    -compallsen no no
    -debug 0
    -dict /var/mobile/Containers/Data/Application/3FBF8C4D-AB0F-4426-B714-9F60C57C9335/Library/Caches/FirstOpenEarsDynamicLanguageModel.dic
    -dictcase no no
    -dither no no
    -doublebw no no
    -ds 1 1
    -fdict /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/noisedict
    -feat 1s_c_d_dd 1s_c_d_dd
    -featparams /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/feat.params
    -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 /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.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 22
    -lm /var/mobile/Containers/Data/Application/3FBF8C4D-AB0F-4426-B714-9F60C57C9335/Library/Caches/FirstOpenEarsDynamicLanguageModel.DMP
    -lmctl
    -lmname
    -logbase 1.0001 1.000100e+00
    -logfn
    -logspec no no
    -lowerf 133.33334 1.300000e+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 /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/mdef
    -mean /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/means
    -mfclogdir
    -min_endfr 0 0
    -mixw
    -mixwfloor 0.0000001 1.000000e-07
    -mllr
    -mmap yes yes
    -ncep 13 13
    -nfft 512 512
    -nfilt 40 25
    -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 /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/sendump
    -senlogdir
    -senmgau
    -silprob 0.005 5.000000e-03
    -smoothspec no no
    -svspec 0-12/13-25/26-38
    -tmat /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/transition_matrices
    -tmatfloor 0.0001 1.000000e-04
    -topn 4 4
    -topn_beam 0 0
    -toprule
    -transform legacy dct
    -unit_area yes yes
    -upperf 6855.4976 6.800000e+03
    -uw 1.0 1.000000e+00
    -vad_postspeech 50 69
    -vad_prespeech 20 10
    -vad_startspeech 10 10
    -vad_threshold 2.0 2.000000e+00
    -var /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/variances
    -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: 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(164): Using subvector specification 0-12/13-25/26-38
    INFO: mdef.c(518): Reading model definition: /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.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: /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/mdef
    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: /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/transition_matrices
    INFO: acmod.c(117): Attempting to use PTM computation module
    INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/means
    INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
    INFO: ms_gauden.c(294): 512×13
    INFO: ms_gauden.c(294): 512×13
    INFO: ms_gauden.c(294): 512×13
    INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/variances
    INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
    INFO: ms_gauden.c(294): 512×13
    INFO: ms_gauden.c(294): 512×13
    INFO: ms_gauden.c(294): 512×13
    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(119): Attempting to use semi-continuous computation module
    INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/means
    INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
    INFO: ms_gauden.c(294): 512×13
    INFO: ms_gauden.c(294): 512×13
    INFO: ms_gauden.c(294): 512×13
    INFO: ms_gauden.c(198): Reading mixture gaussian parameter: /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.app/AcousticModelEnglish.bundle/variances
    INFO: ms_gauden.c(292): 1 codebook, 3 feature, size:
    INFO: ms_gauden.c(294): 512×13
    INFO: ms_gauden.c(294): 512×13
    INFO: ms_gauden.c(294): 512×13
    INFO: ms_gauden.c(354): 0 variance values floored
    INFO: s2_semi_mgau.c(904): Loading senones from dump file /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.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 4113 * 32 bytes (128 KiB) for word entries
    INFO: dict.c(333): Reading main dictionary: /var/mobile/Containers/Data/Application/3FBF8C4D-AB0F-4426-B714-9F60C57C9335/Library/Caches/FirstOpenEarsDynamicLanguageModel.dic
    INFO: dict.c(213): Allocated 0 KiB for strings, 0 KiB for phones
    INFO: dict.c(336): 8 words read
    INFO: dict.c(358): Reading filler dictionary: /var/containers/Bundle/Application/7A0C466C-841E-469C-B194-A76D1FDA0B9D/OpenEarsSampleApp.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 51152 bytes (49 KiB) for word-final triphones
    INFO: dict2pid.c(196): Allocated 51152 bytes (49 KiB) for single-phone word triphones
    INFO: ngram_model_trie.c(424): Trying to read LM in bin format
    INFO: ngram_model_trie.c(457): Header doesn’t match
    INFO: ngram_model_trie.c(180): Trying to read LM in arpa format
    INFO: ngram_model_trie.c(71): No \data\ mark in LM file
    INFO: ngram_model_trie.c(537): Trying to read LM in DMP format
    INFO: ngram_model_trie.c(632): ngrams 1=10, 2=16, 3=8
    INFO: lm_trie.c(317): Training quantizer
    INFO: lm_trie.c(323): Building LM trie
    INFO: ngram_search_fwdtree.c(99): 8 unique initial diphones
    INFO: ngram_search_fwdtree.c(148): 0 root, 0 non-root channels, 10 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, 10 single-phone words
    INFO: ngram_search_fwdtree.c(326): after: max nonroot chan increased to 145
    INFO: ngram_search_fwdtree.c(339): after: 8 root, 17 non-root channels, 9 single-phone words
    INFO: ngram_search_fwdflat.c(157): fwdflat: min_ef_width = 4, max_sf_win = 25
    2016-04-20 16:28:27.926 OpenEarsSampleApp[278:36717] Restoring SmartCMN value of 6.149658
    2016-04-20 16:28:27.927 OpenEarsSampleApp[278:36717] Listening.
    2016-04-20 16:28:27.928 OpenEarsSampleApp[278:36717] Project has these words or phrases in its dictionary:
    BACKWARD
    CHANGE
    FORWARD
    GO
    LEFT
    MODEL
    RIGHT
    TURN

Viewing 1 post (of 1 total)