ramlife

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 26 下一页

2020年12月22日

摘要: 今天碰到一个情况,分辨率太大,导致左下角的菜单显示不出来,无法调整分辨率。 cd /usr/share/applications sudo lxrandr 就可以运行分辨率设置的程序了。 阅读全文
posted @ 2020-12-22 16:31 ramlife 阅读(601) 评论(0) 推荐(0) 编辑

2020年12月15日

摘要: 1. pcm 是 ADC 直接采集到的数据。 2. frame,帧,指的是对所有声道进行一次 ADC 转换得到数据。 3. frame size,指的是一帧 包含的字节数。 如果是单声道,8bit adc,那么就是 1 * 8 / 8 = 1. 如果是8声道,16bit adc,那么就是 8 * 1 阅读全文
posted @ 2020-12-15 14:19 ramlife 阅读(1700) 评论(0) 推荐(0) 编辑

2020年12月14日

摘要: python 中 需要使用 messagequeue 需要 import posix_ipc,然后才能用。 python 版本的 messagequeue 是对 C 版本的封装。 具体参考: http://semanchuk.com/philip/posix_ipc/#message_queue 阅读全文
posted @ 2020-12-14 11:34 ramlife 阅读(157) 评论(0) 推荐(0) 编辑

摘要: linux 系统上配置 .gitconfig [core] autocrlf = input safecrlf = warn 配置为提交时转为 lf,下拉时不转换。如果文件时混合换行符时,进行警告。 参考:https://www.jianshu.com/p/6ef90ce18ba2 https:// 阅读全文
posted @ 2020-12-14 11:24 ramlife 阅读(69) 评论(0) 推荐(0) 编辑

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) 编辑

2020年12月8日

摘要: samba 共享的文件,被修改后,会被增加执行位。 要保留原来的属性,只需要修改 /etc/samba/smb.conf [global] ...... map archive = no 参考: https://stackoverflow.com/questions/20958888/preserv 阅读全文
posted @ 2020-12-08 16:06 ramlife 阅读(248) 评论(0) 推荐(0) 编辑

摘要: 使用 feh 命令 feh --magick-timeout 1 /mnt/speech/speech/assets/ico-录音.svg 也有说法是 --magick-timeout 在新版本被废弃了,使用 --conversion-timeout 参考: https://superuser.co 阅读全文
posted @ 2020-12-08 13:41 ramlife 阅读(1006) 评论(0) 推荐(0) 编辑

2020年12月7日

摘要: 1. 使用命令 qmlscene 可以直接执行 qml 文件。 2. qml 中 quick 对应的版本 Qt QtQml QtQml.Models QtQuick QtQuick.Controls QtQuick.Layouts QtQuick.Dialogs QtQuick.Particles 阅读全文
posted @ 2020-12-07 18:46 ramlife 阅读(103) 评论(0) 推荐(0) 编辑

摘要: 1. 安装见 https://www.cnblogs.com/ramlife/p/14096103.html 2. 安装好后,import 一下,看看有没有问题。 python3 import PyQt5 exit() 3. 用 qtdesigner 做一个只有 label 的 ui,然后在 ui文 阅读全文
posted @ 2020-12-07 14:39 ramlife 阅读(102) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 26 下一页