ramlife

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2020年12月11日

摘要: 1. 从 二进制 pcm 文件中读取数据,并转化位想要的矩阵数组 with open(audioPath, 'rb') as f: audioData = np.fromfile(f, dtype = np.uint16) audioData.shape = -1, 8 转换的音频数据是 不确定行, 阅读全文
posted @ 2020-12-11 18:24 ramlife 阅读(1028) 评论(0) 推荐(0) 编辑

摘要: 两种方法: 1. 启动的时候,使用命令启动 LC_CTYPE=zh_CN.UTF-8 emacs $@ 2. 设置 bashrc LC_CTYPE = zh_CN.utf8 或者 UTF-8 参考: https://www.douban.com/group/topic/29718313/ 阅读全文
posted @ 2020-12-11 13:43 ramlife 阅读(167) 评论(0) 推荐(0) 编辑