- Home /
Unity with azure speech sdk for Android and iOS
When i am using the azure speech sdk on unity, when i test it on the computer it works fine, i can speak, it recognizes and responds in speech all normal.
When I build for Android and iOS it doesn't work. Both on iOS and Android it advances the recognition points without trying to recognize anything, if I just put a simple speech coming from the sdk it doesn't give anything either.
Can anyone who has used this SDK for Unity - mobile, please help me?
On iOS it gives me this in the console:
CANCELED: Did you set the speech resource key and region values?speakTest:OutputSpeechRecognitionResult(SpeechRecognitionResult)d__10:MoveNext()
CANCELED: ErrorDetails=0x15 (SPXERR_MIC_ERROR)
[CALL STACK BEGIN]
3 UnityFramework 0x0000000109336810 ZN9Microsoft17CognitiveServices6Speech4Impl22CSpxMicrophonePumpBase9StartPumpENSt3_110shared_ptrINS2_18ISpxAudioProcessorEEE + 756
4 UnityFramework 0x000000010931c010 ZN9Microsoft17CognitiveServices6Speech4Impl25ISpxDelegateAudioPumpImpl9StartPumpENSt3_110shared_ptrINS2_18ISpxAudioProcessorEEE + 84
5 UnityFramework 0x000000010932cc0c ZN9Microsoft17CognitiveServices6Speech4Impl27CSpxAudioPumpDelegateHelperINS2_29CSpxDelegateToSharedPtrHelperINS2_13ISpxAudioPumpELb0EEEE17DelegateStartPumpENSt3_110shared_ptrINS2_18ISpxAudioProcessorEEE + 220
6 UnityFramework 0x0000000109325e1c _ZN9Microsoft17CognitiveServices6Speech4Impl41ISpxAudioSourceControlAdaptsAudioPumpImplINS2_32CSpxMicrophoneAudioSourceAdapterEE9StartPumpEv + 304
7 UnityFramework 0x0000000109325664 ZN9Microsoft17CognitiveServices6Speech4Impl41ISpxAudioSourceControlAdaptsAudioPumpImplINS2_32CSpxMicrophoneAudioSourceAdapterEE10StartAudioENSt3_110shared_ptrINS2_12ISpxNotifyMeIJRKNS7_INS2_15ISpxAudioSourceEEERKNS7_INS2_14ISpxBufferDataEEEEEEEE + 184
8 UnityFramework 0x00000001093221d4 ZN9Microsoft17CognitiveServices6Speech4Impl34ISpxAudioSourceControlDelegateImplINS2_29CSpxDelegateToSharedPtrHelperINS2_22ISpxAudioSourceControlELb0EEEE10StartAudioENSt3_110shared_ptrINS2_12ISpxNotifyMeIJRKNS9_INS2_15ISpxAudioSourceEEERKNS9_INS2_14ISpxBufferDataEEEEEEEE + 220
9 UnityFramework 0x00000001094a41f4 ZN9Microsoft17CognitiveServices6Speech4Impl28CSpxSessionAudioSourceHelperINS2_20CSpxAudioSessionShimEE16StartAudioSourceERKNSt3_110shared_ptrINS2_15ISpxAudioSourceEEE + 504
10 UnityFramework 0x00000001094a0dbc _ZN9Microsoft17CognitiveServices6Speech4Impl28CSpxSessionAudioSourceHelperINS2_20CSpxAudioSessionShimEE22EnsureStartAudioSourceEv + 124
11 UnityFramework 0x0000000109408dcc ZN9Microsoft17CognitiveServices6Speech4Impl22CSpxAudioStreamSession14StartAudioPumpENS3_15RecognitionKindENSt3_110shared_ptrINS2_12ISpxKwsModelEEE + 2300
12 UnityFramework 0x0000000109406760 ZN9Microsoft17CognitiveServices6Speech4Impl22CSpxAudioStreamSession16StartRecognizingENS3_15RecognitionKindENSt3_110shared_ptrINS2_12ISpxKwsModelEEE + 616
13 UnityFramework 0x0000000109406098 ZN9Microsoft17CognitiveServices6Speech4Impl22CSpxAudioStreamSession18RecognizeOnceAsyncERKNSt3_110shared_ptrINS3_9OperationEEENS5_INS2_12ISpxKwsModelEEE + 464
14 UnityFramework 0x0000000109424d4c _ZN9Microsoft17CognitiveServices6Speech4Impl22CSpxAudioStreamSession9OperationC2ENS3_15RecognitionKindE + 1040
15 UnityFramework 0x0000000109420af4 ZN9Microsoft17CognitiveServices6Speech4Impl7SpxTermINS2_21ISpxAudioStreamReaderEEEvRKNSt3_110shared_ptrIT_EE + 2004
16 UnityFramework 0x0000000109354c28 ZNSt3_113packaged_taskIFvvEEclEv + 96
17 UnityFramework 0x0000000109354bb4 _ZN9Microsoft17CognitiveServices6Speech4Impl17CSpxThreadService4Task3RunEv + 32
18 UnityFramework 0x00000001093566fc ZN9Microsoft17CognitiveServices6Speech4Impl17CSpxThreadService6Thread7RunTaskINSt3_14pairINS6_10shared_ptrINS3_4TaskEEENS6_7promiseIbEEEEEEvRNS6_11unique_lockINS6_5mutexEEERNS6_5dequeIT_NS6_9allocatorISJ_EEEE + 332
19 UnityFramework 0x0000000109354d8c ZN9Microsoft17CognitiveServices6Speech4Impl17CSpxThreadService6Thread10WorkerLoopENSt3_110shared_ptrIS4_EE + 216
[CALL STACK END]
Your answer
Follow this Question
Related Questions
how can i get same speed when i moving a objects? 1 Answer
Speech recognition in Unity 5 for Android. (Yes! Again! Please! Help!) 0 Answers
DictationRecognizer stops working after a random period of time 0 Answers
Reference does not stick -1 Answers
What is the current state of voice recognition building for xbox one with Unity? 0 Answers