当前位置:网站首页>Audio processing: floating point data stream to PCM file
Audio processing: floating point data stream to PCM file
2022-08-02 14:00:00 【smartisong】
In some data processing, it is necessary to convert the received data (floating point) into PCM file, that is, binary file, and thenThen convert it into an audio file, listen to it or save it.
- PCM* (Pulse Code Modulation) is also known as Pulse Code Modulation.PCM audio data is uncompressed audio sample data raw stream, which is standard digital audio data converted from analog signals through sampling, quantization, and encoding.
In some existing programs, audio files are basically output directly, and there is no intermediate PCM file output, but it is still needed in some scenarios.
For PCM binary files, another important parameter is the precision, the common ones are 8bit, 16bit, 24bit, 32bit.The sampled data of 8bit PCM is unsigned data, while the sampled data of 16bit PCM is signed data.
For this purpose, the above functions are realized by using C code, the code is as follows:
// float to PCM void floatDataToPCMfile(){// to do}Create a blog post first, then fill in the hole later........
If you need it, you can comment and private message
边栏推荐
猜你喜欢
随机推荐
"Second Uncle" is popular, do you know the basic elements of "exploding" short videos from the media?
【C语言】夏日一题 —— 求最大公约数和最小公倍数
SQL函数 TRUNCATE
世界上最大的开源基金会 Apache 是如何运作的?
你接受不了60%的暴跌,就没有资格获得6000%的涨幅 2021-05-27
Fabric.js 动态设置字号大小
保姆级教程:写出自己的移动应用和小程序(篇三)
LeetCode(剑指 Offer)- 53 - II. 0~n-1中缺失的数字
【C语言】明解数组(1)
网络安全第一次作业
打破文件锁限制,以存储力量助力企业增长新动力
【C语言】手把手带你写游戏 —— 猜数字
玉溪卷烟厂通过正确选择时序数据库 轻松应对超万亿行数据
SQL函数 USER
CVE-2020-27986(Sonarqube敏感信息泄漏) 漏洞修复
static修饰的函数有什么特点(static可以修饰所有的变量吗)
供应磷脂-聚乙二醇-羧基,DSPE-PEG-COOH,DSPE-PEG-Acid,MW:5000
关于Google词向量模型(googlenews-vectors-negative300.bin)的导入问题
世界上最大的开源基金会 Apache 是如何运作的?
Word | 关于删除分节符(下一页)前面的版式就乱了解决方案









