代码改变世界

AWTK开发UI简单入门C语言篇

2021-10-13 11:25 by dreamboy2000, 1789 阅读, 0 推荐, 收藏, 编辑
摘要:AWTK 开发 UI 简单入门 – C 语言篇 一,前序 在上一篇教程中(AWTK 的 Window 开发环境安装教程),我们已经配置好 AWTK 的开发环境了,今天我们使用 C 语言写一个简单的小例子,让大家更加容易理解 AWTK 的工作原理。 在 windows 平台上面开发,马上想到的开发工具 阅读全文

Scons使用教程

2021-09-30 09:45 by dreamboy2000, 2718 阅读, 0 推荐, 收藏, 编辑
摘要:1. 简单编译 2. SConstruct文件 3. 编译多个源文件 4. 编译和链接库文件 5. 节点对象 6. 依赖性 7. 环境 1.简单编译 源文件:hello.cpp #include<iostream>using namespace std; int main(){ cout << "H 阅读全文

K66芯片解锁/J-link报错的解决思路

2021-09-30 09:06 by dreamboy2000, 1028 阅读, 0 推荐, 收藏, 编辑
摘要:错误呈现: 错误描述:Protection bytes in flash at add. 0x400 .0x40F indicate that readout protection is set. For debugger connection the device need. to be unse 阅读全文

numpy:DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly

2021-09-28 22:36 by dreamboy2000, 979 阅读, 0 推荐, 收藏, 编辑
摘要:报错信息如下: DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead nparr = 阅读全文

关于Numpy数据类型对象(dtype)使用详解

2021-09-28 22:31 by dreamboy2000, 1925 阅读, 0 推荐, 收藏, 编辑
摘要:常用方法 1 #记住引入numpy时要是用别名np,则所有的numpy字样都要替换 2 #查询数值类型 3 >>>type(float) 4 dtype('float64') 5 # 查询字符代码 6 >>> dtype('f') 7 dtype('float32') 8 >>> dtype('d' 阅读全文

PIC18F87J90 系列 欠压复位 ( BOR )

2021-09-27 10:19 by dreamboy2000, 66 阅读, 0 推荐, 收藏, 编辑
摘要: 阅读全文

wav转pcm、去掉wav文件头

2021-09-26 17:55 by dreamboy2000, 195 阅读, 0 推荐, 收藏, 编辑
摘要:1 //欧的朗18年2月2日,整理 2 #include<iostream> 3 #include<fstream> 4 #include<stdlib.h> 5 #include<alsa/asoundlib.h> 6 #include <unistd.h> 7 8 using namespace 阅读全文

wav和PCM的转换(Python版本),pcm

2021-09-26 10:47 by dreamboy2000, 1258 阅读, 0 推荐, 收藏, 编辑
摘要:wav和pcm是语音信号处理中最常见的文件格式,时常会遇到需要两种文件格式的相互转换。wav存储的一般是解码后为[-1, 1]的float数据,文件头有44个字节记录文件的采样率、长度等等信息。pcm存储的是int型整数,不含任何采样率相关信息。虽然原理比较简单,但是整理后更便于利用。 wav转pc 阅读全文

wav 与 pcm 互转

2021-09-26 10:40 by dreamboy2000, 2136 阅读, 0 推荐, 收藏, 编辑
摘要:语音wav转pcm可以用ffmpeg工具,也可以自己写,主要是要了解pcm和wav的格式以及头信息的: pcm 是没有头信息的,wav有44字节的头文件,所以去掉44字节的头文件就okay了 1 import os 2 import numpy as np 3 f = open("sw02725-A 阅读全文

WAV和PCM文件转换的程序

2021-09-26 09:18 by dreamboy2000, 248 阅读, 0 推荐, 收藏, 编辑
摘要:using System; using System.IO; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; namespace Train.wav2pcm { public p 阅读全文
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页