Skip to content

Commit

Permalink
Fix building node-addon for Windows x86. (#1469)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Oct 25, 2024
1 parent d5a2f52 commit 3d6344e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,12 @@ static Napi::Array OfflineSpeakerDiarizationProcessWrapper(

for (int32_t i = 0; i != num_segments; ++i) {
Napi::Object obj = Napi::Object::New(env);

obj.Set(Napi::String::New(env, "start"), segments[i].start);
obj.Set(Napi::String::New(env, "end"), segments[i].end);
obj.Set(Napi::String::New(env, "speaker"), segments[i].speaker);

ans[i] = obj;
ans.Set(i, obj);
}

SherpaOnnxOfflineSpeakerDiarizationDestroySegment(segments);
Expand Down

0 comments on commit 3d6344e

Please sign in to comment.