Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

add gpu define for offlne-stream

雾聪87a8caf02526
diff --git a/runtime/onnxruntime/src/offline-stream.cpp b/runtime/onnxruntime/src/offline-stream.cpp
index 8941a0583..abe13aee5 100644
--- a/runtime/onnxruntime/src/offline-stream.cpp
+++ b/runtime/onnxruntime/src/offline-stream.cpp
@@ -36,7 +36,9 @@ OfflineStream::OfflineStream(std::map<std::string, std::string>& model_path, int
string seg_dict_path;
if(use_gpu){
+ #ifdef USE_GPU
asr_handle = make_unique<ParaformerTorch>();
+ #endif
}else{
asr_handle = make_unique<Paraformer>();
}