Skip to content

Instantly share code, notes, and snippets.

@jimregan
Last active January 13, 2017 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimregan/1812c8b506524d7b57c34a235fc475a6 to your computer and use it in GitHub Desktop.
Save jimregan/1812c8b506524d7b57c34a235fc475a6 to your computer and use it in GitHub Desktop.
ag EH G
ag(2) AE G
ag(3) IH G
an AA N
an(2) AE N
an(3) N
féin F EY N
féin(2) HH EY N
laoghaire L EY R AE
laoghaire(2) L EY R IH
laoghaire(3) L EY D IH
laoghaire(4) L EY D AE
laoghaire(5) L EY D EH
laoghaire(6) L EY R EH
mo M AH
peadar P AE D IH R
peadar(2) P AE D IH D
scéal SH K EY L
sgéal SH K EY L
t-athair T AE HH IH R
t-athair(2) T AE HH IH D
t-athair(3) T AE HH EH R
t-athair(4) T AE HH EH D
ua OW
ua(2) AH
wget https://upload.wikimedia.org/wikipedia/commons/a/a2/MSF_chapter_1.ogg
wget https://upload.wikimedia.org/wikipedia/commons/8/83/MSF_chapter_2.ogg
wget https://upload.wikimedia.org/wikipedia/commons/6/60/MSF_chapter_3.ogg
wget https://upload.wikimedia.org/wikipedia/commons/e/ee/MSF_chapter_4.ogg
wget https://upload.wikimedia.org/wikipedia/commons/b/b3/MSF_chapter_5.ogg
wget https://upload.wikimedia.org/wikipedia/commons/2/21/MSF_chapter_6.ogg
wget https://upload.wikimedia.org/wikipedia/commons/7/71/MSF_chapter_7.ogg
wget https://upload.wikimedia.org/wikipedia/commons/d/d5/MSF_chapter_8.ogg
ffmpeg -ss 0 -t 4 -i MSF_chapter_1.ogg -acodec pcm_s16le -ac 1 -ar 16000 tmp.wav
sox -n -r 16000 -c 1 silence.wav trim 0.0 3.0
sox tmp.wav silence.wav sent1.wav
rm tmp.wav
$ pocketsphinx_continuous -hmm /usr/local/share/pocketsphinx/model/en-us/en-us/ -dict dict -jsgf sent1.jsg -infile sent1.wav 2> /dev/null
mo scéal féin
ag an t-athair peadar ua laoghaire
#JSGF V1.0;
grammar msf;
<sent1a> = mo scéal féin ;
<sent1b> = ag an t-athair peadar ua laoghaire ;
public <sent1> = <sent1a> | <sent1b> ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment