Skip to content

Instantly share code, notes, and snippets.

@vunb
vunb / CMU Sphinx - Speech Recognition
Last active February 14, 2021 18:04
Tập hợp các link tham khảo CMU Sphinx
CMU Sphinx
http://cmusphinx.sourceforge.net/wiki/tutorialam
http://www.speech.cs.cmu.edu/sphinxman/scriptman1.html
PocketSphinx
http://ghatage.com/2012/12/voice-to-text-in-linux-using-pocketsphinx/
http://ghatage.com/2012/12/make-pocketsphinx-recognize-new-words/
@vunb
vunb / Phonegap
Created October 24, 2013 16:46
Các components, plugins cho phonegap
+ Recorder
- http://blog.haurus.com/?p=309 (Recording Audio with PhoneGap)
@vunb
vunb / Windows OS
Created October 25, 2013 01:48
Bộ cài đặt windows 7 (mình dùng cho máy ảo) chạy rất nhẹ
Đĩa cài windows 7 (699M). Sau khi cài đặt dung lượng chiếm 2.75G
http://download.easyvn.net/phan-mem/dia-cai-dat/windows-7-ultimate.html
-- Create user/schema
create user user_name identified by p@ssword;
-- Grant privileges
grant all privileges to user_name;
-- [[[Grant Privileges on Tables]]]
grant [privileges] on object_tables_views to user;
grant execute on object_procedures to user;
grant execute on object_procedures to public;
-- Example
grant select, insert, update, delete, references, alter, index on suppliers_obj to smithj_user;
@vunb
vunb / hostname.config
Created October 28, 2013 15:19
Change hostname in centos
#Step 1
hostname [new_host_name]
#Step 2: Change network
vi /etc/sysconfig/network
#Edit HOSTNAME = [new_host_name]
@vunb
vunb / CentOs
Last active December 26, 2015 18:59
This should give you a copy of make, gcc, gdb, and all those other tools you were looking for.
Once upon a time I was a very avid desktop user of Ubuntu Linux. As a software developer, I would usually need the standard build tools installed on my machine.
Installing build tools in Debian/Ubuntu
In Debian/Ubuntu, you can install the typical build tools by installing the package build-essential, which is just a pseudo-package that downloads all the popular development packages:
# apt-get install build-essential
Installing build tools in CentOS
Since I prefer CentOS as my server platform, I also occasionally need to install packages using yum.
@vunb
vunb / ~.bash_profile
Created October 31, 2013 11:30
Reload: source ~/.bash_profile
[vi@Manlab java_sdk_1.6.0]$ more ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
@vunb
vunb / soxConverter.sh
Created November 4, 2013 04:57
Recording voice prompts with Audacity and SOX Ref: http://www.bfrigon.com/custom_voice_prompts/
#!/bin/sh
mkdir -p alaw
mkdir -p ulaw
mkdir -p gsm
mkdir -p wav
mkdir -p sln16
mkdir -p g722
# 1. Output to Console
# All logging will be redirected to your console.
# Specific properties: PropertyConfigurator.configure("/log4j.properties");
# Root logger option
log4j.rootLogger=INFO, stdout
# Direct log messages to stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
@vunb
vunb / ffmpeg-convert-mp3-to-wave
Created November 7, 2013 04:52
Convert mp3 to wave format using ffmpeg
ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 16000 output.wav
# To convert all mp3 files in a directory in Linux:
for f in *.mp3; do ffmpeg -i "$f" -acodec pcm_s16le -ac 1 -ar 16000 "${f%.mp3}.wav"; done
# Or Windows:
for /r %i in (*) do ffmpeg -i %i -acodec pcm_s16le -ac 1 -ar 16000 %i.wav