- 博客(97)
- 收藏
- 关注
原创 PCM 转WAV。 2. 多通道pcm挑出其中
import wave import os import wave import numpy as np def gen_wav(filepath): wavelist=[] filenames=os.listdir(filepath) for filename in filenames: print(filename) name,category=os.path.splitext(filepath+filename) #分解文件扩展名...
2021-12-29 14:50:32
1677
原创 一个资料夹里面wav合并(同sample rate)
import wave import os import wave import numpy as np filepath= "/Users/anker/Documents/2_Speech_data/anker设备实际录音/3382/Stage1/鼠标键盘/" wavelist=[] filenames=os.listdir(filepath) for filename in filenames[:]: name,category=os.path.splitext(filepath+file..
2021-12-29 14:47:21
325
原创 大音频档案拆小
from pydub import AudioSegment import pydub from pydub.silence import split_on_silence import sys import os filename = '/Volumes/Speech/0DownlinkNoise/officenoise.wav' audio_segment = AudioSegment.from_file(filename, format='wav') total = int(audio_segmen
2021-12-29 14:43:24
1460
原创 小档案经过RIR,归一化后,合成大档案
import random import os import glob import numpy as np import scipy.io.wavfile as wav import soundfile as sf import librosa from scipy import signal import scipy.io as scio dataFile = 'rir.mat' rir = scio.loadmat(dataFile) def merge_files(path_read_folde
2021-12-29 14:41:41
1429
原创 model.fit_generator
def generator(): while 1: global cnt cnt += 1 print("cnt: ",cnt) x = X_train[(cnt-1)*batch_size:(cnt)*batch_size,:] y = Y_train[(cnt-1)*batch_size:(cnt)*batch_size,:] yield x,y def val(): while 1: ...
2021-09-08 09:15:18
1108
原创 VS code C 怎么编译、单步执行。。
https://blog.youkuaiyun.com/u013163834/article/details/85218331
2021-03-15 09:29:25
635
原创 Mac m1 安装tensorflow
最主要refernece这个链接。。。 https://blog.youkuaiyun.com/lyang1896/article/details/113187799 还有 https://www.ai-buzz.com/18-steps-to-install-tensorflow_macos-on-m1-macbook-2020/ 关键有个地方我 一直 condaactivate tensorflow_env 失败:之前没有注意,后来发现了。。 搞了超级久,要加这个: 就可以过啦。 source...
2021-02-28 09:40:17
1341
原创 m1 安装tensorflow
https://blog.youkuaiyun.com/m0_46402436/article/details/111355602
2021-02-26 16:41:11
1755
原创 2021-02-02 keras 可以改 loss(从 input 或者 tensor)
from keras.callbacks import LearningRateScheduler from keras.layers import Multiply import keras from keras.models import Sequential from keras.models import Model from keras.layers import Input from keras.layers import Dense from keras.layers import LS.
2021-02-02 18:38:58
244
原创 rnnoise 两篇
深度学习降噪方案-RNNoise源码解析 - 特征提取 https://blog.youkuaiyun.com/danteLiujie/article/details/102799038?utm_medium=distribute.wap_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-3.wap_blog_relevant_pic&depth_1-utm_source=distribute.wap_relevant.none-task-blog
2021-01-06 14:37:32
484
原创 makefile 基础
# test:a.o b.o # gcc -o test a.o b.o # a.o : a.c # gcc -c -o a.o a.c # b.o : b.c # gcc -c -o b.o b.c test: a.o b.o c.o gcc -o test $^ %.o : %.c gcc -c -o $@ $< %.o:表示所用的.o文件 %.c:表示所有的.c文件 $@:表示目标 $<:表示第1个依赖文件 $^:表示所有依赖...
2021-01-05 15:35:57
512
原创 python 合并当前资料夹中所有wav档
import wave import os import wave import numpy as np filepath="." wavelist=[] filenames=os.listdir(filepath) for filename in filenames: name,category=os.path.splitext(filepath+filename) #分解文件扩展名 if category=='.wav': #若文件为wav音频文件 wavelist...
2020-12-31 12:00:38
584
原创 58 直播针对 webrtc 跟 rnnoise 的研究/ webrtc 安卓移植
https://kknews.cc/zh-hk/tech/o5k8rrq.html
2020-12-23 14:51:39
623
原创 Rnnoise 训练遇到的问题
(1) cd src ; ./compile.sh (2) ./denoise_training clean.pcm noise.pcm 50000 > training.f32 (3) cd training ; python3 ./bin2hdf5.py ../src/training.f32 50000 87 training.h5 ###这个 50000跟上面是搭配的,可以调整training次数 (4) python3 rnn_train.py (5)python3 dump...
2020-12-23 11:35:59
893
1
原创 HRTF
https://blog.youkuaiyun.com/qq_44494015/article/details/105076556?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522160758135019724838574396%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=160758135019724838574396&am
2020-12-10 14:43:28
440
原创 AEC————网站
https://blog.youkuaiyun.com/ljl86400/article/details/80475781?utm_medium=distribute.pc_relevant.none-task-blog-title-2&spm=1001.2101.3001.4242 下面这个有代码 https://blog.youkuaiyun.com/weixin_44652758/article/details/107633117
2020-12-10 14:40:07
211
原创 Mac adb PATH 设定 / wifi adb设定
export PATH=/Users/matt/Library/Android/sdk/platform-tools
2020-09-07 13:49:34
337
原创 Fast Attack Slow Decay 解释
You might search comp.dsp for relevant threads. There have been a few. A simple explanation of an AGC implmentation goes something like this: 1) You will detect the peak levels. 2) You will use the peak levels to control the gain according to some sim.
2020-08-28 10:27:55
407
原创 Filter 设计
双二阶滤波器 https://blog.youkuaiyun.com/hunterhuang2013/article/details/62043972/ 介绍了 什么是 direct transpose form// 咋用 Filter介绍。 https://zhuanlan.zhihu.com/p/51097798 Python b,a = signal.butter(2,0.125, btype='low', output='ba') ...
2020-08-26 17:57:17
289
原创 Gradle 版本不同
Gradle’s dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)Re-download dependencies and sync project (requires network) 发现该代码的gradle版本为1.2.3,代码如下 classpath 'com.android.tools.build:gradle:1.2.3' 因为gradl...
2020-08-10 15:43:13
931
原创 ubuntu 编译 ffmpeg For Android
1. 安装 虚拟机 , 然后 ubuntu 18.04.4 (不知道为啥 20 不能用... yum 一直失败) 2.sudo apt-get install gcc 3.sudoapt-get install yasm 4.sudo apt-get install pkg-config 5.chmod 777 configure ./configure (WARNING: pkg-config not found, library detection...
2020-08-06 13:43:10
340
原创 Android studio 新版 NDK 问题
A problem occurred configuring project ':app'. > NDK not configured. 新版本的AS 3.6.3, 直接开新 C++ 专案, 编译是不会通过的。。 解决方法: Build.gradle android { compileSdkVersion 29 buildToolsVersion "29.0...
2020-04-26 15:24:01
1141
原创 Android中如何实现蓝牙的配对与连接
https://blog.youkuaiyun.com/u012910985/article/details/50387551 绑定(配对)和连接是两个不同的过程,绑定是指两个设备发现了对方的存在,可以获取到对方的名称、地址等信息,有能力建立起连接;连接是指两个设备共享了一个RFCOMM通道,有能力进行数据互传。确认绑定上了之后,才能开始连接。可以试试蓝牙音箱的连接过程,就是先点击一次,开始配对...
2020-03-11 17:19:43
2447
原创 蓝牙学习笔记之蓝牙架构(十)
https://blog.youkuaiyun.com/ylangeia/article/details/95880841?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task
2020-03-09 22:32:36
263
原创 蓝牙介绍
avdct 介绍 https://blog.youkuaiyun.com/z497544849/article/details/56832901 蓝牙app介绍咋写 https://cloud.tencent.com/developer/article/1429369 Bluedroid: 蓝牙协议栈源码剖析 https://blog.youkuaiyun.com/edmond999/article...
2020-03-09 22:18:28
273
原创 安卓 aosp 蓝牙, 安卓 官网介绍
https://source.android.google.cn/devices/bluetooth?hl=zh-cn
2020-03-09 20:43:08
1360
1
原创 android编译系统解析,执行make bootimage后mk文件的调用顺序详解
https://blog.youkuaiyun.com/RadianceBlau/article/details/78362426
2020-03-09 20:40:22
889
原创 EKF。 定位
Kalman https://wenku.baidu.com/view/5b15e76b53ea551810a6f524ccbff121dd36c520.html?rec_flag=default https://www.cnblogs.com/TIANHUAHUA/p/8473029.html http://tags.eeworld.com.cn/tags/卡尔曼/tiezi/2 角度的...
2019-08-28 12:39:12
1326
原创 直方图对比
http://www.opencv.org.cn/opencvdoc/2.3.2/html/doc/tutorials/imgproc/histograms/histogram_comparison/histogram_comparison.html https://blog.youkuaiyun.com/qq_42887760/article/details/86527968
2019-03-27 17:49:33
489
原创 C++ opencv直方图比对
demo http://wiki.opencv.org.cn/index.php/%E9%A6%96%E9%A1%B5 官方文档 https://opencv.org/releases.html https://stackoverflow.com/questions/25013732/comparing-rgb-histograms-plt-hist-np-histogram-and...
2019-03-20 18:51:29
478
原创 室内定位
地磁 https://cloud.tencent.com/developer/article/1376975 IMU https://navisens.com/pricing.html http://www.qzstech.com/indoor-position-system/
2019-03-19 23:23:11
744
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅