diff --git a/sherpa-onnx/c-api/c-api.cc b/sherpa-onnx/c-api/c-api.cc index 3f36d1a7f..625f608a9 100644 --- a/sherpa-onnx/c-api/c-api.cc +++ b/sherpa-onnx/c-api/c-api.cc @@ -1281,7 +1281,6 @@ const SherpaOnnxGeneratedAudio *SherpaOnnxOfflineTtsGenerateWithCallbackWithArg( void SherpaOnnxDestroyOfflineTtsGeneratedAudio( const SherpaOnnxGeneratedAudio *p) { SHERPA_ONNX_LOGE("TTS is not enabled. Please rebuild sherpa-onnx"); - return nullptr; } #endif // SHERPA_ONNX_ENABLE_TTS == 1