Windows 10: USB Headset Microphone Mute Button not Synchronized with System Device Driver Microphone...

Discus and support USB Headset Microphone Mute Button not Synchronized with System Device Driver Microphone... in Windows 10 Drivers and Hardware to solve the problem; I have a Dell Inspiron 3650 desktop running Microsoft Windows 10 Pro Version 10.0.18363 Build 18363. I am trying to use NAudio to mute and unmute my... Discussion in 'Windows 10 Drivers and Hardware' started by Larry G. Robertson, Feb 29, 2020.

  1. USB Headset Microphone Mute Button not Synchronized with System Device Driver Microphone...


    I have a Dell Inspiron 3650 desktop running Microsoft Windows 10 Pro Version 10.0.18363 Build 18363.


    I am trying to use NAudio to mute and unmute my USB headset microphone programmatically using MicrophoneDevice.AudioEndpointVolume.Mute = True or MicrophoneDevice.AudioEndpointVolume.Mute = False


    I ran into the problem of the USB device not synchronized to the system device driver. I used to be able to use the Win32 API back in the Windows XP days and don't recall this being a problem. When Windows 7 came out the entire Mixer design for Windows took a turn for worst, Direct-X Mixer functionality was gone forever and this problem was the result.


    THE QUESTION:

    Can anyone give an example in Visual Studio 2017 or 2019 C# or VB .net that can make the USB Mic mute button and the OS mute checkbox operate in sync in both directions. Remember, that old VB6 API code related to the microphone does not work nor does it apply to the Windows 7-10 OS and device driver designs.


    THE SYMPTOM:

    I have three different brands of USB Headsets with Microphone and Mute ButtonWired and Wireless all with the same behavior as follows:

    1. If the Mute checkbox shown below is UNCHECKED and the microphone's mute button on the headset is toggled on and off the microphone is muted by the headset's microphone internal circuitry which does successfully mute the sound to the record capture.
    2. If the Mute checkbox shown below is CHECKED then the Headset's Microphone Mute button no effect what so ever.

    NOTE: There isn't any Win32 API solution that I can figure out or find to solve this sync problem and apparently NAudio's solution can not address the problem either because the Windows API in it's redesign of the mixer never considered this scenario of bidirectional syncing between the USB device driver and the OS.

    I will try to give an example of how this can be an unsolvable problem the best I can. I am working on a voice driven program for the blind and I can't expect them to be able to turn off a checkbox in settings no more than I can have a visual queue showing them if the microphone is on or off. The only feedback I can give is sound effects and the computer talking to them.


    Functional Example:

    I am using System.Speech.Synthesis, System.Speech.Recognition and NAudio.


    All of my code works I just need sync the mute. Consider the code below simplified.

    1. System settings have the mute checkbox unchecked, headset mute button is muted.
    2. User un-mutes the microphone with the headset switch.
    3. User speaks into the microphone and says "Stop Dictation"
    4. The user forgets to quickly mute the microphone with the headset's mute button so that the SpeechRecognition_SpeechRecognized event does not falsely trigger based on the headset's speaker volume being so loud that the microphone picks up the computer talking.
    5. The code wants to mute the microphone while the computer is playing a sound effect and speaking to compensate for the possibility of #4 above.
    6. The code wants to keep the microphone muted until the user un-mutes the microphone with the headset switch.
    7. The code makes it's sound effect and tells the user that the dictation has stopped.
    8. The user no longer has control with the headset's mute button unless he/she manually turns off the mute checkbox in settings.



    Private Sub SpeechRecognition_SpeechRecognizedsender As Object, e As SpeechRecognizedEventArgs Handles SpeechRecognition.SpeechRecognized MicrophoneDevice.AudioEndpointVolume.Mute = True My.Computer.Audio.PlaySoundsPath & "speaking.wav", AudioPlayMode.Background ModuleSystemVoice.Speak"Dictation has been stopped" & e.Result.Text, 3 ''''''' If you uncomment the line below the microphone is unconditionally un-muted until

    ''''''' the user mutes it with the headset's mute button but in the mean time background

    '''''''noise in the room could falsely trigger another SpeechRecognition_SpeechRecognized

    '''''''event. '''''''MicrophoneDevice.AudioEndpointVolume.Mute = False End Sub





    RELATED IMAGES:

    USB Headset Microphone Mute Button not Synchronized with System Device Driver Microphone... 93e0f747-9808-49e9-a0a3-e87e3dd09610?upload=true.jpg USB Headset Microphone Mute Button not Synchronized with System Device Driver Microphone... 39106284-6f3a-47be-ad1f-6a7a88a64e78?upload=true.jpg

    :)
     
    Larry G. Robertson, Feb 29, 2020
    #1

  2. Headset Microphones Do Not Have Programmatically Detectable Microphone Mute from Headset Mute Button

    I have a couple of gaming headsets both with a mute button. If I go into Windows 10 Sound Manager I can see the headset speakers and microphone and all have a mute checkbox.

    I have written a program in C++ that allows me to mute or un-mute the microphone as seen in the Sound Manager and the checkbox is turned on and off successfully coinciding with my C++ program settings.

    This setting is overriding the Mute button on the headset and I can see no way to detect the user muting the microphone via the headset's mute button. I am trying to incorporate into an application for the
    Visually Impaired or Totally Blind the ability to play a unique sound effect into the headset speakers that would tell the user if the microphone is muted or un-muted when they press the headset's mute button.

    See also directly related artical: Microphone AudioEndpointVolume.Mute property not updated when device muted · Issue #337 · naudio/NAudio

    I already know that this behavior is "By Design" as of Windows Vista.

    Question 1: When Direct-x was retired, why wasn't the ability to have separate volume and mute controls for each device considered in the new Vista design? The decision was apparently made to push that
    functionality to become the device driver's responsibility, who's volume and mute properties are not accessible programmatically.


    I have a Dell Computer Running Windows 10 1809 with MAXXAUDIOPRO by Waves

    I really do miss Direct-X it behaved perfectly for developers.

    Please consider adding such functionality to future versions of Windows and to also have as part of the Windows Development Committee a member that represents the Hearing Impaired as well as the Visually Impaired
    that will give good input for enhancements to the Ease of Access Technology.

    Thank you all for listening.
     
    Larry G. Robertson, Feb 29, 2020
    #2
  3. mahahual Win User
    microphone mutes itself


    When i go into properties the mike is muted. When I unmute it works for less than a minute then mutes again. The only suggestion I have found is set as default device which does not solve problem. I have also read it is a virus but I cannot solve with malware or virus scans. It first became a problem just a few weeks ago while skyping. Never had a problem with mike until then.

    Troubleshooter finds the microphone muted and fixes, Within a minute the microphone mutes itself again.
     
    mahahual, Feb 29, 2020
    #3
  4. jamos316 Win User

    USB Headset Microphone Mute Button not Synchronized with System Device Driver Microphone...

    muting microphone


    i am still having the same problem with the microphone reverting to a muted state after restart.
    the thing is there are 2 microphone drivers (for some reason),when i unmute the muted mic driver i can make a sound and i see that it is recognized but not by the driver i just unmuted.

    USB Headset Microphone Mute Button not Synchronized with System Device Driver Microphone... [​IMG]
     
    jamos316, Feb 29, 2020
    #4
Thema:

USB Headset Microphone Mute Button not Synchronized with System Device Driver Microphone...

Loading...
  1. USB Headset Microphone Mute Button not Synchronized with System Device Driver Microphone... - Similar Threads - USB Headset Microphone

  2. Headset microphone muted by default

    in Windows 10 Drivers and Hardware
    Headset microphone muted by default: Hello, I have the "Tronsmart Spunky beat" Bluetooth earphones, which have a mic and can be used as a headset. Whenever I connect them, the mic appears muted by default, and I have to go to the settings and unmute it so I can use it. This is what it looks like after...
  3. Microphone mute

    in Windows 10 Customization
    Microphone mute: I have been trying to use my microphone for online meetings and it says my mic is muted in my setting I went to my settings and found that it was mutes and it wouldn't let me unmutes, when I click the icon to unmute it, it will not mute in control panel microphone properties...
  4. Muted Microphone

    in Windows 10 BSOD Crashes and Debugging
    Muted Microphone: My microphone is muted and I do not know how to unmute it. All of my drivers are updated, all of my security permissions are set that it can be accessed and my microphone is active. When I run Troubleshooter, it says my microphone is muted, but doesn't provide a reason...
  5. Media Buttons Mute Microphone

    in Windows 10 Drivers and Hardware
    Media Buttons Mute Microphone: I have a lenovo laptop which mutes the microphone whenever a media eg. Vol control, open browser button on an external keyboard is pressed. This repeats with any keyboard I have tried 3 now, all with the same result. Any idea what is causing this and how to stop it?...
  6. Microphone muted

    in Windows 10 Drivers and Hardware
    Microphone muted: Don't matter how many times I have restarted my computer, I have reset it also. I can not unmute the mic in the microphone settings. I have spent hours looking at ways to fix it but it doesn't seem like many others have had the same problem. I have sat here and clicked it a...
  7. USB Headset microphone problem

    in Windows 10 Drivers and Hardware
    USB Headset microphone problem: Okay here is my problem, I've been using a USB gaming headset for years. I had a Soundblaster Tactics Rage headset, then suddenly last year windows decide that it detects the microphone but it refuses to use it. Long story short, I recently got a new headset and it is...
  8. Headset Microphones Do Not Have Programmatically Detectable Microphone Mute from Headset...

    in Windows 10 Drivers and Hardware
    Headset Microphones Do Not Have Programmatically Detectable Microphone Mute from Headset...: I have a couple of gaming headsets both with a mute button. If I go into Windows 10 Sound Manager I can see the headset speakers and microphone and all have a mute checkbox. I have written a program in C++ that allows me to mute or un-mute the microphone as seen in the Sound...
  9. Microphone Muted

    in Windows 10 Drivers and Hardware
    Microphone Muted: I have a HP Envy all in one computer that is running Windows 10. My computer is updated to the latest version of Windows and I have gone to the HP support website to make sure I have the latest audio drivers for my computer. After the latest update to Windows 10 my...
  10. muting microphone

    in Windows 10 Drivers and Hardware
    muting microphone: why does my microphone keep muting itself after every restart? [img] 4293

Users found this page by searching for:

  1. usb mic mute button programming c c