Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

播放本地流 #119

Open
wangjianjia1314 opened this issue Aug 26, 2024 · 5 comments
Open

播放本地流 #119

wangjianjia1314 opened this issue Aug 26, 2024 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@wangjianjia1314
Copy link

Please describe the question.
问题:采集到本地音频流后如何时时的播放出来。
环境:本地流推送后 采用localStream.play进行播放 getAudioLevel获取音量大小。音量大小可以正常获取。播放自己的声音 失败。如何解决

@wangjianjia1314 wangjianjia1314 added the question Further information is requested label Aug 26, 2024
@Rychou
Copy link
Collaborator

Rychou commented Aug 26, 2024

@wangjianjia1314
您是用的 v4 的 trtc web sdk 吧,可以参考文档:https://web.sdk.qcloud.com/trtc/webrtc/doc/zh-cn/LocalStream.html#play

关掉本地流静音播放即可
localStream.play('elementId', { muted: false })

@wangjianjia1314
Copy link
Author

@Rychou 谢啦 没仔细看文档。

@Rychou
Copy link
Collaborator

Rychou commented Aug 27, 2024

https://cloud.tencent.com/document/product/647/45558#9fc8d326-f880-475d-be53-aa20fc96f91f

建议尽快升级 v5 版本哈,v4 版本已经停止迭代了。

@wangjianjia1314

@wangjianjia1314
Copy link
Author

@Rychou v4版本 如何降噪 消除环境音呢。

@Rychou
Copy link
Collaborator

Rychou commented Aug 28, 2024

@Rychou v4版本 如何降噪 消除环境音呢。

https://web.sdk.qcloud.com/trtc/webrtc/doc/zh-cn/tutorial-35-advanced-ai-denoiser.html

@wangjianjia1314 参考这个文档哦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants