Created
February 10, 2020 16:02
-
-
Save Hiroshiba/60854a2a6bd137b93371c595388af4d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"%%bash\n", | |
"echo '''\n", | |
"0\t[sym_0]\tz e N b e: p a b u r i q sh a: z u ky o: k a i n o\n", | |
"1\t[sp_0]\tsp\n", | |
"2\t[sym_1]\tb e s u t o\n", | |
"3\t[sp_1]\tsp\n", | |
"4\t[sym_2]\ts u t o r a t e j i: g e: m u o b u z a i y a: o\n", | |
"5\t[sp_2]\tsp\n", | |
"6\t[sym_3]\tn i h o N j i N t o sh i t e j u sh o:\n", | |
"7\t[<s>]\tsilB\n", | |
"8\t[</s>]\tsilE\n", | |
"''' > /tmp/jvs010_020.dict\n", | |
"\n", | |
"echo '''\n", | |
"0 8 1 0 1\n", | |
"1 6 2 0 0\n", | |
"2 5 3 0 0\n", | |
"3 4 4 0 0\n", | |
"4 3 5 0 0\n", | |
"5 2 6 0 0\n", | |
"6 1 7 0 0\n", | |
"7 0 8 0 0\n", | |
"8 7 9 0 0\n", | |
"9 -1 -1 1 0\n", | |
"''' > /tmp/jvs010_020.dfa" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"%%bash\n", | |
"WAVE=/mnt/c/Users/hihok/Downloads/jvs_ver1/jvs_ver1/jvs010/parallel100/wav24kHz16bit/VOICEACTRESS100_020.wav\n", | |
"sox $WAVE /tmp/jvs010_020.wav channels 1 rate 16k" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"%%bash\n", | |
"echo /tmp/jvs010_020.wav |\\\n", | |
"julius \\\n", | |
" -input file \\\n", | |
" -h /mnt/c/Users/hihok/Github/dictation-kit/model/phone_m/jnas-tri-3k16-gid.hmmdefs \\\n", | |
" -hlist /mnt/c/Users/hihok/Github/dictation-kit/model/phone_m/logicalTri \\\n", | |
" -gram /tmp/jvs010_020 \\\n", | |
" -palign \\\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": { | |
"scrolled": true | |
}, | |
"outputs": [], | |
"source": [ | |
"%%bash\n", | |
"echo /tmp/jvs010_020.wav |\\\n", | |
"julius \\\n", | |
" -input file \\\n", | |
" -h /mnt/c/Users/hihok/Github/dictation-kit/model/phone_m/jnas-mono-16mix-gid.hmmdefs \\\n", | |
" -gram /tmp/jvs010_020 \\\n", | |
" -palign \\\n" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.6.9" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment