Reputation: 625
I was looking for a way to automate WebRTC audio testing and ran into this flag
--use-file-for-fake-audio-capture=/path/to/file.wav
This seem perfect for what I need but I am wondering whether it is possible to provide a link instead of a local path?
The issue is that automation is currently done using Browserstack so the file would not be available locally when running tests through it.
Anyone have experience with this?
'chromeOptions' : {
'args' : ["--use-fake-device-for-media-stream", "--use-fake-ui-for-media-stream",
"--use-file-for-fake-audio-capture=http://www.signalogic.com/melp/EngSamples/Orig/female.wav"]
},
Edit: actually I am just having issues getting this working locally. Does anyone know where the file should be located? Currently still only hearing beeps for automation.
My options in webdriver
'chromeOptions' : {
'args': ["--use-file-for-fake-audio-capture=random_audio.wav"]
},
Upvotes: 4
Views: 5117
Reputation: 383
--use-file-for-fake-audio-capture
Will not work with URL, must be a file
Check answer in https://bugs.chromium.org/p/chromium/issues/detail?id=421054
It needs the wav file to be in just the right format; for my Linux workstation that was 44.1 kHz stereo 16 bit.
Upvotes: 1