You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The quick start examples here are available starting on the public preview version [1.9.1-beta.1](https://www.npmjs.com/package/@azure/communication-calling/v/1.9.1-beta.1) of the calling Web SDK. Make sure to use that version or newer when trying this quickstart.
22
+
> The quick start examples here are available starting on the public preview version [1.9.1-beta.1](https://www.npmjs.com/package/@azure/communication-calling/v/1.9.1-beta.1) of the calling Web SDK. Make sure to use that SDK version or newer when trying this quickstart.
22
23
23
-
## Checking the audio stream olume
24
-
### Description
24
+
## Checking the audio stream volume
25
+
As a developer it can be nice to have the ability to check and display to end users the current microphone volume. ACS calling API exposes this information using `getVolume`. The `getVolume` value is a number ranging from 0 to 100 (with 0 noting zero audio detected, 100 as the max level detectable). This value iss sampled every 200ms to get near realtime value of volume.
25
26
26
-
As a developer it can be nice to have the ability to check the microphone volume in Javascript. This quickstart shows examples of how to do this in ACS WebJS.
27
+
### Example usage
28
+
Sample code to get volume of selected microphone. This example shows how to generate the volume level by accessing `getVolume`.
27
29
28
-
#### Architecture
29
-
##### Pre/Post Call
30
-
ACS Already has raw audio stream access api built over TsCall on Device Manager this can be used to expose audio gain for precall/incall Microphone volume.
ACS will expose another API on local and remote audio streams to get Microphone volume built over Raw Audio access API, to get Volume (gain) of selected Microphone
0 commit comments