The voice configuration files for the individual languages are written in JavaScript since 2018-08-28.
Before that, it used a Prolog engine. See discussion in the forum (refering to the Prolog system): https://groups.google.com/forum/#!searchin/osmand/voice/osmand/6sHUSVyybUI/discussion