There are many nice software packages developed for that with various level of accuracy:
Gentle - Kaldi-based aligner, works as a service.
Older implementations:
Aligner Demo in Sphinx4 - CMUSphinx toolkit in java
SAIL align - HTK-based aligner, quite some pack of perl scripts.