使用百度云API进行语音转文字(基于python的wav文件转换)

摘要: 安装依赖包:pip install baidu-aip wav文件转换成文字Demo: 注意:1、存储的wav文件采样率为16000 2、wav文件为单声道,否则会影响语音识别的准确性 1 #!/usr/bin/python 2 # -*- coding: UTF-8 -*- 3 from aip 阅读全文
posted @ 2019-07-16 15:17 Liz- 阅读(7465) 评论(0) 推荐(0) 编辑

Ruby从指定邮箱读取邮件(IMAP/POP3)

摘要: Documents: Net::IMAP Net::POP3 目标: 从收件箱中提取邮件信息 Code 1 require 'net/imap' 2 require 'net/pop' 3 require 'mail' 4 require 'nokogiri' 5 6 server='imap.xx 阅读全文
posted @ 2017-10-25 10:10 Liz- 阅读(1119) 评论(0) 推荐(0) 编辑

GDB使用(需反复练习)

摘要: 内容来自《linux_c编程一站式学习》第10章内容。细节忘了的话查书 文件temp.c 普通编译命令: gcc temp.c -o temp 调试:单步执行和跟踪函数调用 编译命令:gcc -g temp.c -o temp -g 在可执行文件中加入源代码的信息,比如可执行文件中第几条机器指令对应 阅读全文
posted @ 2017-03-22 08:43 Liz- 阅读(159) 评论(0) 推荐(0) 编辑

Python基础三:函数和类

摘要: 函数的定义和调用 1 def fun(x): 2 if x > 0: 3 print "x>0" 4 else: 5 print "x<=0" 6 7 a = 3.5 8 b = -1 9 fun(a) 10 fun(b) 函数的定义和调用 1 def fun(x): 2 if x > 0: 3 p 阅读全文
posted @ 2017-03-05 16:43 Liz- 阅读(229) 评论(0) 推荐(0) 编辑

Python基础二:条件和循环

摘要: 判断语句 循环语句 while 1 count = 0 2 while(count < 9): 3 print "The count is:", count 4 count = count + 1 5 print "Good bye!" while else 1 count = 0 2 while 阅读全文
posted @ 2017-03-05 16:38 Liz- 阅读(135) 评论(0) 推荐(0) 编辑

Ruby的细化(refine关键字)

摘要: refine关键字用于局部打开类 使用时用using ModuleNamge 例子来源:《Ruby元编程》2.4.3 module StringExtensions refine String do def reverse "esrever" end end end module StringStu 阅读全文
posted @ 2017-02-04 20:45 Liz- 阅读(419) 评论(0) 推荐(0) 编辑

JavaSript基础

摘要: 1. 基本格式 2.…… 阅读全文
posted @ 2016-12-28 21:47 Liz- 阅读(264) 评论(0) 推荐(0) 编辑

Ruby基础语法三 :array 和 hash

摘要: Array 1. 数组定义:有序列,可容纳任意元素, 下标由0开始 1 array = [1, 'Bob', 4.33, 'another string'] 2 puts array.first #=>1 3 p array.last #=>another string 4 p array[2] # 阅读全文
posted @ 2016-12-26 20:21 Liz- 阅读(251) 评论(0) 推荐(0) 编辑

Distributed Programming With Ruby》读书笔记七 Starling and AMQP/RabbitMQ (Part3 chapter7-8)

摘要: Part III Distributed Message Queues Part III breaks from this "traditional" approach of distributed computing and looks at distributed message queues. 阅读全文
posted @ 2016-12-26 19:34 Liz- 阅读(145) 评论(0) 推荐(0) 编辑

Distributed Programming With Ruby》读书笔记六 Starfish, Distribunaut and Politics (Part2 chapter4-6)

摘要: Chapter4: Starfish (海星?)这样的例子有时间换linux的环境试一下吧 Starfish1 bills itself as “a utility to make distributed programming ridiculously easy.” I think that is 阅读全文
posted @ 2016-12-26 19:24 Liz- 阅读(143) 评论(0) 推荐(0) 编辑