ohci1 8d4c9a54ed !15 merge dev-bundle into master
update: 更新文件 bundle.json

Created-by: sunruiyang
Commit-by: sunruiyang
Merged-by: ohci1
Description: ### 一、内容说明(相关的Issue)
https://gitcode.com/openharmony/third_party_sonic/issues/11


### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  

### 三、变更内容
  * 3.1 关联PR列表

  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"

  * 3.4 其他技术优化内容(做了什么,变更了什么)
    - 重构了 xxxx 代码
    - xxxx 算法优化


  * 3.5 废弃通知(什么字段、方法弃用?)



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)


  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:


### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:

  性能测试:

  并发测试:

  其他:



See merge request: openharmony/third_party_sonic!15
2026-03-09 10:23:54 +08:00
2025-07-05 16:20:30 +08:00
2025-07-05 16:20:30 +08:00
2025-12-18 09:23:41 +08:00
2026-03-09 09:49:55 +08:00
2025-07-15 19:11:32 +08:00
2011-04-18 10:55:43 -04:00
2025-07-15 19:11:32 +08:00
2025-09-02 11:57:26 +08:00
2025-12-18 09:23:41 +08:00
2025-07-05 16:42:06 +08:00
2025-07-05 16:42:06 +08:00
2025-12-18 09:23:41 +08:00
2025-12-18 09:23:41 +08:00
2025-12-18 09:23:41 +08:00

third_party_sonic

Usage Scenarios

Sonic is an algorithm for audio speed change, enabling basic audio processing such as changing speed without altering pitch, changing pitch without altering speed, and simultaneously changing speed and pitch. It is particularly optimized for speed changes of more than 2x. Sonic includes implementations in both C and Java, with main.c and main.java serving as simple usage examples for each.

Directory Structure

image

In the OpenHarmony system, sonic inheritance is implemented within the audio service. Through the service, applications can call relevant interfaces to achieve audio speed change playback, The related interfaces are setSpeed and getSpeed. For detailed instructions, please refer to the link: https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis-audio-kit/js-apis-audio.md

third_party_sonic/
├── debian/             # Debian system source code
├── samples/            # Audio samples
├── Main.java           # Java usage example
├── main.c              # C usage example
├── sonic.c             # C audio speed change source code
├── sonic.h             # C audio speed change source code
├── Sonic.java          # Java audio speed change source code
├── wave.c              # C audio speed change source code
├── wave.h              # C audio speed change source code
├── BUILD.gn            # build script
├── bundle.json         # build script
├── Makefile            # Compilation script
├── README_zh.md        # Installation and usage instructions
├── README_en.md        # Installation and usage instructions
├── COPYING             # License declaration
└── LICENSE             # License declaration

OpenHarmony Adaptation for Sonic

Sonic is introduced into the thirdparty directory of OpenHarmony and is compiled using the dependency components in OpenHarmony.

  1. Main Code Download
repo init -u https://gitee.com/openharmony/manifest.git -b master --no-repo-verify
repo sync -c
repo forall -c 'git lfs pull'
  1. Add Dependency in the Used Module
deps = [ "//third_party/sonic:sonic" ]
  1. Preprocessing
./build/prebuilts_download.sh
  1. Compilation
./build.sh --product-name rk3568 --ccache

License

This project uses the Apache2.0 License. Please refer to the LICENSE fiel for more details.

S
Description
实现音频变速、变调算法
Readme 12 MiB
Languages
C 62.6%
Java 33.3%
Makefile 1.7%
Roff 1.7%
Shell 0.7%