I started the test, the melody is playing, but I haven’t found a way to stop it.
How to stop testSpeaker ?
I tried:
/** Stops local audio capture */
stop(): Promise<void | Error>;
/** Mutes mic if audio was started, and mic is not already muted */
mute(): Promise<void | Error>;
And also run the second test with the id of a non-existent device, but i get console message
A tester is running,please stop it first
I was also looking for elements with the “audio” or “video” tag to stop them =)
The TestSpeakerOption allows you to set the onAnalyseFrequency callback, the callback will be invoked per 20ms with the averageFrequency payload, it’s another measurement of the sound. It can be used to visualize the sound.
In our react sample app, we use it as the percent value of the progress bar.