From e25b4c8272a894cd4d8b04fea373c54a0eb4e5d3 Mon Sep 17 00:00:00 2001 From: chenqianhe <1278095698@qq.com> Date: Thu, 26 Jan 2023 10:43:06 +0800 Subject: [PATCH] addon: remove iostream --- examples/addon/addon.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/addon/addon.cpp b/examples/addon/addon.cpp index 05ddf8d..053fb3a 100644 --- a/examples/addon/addon.cpp +++ b/examples/addon/addon.cpp @@ -2,7 +2,6 @@ #include #include #include -#include #include "napi.h" @@ -392,9 +391,10 @@ Napi::Object whisper(const Napi::CallbackInfo& info) { // run model run(params, result); - std::cout << "RESULT:" << std::endl; + fprintf(stderr, "RESULT:\n"); for (auto sentence:result) { - std::cout << sentence[0] << " " << sentence[1] << " " << sentence[2] << std::endl; + fprintf(stderr, "t0: %s, t1: %s, content: %s \n", + sentence[0].c_str(), sentence[1].c_str(), sentence[2].c_str()); } Napi::Object res = Napi::Array::New(env, result.size());