Skip to content

Commit 24f774d

Browse files
authored
Update get-started-volume-indicator.md
1 parent 9b28bb7 commit 24f774d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

articles/communication-services/quickstarts/voice-video-calling/get-started-volume-indicator.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ As a developer you can have control over checking microphone volume in JavaScrip
2222
> 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.
2323
2424
## 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 local microphone volume or the incoming microphone level. 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 200 ms to get near real time value of volume.
25+
As a developer it can be nice to have the ability to check and display to end users the current local microphone volume or the incoming microphone level. 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 is sampled every 200 ms to get near real time value of volume level.
2626

2727
### Example usage
28-
Sample code to get volume of selected microphone. This example shows how to generate the volume level by accessing `getVolume` of the local audio stream and of the remote incoming audio stream.
28+
This example shows how to generate the volume level by accessing `getVolume` of the local audio stream and of the remote incoming audio stream.
2929

3030
```javascript
3131
//Get the volume of the local audio source
@@ -40,6 +40,7 @@ const volumeIndicator = await remoteAudioStream.getVolume();
4040
volumeIndicator.on('levelChanged', ()=>{
4141
console.log(`Volume is ${volumeIndicator.level}`)
4242
})
43-
4443
```
4544

45+
For a more detailed code sample on how to create a UI display to show the local and current incominng audio level please see [here](https://github.com/Azure-Samples/communication-services-web-calling-tutorial/blob/2a3548dd4446fa2e06f5f5b2c2096174500397c9/Project/src/MakeCall/VolumeVisualizer.js).
46+

0 commit comments

Comments
 (0)