Skip to content
Create GLS packages to use with GlossikaNative.
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Add expected directories to gitignore Jul 10, 2018
requirements.txt Remove unused variable in split_audio Jul 10, 2018

GlossikaNative GLS packager

A set of Python scripts to create GLS packages for use with the Natibo app. The text splitter uses pdftotext which is only available on Linux, sorry Windoze users! Audio splitter should work on Linux/Windoze.

Scripts and their functions

This splits the PDFs into individual sentences and saves all sentences in a tab separated file with the sentence number and various sentence parts (sentence, ipa, romanization, etc.). It relies on pdftotext and isn't available on Windoze, unfortunately. You can try the online version of these scripts if you're on Windoze.

This splits the audio from the GMS files into individual files using the silence as a seperator.

This splits the audio from the GMS files using timings taken from Audacity + a one-line header pointing to the filename of the audio file. should be used to have automatic conversion. This is just here in case it's important for someone in the future again.

This packages everything together into a zip file and renames it as a .gls file that can be sent to Natibo.

Some things to help clean up the timing files that Audacity spits out.


You will need to create a texts, files and output directory. Put all your PDFs texts, GMS-B files (for example) into files. Run followed by and finally The results will be in the output directory.

There are various ways of doing this.

Here is an example:

git clone
cd GlossikaNativeGLS

mkdir texts files output
cp ~/GlossikaCourses/Spanish/ENES-F123-EBK/*.pdf texts
cp ~/GlossikaCourses/Spanish/ENES-F1-GMS/GMS-B/*.mp3 files

python3 ./ 
Checking 'texts/GLOSSIKA-ENES-F2-EBK.pdf'
Checking 'texts/GLOSSIKA-ENES-F1-EBK.pdf'
Checking 'texts/GLOSSIKA-ENES-F3-EBK.pdf'

python3 ./   
Analyzing 'files/ENES-F1-GMS-B-0001.mp3'

python3 ./


All code (written by me) is released into the Public Domain.

You can’t perform that action at this time.