From 2e92dd91cb2fec9c1a607b6ce6103b1b5a9e21cf Mon Sep 17 00:00:00 2001 From: Lukasz Date: Mon, 11 Mar 2024 11:06:16 +0100 Subject: [PATCH 1/2] Add pre build step --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 9c03d61..db65ffe 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,20 @@ This API server enables audio transcription using the OpenAI Whisper models. # Build from source +Before build make sure that **CGO_ENABLED** env is set to **1** + +``` +set CGO_ENABLED 1 +``` + +or preferable set it parament. Then check it via + +``` +go env +``` + +Also you have to have installed gcc x64 i.e. by MYSYS + Download the sources and use `go build`. For example, you can build using the following command: From eb632c9b17e3aafafff9f751c3d015e675ce3635 Mon Sep 17 00:00:00 2001 From: Lukasz Date: Thu, 14 Mar 2024 14:02:37 +0100 Subject: [PATCH 2/2] Fix review remarks --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index db65ffe..313ba81 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,10 @@ This API server enables audio transcription using the OpenAI Whisper models. Before build make sure that **CGO_ENABLED** env is set to **1** ``` -set CGO_ENABLED 1 +$env:CGO_ENABLED = "1" ``` -or preferable set it parament. Then check it via +you can check this with this command ``` go env