Welcome to Sound Comparisons, a website structure for exploring diversity in phonetics across language families from around the world.
We already cover hundreds of regional languages, dialects and accents across various language families:
Just hover the mouse over any map or table view to hear instantaneously the different pronunciations of the same 100-250 words [‘cognate’] across that family, recorded in our fieldwork campaigns.
These databases serve as input to linguistic research to measure how phonetic divergence arose through the histories of these language families (see Heggarty et al. 2010).
Our website offers powerful tools for linguist researchers (to search and filter the database, download all detailed phonetic transcriptions and sound files, create citable links, etc.), but is also multilingual and user-friendly for the general public who actually speak all of these languages, many of them endangered.
php-fpm
installed via apt
, see https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-in-ubuntu-16-04#step-3-install-php-for-processing
/etc/php/7.0/fpm/pool.d/www.conf
:
env[DEPLOYED] = 'true'
env[MYSQL_SERVER] = 'localhost'
env[MYSQL_USER] = 'soundcomparisons'
env[MYSQL_PASSWORD] = '…'
env[MYSQL_DATABASE] = 'v4'
useradd -M soundcomparisons # -M: no homedirectory created
usermod -L soundcomparisons # -L: no login allowed for user
chown -R soundcomparisons.soundcomparisons /srv/soundcomparisons
To export an offline copy of the Sound-Comparisons website follow these steps:
docker
together with the mapnik/run.sh
script to start a local mapnik tileserver for the export.php
installed as the export script is written in it.Navigate to the script/
directory and execute the generateOffline.php
script.
Call it with an EXPORT_TASK
environment variable like one of these calls:
env EXPORT_TASK=data php -f generateOffline.php
env EXPORT_TASK=map php -f generateOffline.php
env EXPORT_TASK=all php -f generateOffline.php
If the EXPORT_TASK
is set to all
or map
, the map tiles will be generated.
sndComp_2017-01-31_export
in the Sound-Comparisons repository a level above the script
directory.sound
directory into this export folder for the sound files to work.
For deployment it isn't strictly necessary to bundle
the export directory with the map tiles and the sound files
if your users are clever enough to copy the files into the locations themselfs.
This may reduce the storage space required by the export.
Also note that it may be helful to compress the export
because some file systems don't perform well when copying many small files.