PDA

View Full Version : Crew chief doesn't listen, NAudio errors



samkatakouzinosracing
29-10-2019, 11:41
My Crew Chief would respond to me even though it was configured to hear the keyword 'Chief'.
I changed the keyword to hear to "Crew Chief".
It comes up with the following exception.
Please help.


22:35:37.344 : Gave up waiting for voice command, now waiting for trigger word Crew Chief
22:35:47.727 : Heard keyword Crew Chief, waiting for command confidence 0.9594625
22:35:47.887 : Opened channel - waiting for speech
22:35:47.887 : Getting audio from default device
22:35:47.893 : Exception Unable to cast COM object of type 'System.__ComObject' to interface type 'NAudio.CoreAudioApi.Interfaces.IMMDevice'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{D666063F-1587-4E43-81F1-B948E807363F}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). playing sound C:\Users\samka_urshi1t\AppData\Local\CrewChiefV4\s ounds\fx\listen_start_sound.wav stack trace at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Obj ect objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)
at NAudio.CoreAudioApi.Interfaces.IMMDevice.Activate( Guid& id, ClsCtx clsCtx, IntPtr activationParams, Object& interfacePointer)
at NAudio.CoreAudioApi.MMDevice.GetAudioClient()
at NAudio.Wave.WasapiOut..ctor(MMDevice device, AudioClientShareMode shareMode, Boolean useEventSync, Int32 latency)
at CrewChiefV4.Audio.NAudioOutWasapi..ctor() in C:\projects\crewchief_c_sharp\CrewChiefV4\CrewChie fV4\Audio\NAudioOut.cs:line 75
at CrewChiefV4.Audio.NAudioOut.CreateOutput() in C:\projects\crewchief_c_sharp\CrewChiefV4\CrewChie fV4\Audio\NAudioOut.cs:line 18
at CrewChiefV4.Audio.SingleSound.LoadNAudioWaveOut() in C:\projects\crewchief_c_sharp\CrewChiefV4\CrewChie fV4\Audio\Sounds.cs:line 1593
at CrewChiefV4.Audio.SingleSound.LoadAndCacheSound() in C:\projects\crewchief_c_sharp\CrewChiefV4\CrewChie fV4\Audio\Sounds.cs:line 1373
at CrewChiefV4.Audio.SingleSound.PlayNAudio(Boolean isListenStartBeep) in C:\projects\crewchief_c_sharp\CrewChiefV4\CrewChie fV4\Audio\Sounds.cs:line 1538
22:35:52.894 : Gave up waiting for voice command, now waiting for trigger word Crew Chief

samkatakouzinosracing
29-10-2019, 13:29
This issue stops when "nAudio Output Interface Type" = WaveOut
This issue starts when "nAudio Output Interface Type" = WASAPI

Do I need to reinstall 'WASAPI' somehow?

mr_belowski
29-10-2019, 14:09
unlikely... it sounds like a bug in the Crew Chief code, i'll take a look