# Lose voice when plugging in my headphone

**URL:** <https://devforum.zoom.us/t/lose-voice-when-plugging-in-my-headphone/79130>\
**Category:** Video SDK\
**Created:** [November 21, 2022, 6:53pm UTC](https://devforum.zoom.us/t/lose-voice-when-plugging-in-my-headphone/79130 "2022-11-21T18:53:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ha.hassanzadeh](https://avatars.discourse-cdn.com/v4/letter/h/bc79bd/32.png) [@ha.hassanzadeh](https://devforum.zoom.us/u/ha.hassanzadeh)\
**Post date:** [November 21, 2022, 6:53pm UTC](https://devforum.zoom.us/t/lose-voice-when-plugging-in-my-headphone/79130/1 "2022-11-21T18:53:17Z")

</div>

Hey GUys,  
When I plugin my headphone in the middle of a call, the session gets muted and plugging in/out again does not fix it. Do I need to handle that ? I though the stream will be automatically updated for device changes.

Thanks

---

<div class="post-metadata">

**Author:** ![michael.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael.zoom/32/37213_2.png) [@michael.zoom](https://devforum.zoom.us/u/michael.zoom)\
**Post date:** [December 15, 2022, 9:44pm UTC](https://devforum.zoom.us/t/lose-voice-when-plugging-in-my-headphone/79130/4 "2022-12-15T21:44:44Z")

</div>

Hi @ha.hassanzadeh this seems like the client isn’t recognizing the new input? Can you specify which platform this is happening on?

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [December 15, 2022, 10:45pm UTC](https://devforum.zoom.us/t/lose-voice-when-plugging-in-my-headphone/79130/5 "2022-12-15T22:45:21Z")

</div>

Hi @ha.hassanzadeh ,

You can account for devices being plugged in/out using the ‘device-change’ event listener, mentioned towards the end of [this documentation](https://marketplace.zoom.us/docs/sdk/video/web/essential/audio/#switch-speaker-or-microphone). Incorporating this into your code should help avoid the muting. Please let us know if this helps!

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![ha.hassanzadeh](https://avatars.discourse-cdn.com/v4/letter/h/bc79bd/32.png) [@ha.hassanzadeh](https://devforum.zoom.us/u/ha.hassanzadeh)\
**Post date:** [December 21, 2022, 7:15pm UTC](https://devforum.zoom.us/t/lose-voice-when-plugging-in-my-headphone/79130/6 "2022-12-21T19:15:33Z")

</div>

Hello @rehema.zoom , @michael.zoom,  
I’m using macOs (both my iMac and Macbook). I did already check the device-change before, and yes the device-change does fire. Whenever I turn on my noise canceler headphone, the default microphone is changed, however, still nothing is heared. I don’t think the issue is a bug in my code, because even when using the zoom’s demo app, I experience the same issue, so that’s due to a bug in your sdk, not my  
code.

THanks

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [December 22, 2022, 2:30pm UTC](https://devforum.zoom.us/t/lose-voice-when-plugging-in-my-headphone/79130/7 "2022-12-22T14:30:43Z")

</div>

Hi @ha.hassanzadeh ,

Thank you for this information. I’m going to look further into this today and will reach back out when I have more information on this issue.

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [December 23, 2022, 4:43pm UTC](https://devforum.zoom.us/t/lose-voice-when-plugging-in-my-headphone/79130/8 "2022-12-23T16:43:09Z")

</div>

Hi @ha.hassanzadeh ,

Could you link the sample app you are testing this on? I was unable to reproduce the issue using noise cancelling headphones (albeit, may be different than what you’re using).

Thanks,  
Rehema
