prints out a list pronunciation files to be added manually, because audiosetter.pl was unable to add them automatically
scans for pronunciation files in Wikimedia Commons and writes results in audio/ directory for later use in scripts setting pronunciation on Wiktionary
reads pronunciation files from audio/ directory and sets them in Wiktionary
sets category sorting of media files on Wikimedia Commons
counts how many audio files have been added by audiosetter.pl
adds German pronunciation on German Wiktionary using an improved algorithm
- Unix-like operating system
- Perl modules: MediaWiki::Bot version 3.3.1 or newer, Array::Compare
- account in MediaWiki with bot flag
Copy settings.ini.example to settings.ini and set your bot username and password.
audiosetter.pl supports the following Wiktionaries:
Adding audio files to Wiktionary
./audio_fetcher.pl ./audiosetter.pl -w en -a ./count_audio.pl -w en
Saves information on available pronunciation files to audio/ directory.
./audiosetter.pl -w en -a
Adds pronunciation files on English Wiktionary (
-w en) in all available languages (
-a). Will take a lot of time, see below how to stop it.
./count_audio.pl -w en
Prints a MediaWiki table with a summary of work done.
./count_audio.pl -w en > /tmp/en.txt && ./audio_errors.pl -w en >> /tmp/en.txt
Saves a summary of added files and skipped files to /tmp/en.txt.
You can kill audiosetter.pl at any time using Ctrl+C. It will save progress in done/ directory and resume without repeating anything when started for the next time.
Running for chosen languages
Use ./audiosetter.pl with option like
-l de,fi,ru instead of
Running again after all work is done
./audio_fetcher.pl --cleanstart --cleancache
audio_fetcher.pl caches web pages, so running it again normally won't detect any new files. Use --cleanstart and --cleancache options to fetch new audio files.
./audiosetter.pl --cleanstart -w en -a
After you run audio_fetcher.pl, run audiosetter.pl for the first time with --cleanstart option. This will reset done/ directory and the count of added files. Otherwise audiosetter.pl will consider all work done and finish without doing anything.
Source code, bug reports
All code created by Derbeth under MIT license.