| | |
| | | #include "precomp.h" |
| | | #include <unistd.h> |
| | | |
| | | namespace funasr { |
| | | TpassStream::TpassStream(std::map<std::string, std::string>& model_path, int thread_num) |
| | |
| | | use_punc = true; |
| | | } |
| | | } |
| | | |
| | | #if !defined(__APPLE__) |
| | | // Optional: ITN, here we just support language_type=MandarinEnglish |
| | | if(model_path.find(ITN_DIR) != model_path.end()){ |
| | | string itn_tagger_path = PathAppend(model_path.at(ITN_DIR), ITN_TAGGER_NAME); |
| | |
| | | use_itn = true; |
| | | } |
| | | } |
| | | #endif |
| | | |
| | | } |
| | | |
| | |
| | | mm = new TpassStream(model_path, thread_num); |
| | | return mm; |
| | | } |
| | | } // namespace funasr |
| | | } // namespace funasr |