简体   繁体   English

Twilio语音音量控制

[英]Twilio Voice volume control

I'm running the Browser Calls for Python - Flask example, and was wondering if there is a way to control the speaker volume on the Twilio Client side? 我正在运行“ Python浏览器调用-Flask”示例,并且想知道是否有一种方法可以在Twilio客户端上控制扬声器的音量?

On other voice solutions, I used to manipulate the volume via the HTML5 element, but it seems that Twilio doesn't use one. 在其他语音解决方案上,我曾经通过HTML5元素来控制音量,但是Twilio似乎并没有使用它。

Twilio developer evangelist here. Twilio开发人员布道者在这里。

I checked with the Twilio Client JS team and the audio is played using the Web Audio API. 我与Twilio Client JS团队核对过,然后使用Web Audio API播放音频。 As such, there is no way, built in or otherwise, to control the volume. 因此,无法内置或以其他方式控制音量。

You can get information about the volume from the library though, check the Device.audio methods and events. 不过,您可以从库中获取有关音量的信息,请检查Device.audio方法和事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM