Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome: fake microphone input for test purpose

For testing purpose with protractor, I need to simulate audio input from the microphone on a computer without microphone. With the "--use-fake-device-for-media-stream" flag, Chrome can simulate a fake microphone. However, no input is coming from the fake microphone so my tests fails.

Is it possible to simulate sound getting out of the microphone ?

Thanks !

like image 208
Charles Avatar asked Apr 28 '14 12:04

Charles


1 Answers

I get fake video and microphone input using two chrome flags

--use-fake-device-for-media-stream

--use-fake-ui-for-media-stream

Try with the two flags together.

like image 199
williamcabrera4 Avatar answered Oct 24 '22 03:10

williamcabrera4