Chrome:用于测试目的的虚假麦克风输入 [英] Chrome: fake microphone input for test purpose

查看:465
本文介绍了Chrome:用于测试目的的虚假麦克风输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

出于使用量角器进行测试的目的,我需要在没有麦克风的计算机上模拟来自麦克风的音频输入. Chrome带有"--use-fake-device-for-media-stream"标志,Chrome可以模拟假冒的麦克风.但是,没有来自假麦克风的输入,所以我的测试失败了.

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 ?

谢谢!

推荐答案

我使用两个镶边标志获得了虚假的视频和麦克风输入

I get fake video and microphone input using two chrome flags

-为媒体流使用假设备

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

-对媒体流使用fake-ui

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

尝试将两个标志一起使用.

Try with the two flags together.

这篇关于Chrome:用于测试目的的虚假麦克风输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆