Results 1 to 3 of 3

Thread: Crew chief doesn't listen, NAudio errors

  1. #1

    Crew chief doesn't listen, NAudio errors

    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.

    Code:
    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\sounds\fx\listen_start_sound.wav stack trace    at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object 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\CrewChiefV4\Audio\NAudioOut.cs:line 75
       at CrewChiefV4.Audio.NAudioOut.CreateOutput() in C:\projects\crewchief_c_sharp\CrewChiefV4\CrewChiefV4\Audio\NAudioOut.cs:line 18
       at CrewChiefV4.Audio.SingleSound.LoadNAudioWaveOut() in C:\projects\crewchief_c_sharp\CrewChiefV4\CrewChiefV4\Audio\Sounds.cs:line 1593
       at CrewChiefV4.Audio.SingleSound.LoadAndCacheSound() in C:\projects\crewchief_c_sharp\CrewChiefV4\CrewChiefV4\Audio\Sounds.cs:line 1373
       at CrewChiefV4.Audio.SingleSound.PlayNAudio(Boolean isListenStartBeep) in C:\projects\crewchief_c_sharp\CrewChiefV4\CrewChiefV4\Audio\Sounds.cs:line 1538
    22:35:52.894 : Gave up waiting for voice command, now waiting for trigger word Crew Chief

  2. #2
    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?

  3. #3
    Crew Chief Mega Corp CEO mr_belowski's Avatar
    Join Date
    Feb 2017
    Posts
    1,815
    unlikely... it sounds like a bug in the Crew Chief code, i'll take a look

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •