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

[Deepin Integration]~[V23-Beta3] feat: update webrtc-audio-processing to 1.3-3 by lhdjply@deepin-community/webrtc-audio-processing by deepin-community-ci-bot[bot] #11280

Closed
deepin-bot bot opened this issue Feb 14, 2025 · 6 comments
Assignees
Labels
23 25 25 版本特性功能 Project:integrated 集成管理相关 许琪 许琪
Milestone

Comments

@deepin-bot
Copy link

deepin-bot bot commented Feb 14, 2025

Package information | 软件包信息

包名 版本
webrtc-audio-processing 1.3-3

Package repository address | 软件包仓库地址

deb [trusted=yes] https://ci.deepin.com/repo/obs/deepin:/CI:/TestingIntegration:/test-integration-pr-2538/testing/ ./
deb [trusted=yes] https://ci.deepin.com/repo/obs/deepin:/CI:/TestingIntegration:/test-integration-pr-2539/testing/ ./

Changelog | 更新信息

webrtc-audio-processing (1.3-3) unstable; urgency=medium

  • Team upload
  • Release to unstable
@deepin-bot deepin-bot bot added the Project:integrated 集成管理相关 label Feb 14, 2025
@deepin-bot deepin-bot bot added this to the V23-Beta3 milestone Feb 14, 2025
@deepin-bot deepin-bot bot moved this to In progress in v23-集成管理 Feb 14, 2025
@deepin-bot
Copy link
Author

deepin-bot bot commented Feb 14, 2025

Integration Test Info

Test suggestion | 测试建议

主要测试 #11279

Influence | 影响范围

ADDITIONAL INFORMATION | 额外补充

@deepin-bot
Copy link
Author

deepin-bot bot commented Feb 14, 2025

IntegrationProjector Notify the author
@lhdjply: Integrated issue updated

@deepin-bot
Copy link
Author

deepin-bot bot commented Feb 14, 2025

IntegrationProjector Bot
Deepin Testing Integration Project Manager Info
Link to deepin-community/Repository-Integration#2539

@Zeno-sole
Copy link
Contributor

webrtc-audio-processing 是 WebRTC(Web Real-Time Communication,网页实时通信)库的一部分,专门处理音频信号,提供音频增强、回声消除、噪声抑制和自动增益控制等功能。它主要用于实时通信系统中,以确保音频质量和清晰度,尤其是在网络环境不稳定或音频设备质量较差的情况下。

主要功能:

  1. 回声消除(AEC, Acoustic Echo Cancellation)

    • 防止麦克风接收到扬声器发出的声音,从而消除回声。
  2. 噪声抑制(NS, Noise Suppression)

    • 降低背景噪声,使语音更清晰。
  3. 自动增益控制(AGC, Automatic Gain Control)

    • 自动调整音频输入信号的增益,使得音量保持在适当的水平。
  4. 高通滤波器

    • 去除低频噪声,进一步提高音频质量。

常见用途:

  • 实时语音通信:例如视频会议、VoIP 应用,能够提高语音通话的质量。
  • 音频处理工具:在录音和音频编辑软件中应用。
  • 嵌入式设备:例如智能音箱、视频监控等设备,需要良好的音频质量。

如何使用:

webrtc-audio-processing 通常是作为 WebRTC 库的一部分来构建和使用的。你可以使用它来实现音频信号处理功能,或者将其嵌入到更大的实时通信系统中。

在 C++ 中使用:

WebRTC 提供了相应的 API 来操作和配置音频处理模块,下面是一个简单的示例,展示如何使用 WebRTC 的音频处理功能:

#include "modules/audio_processing/include/audio_processing.h"
#include "modules/audio_processing/audio_processing_builder.h"

int main() {
    // 创建音频处理器
    webrtc::AudioProcessingBuilder builder;
    std::unique_ptr<webrtc::AudioProcessing> audio_processing = builder.Create();

    // 设置音频处理器的配置(例如,启用回声消除、噪声抑制等)
    audio_processing->gain_control()->set_enabled(true);
    audio_processing->noise_suppression()->set_level(webrtc::NoiseSuppression::Level::kHigh);

    // 获取输入音频流并进行处理
    // 例如,可以将采集到的音频数据传入处理模块进行处理

    return 0;
}

在 CMake 中使用:

如果你希望将 webrtc-audio-processing 集成到 CMake 项目中,首先需要确保你的项目包含 WebRTC 库。你可能需要下载 WebRTC 源代码并将其添加到 CMake 配置中。

例如,在 CMakeLists.txt 中添加:

find_package(WebRTC REQUIRED)
target_link_libraries(your_target webrtc_audio_processing)

编译和安装:

  1. 获取 WebRTC 源代码
    WebRTC 是一个庞大的库,你可以从 [WebRTC 官方 GitHub](https://github.com/webrtc) 获取源代码。

  2. 编译 WebRTC
    使用 gnninja 等工具来构建 WebRTC:

    gn gen out/Default
    ninja -C out/Default
  3. 安装 WebRTC
    安装 WebRTC 到系统,或者将其包含在项目中作为第三方依赖。

  4. 使用音频处理模块
    在你的项目中链接 webrtc_audio_processing 库,并使用它来处理音频流。

常见问题:

  • 编译错误:确保所有依赖项正确安装,特别是 C++ 编译器和构建工具(如 gnninja)。
  • 性能问题:音频处理会增加计算负担,尤其是在实时音频应用中,确保系统足够强大以支持音频处理操作。

如果你有更具体的问题,或者遇到编译或使用上的困难,可以提供更多详细信息,我可以帮助你解决。

@babyfengfjx babyfengfjx moved this from In progress to 测试中 in v23-集成管理 Feb 21, 2025
@babyfengfjx babyfengfjx added the 许琪 许琪 label Feb 21, 2025
@babyfengfjx
Copy link

@xuqi27837288 请同步在V23版本开展集成验证。

@xuqi27837288 xuqi27837288 moved this from 测试中 to 测试通过 in v23-集成管理 Feb 24, 2025
@xuqi27837288
Copy link

【验证环境】:deepin 23 Release镜像
镜像:https://cdimage.uniontech.com/daily-iso/image-beige/CUSTOM/lichenggang/20250120/deepin-23-beige-release-amd64-20250120-175018.iso
内核:Linux test-PC 6.12.1-amd64-desktop-hwe
【验证结果】:集成测试通过,切换音频框架后播放视频、音乐调节声音大小等正常,暂未发现严重问题

@Zeno-sole Zeno-sole moved this from 测试通过 to 已集成 in v23-集成管理 Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
23 25 25 版本特性功能 Project:integrated 集成管理相关 许琪 许琪
Projects
Status: 已集成
Development

No branches or pull requests

4 participants