# Start and stop audio

**URL:** <https://devforum.zoom.us/t/start-and-stop-audio/108969>\
**Category:** Meeting SDK\
**Created:** [April 30, 2024, 2:04pm UTC](https://devforum.zoom.us/t/start-and-stop-audio/108969 "2024-04-30T14:04:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![macharashvili786](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/macharashvili786/32/49642_2.png) [@macharashvili786](https://devforum.zoom.us/u/macharashvili786)\
**Post date:** [April 30, 2024, 2:04pm UTC](https://devforum.zoom.us/t/start-and-stop-audio/108969/1 "2024-04-30T14:04:52Z")

</div>

async toggleAudio(isOn: boolean) {  
if (!this.mediaStream$) return;

```
this.isMicOn = isOn;

if (isOn) {
  if (!this.audioStarted) {
    await this.mediaStream$.startAudio({ originalSound: true });

    this.audioStarted = false;
  } else {
    await this.mediaStream$.unmuteAudio(
      this.videoClient$.getCurrentUserInfo().userId
    );
  }

  return;
}

await this.mediaStream$.muteAudio(
  this.videoClient$.getCurrentUserInfo().userId
);

```

}

i have this code snippet, tried everything, the problem is that microphone indicator is still visible while i am muting user, if i use stopAudio i can not hear participant sound. what method should i use?

---

<div class="post-metadata">

**Author:** ![sarahsmith4724](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sarahsmith4724/32/59245_2.png) [@sarahsmith4724](https://devforum.zoom.us/u/sarahsmith4724)\
**Post date:** [May 2, 2024, 9:21am UTC](https://devforum.zoom.us/t/start-and-stop-audio/108969/2 "2024-05-02T09:21:18Z")

</div>

I was also facing the same issue. I have to show cloth to a sister but voice was doing issues. I have fixed by seeing Youtube videos [https://cdn.shopify.com/s/files/1/0779/2073/1459/files/Boyshort\_Panties.jpg?v=1714551129](https://cdn.shopify.com/s/files/1/0779/2073/1459/files/Boyshort_Panties.jpg?v=1714551129)
