-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
303 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
cmake_minimum_required(VERSION 3.23) | ||
project(KaldiAligner) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
|
||
set(KALDI_ROOT /opt/kaldi) | ||
|
||
include_directories(include ${KALDI_ROOT}/tools/phonetisaurus-g2p/src/ ${KALDI_ROOT}/tools/phonetisaurus-g2p/src/3rdparty/utfcpp ${KALDI_ROOT}/tools/openfst/include ${KALDI_ROOT}/src /usr/local/cuda/include) | ||
link_directories(${KALDI_ROOT}/tools/openfst/lib ${KALDI_ROOT}/src/lib) | ||
|
||
SET(PHONETISAURUS_OBJ ${KALDI_ROOT}/tools/phonetisaurus-g2p/src/lib/phonetisaurus_g2pfst-util.o) | ||
|
||
add_compile_definitions(HAVE_CUDA) | ||
add_executable(KaldiAligner src/main.cpp src/g2p.cpp src/lex.cpp src/kaldi.cpp src/signaling.cpp ${PHONETISAURUS_OBJ}) | ||
target_link_libraries(KaldiAligner fst kaldi-feat kaldi-base kaldi-util kaldi-matrix kaldi-transform kaldi-ivector kaldi-online2 kaldi-decoder kaldi-hmm kaldi-tree kaldi-nnet3 kaldi-cudamatrix kaldi-lat) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef KALDIALIGNER_INCLUDE_SIGNALING_H_ | ||
#define KALDIALIGNER_INCLUDE_SIGNALING_H_ | ||
|
||
void init_wait(); | ||
void wait_for_signal(); | ||
void do_signal(); | ||
|
||
#endif //KALDIALIGNER_INCLUDE_SIGNALING_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.