From 18a192b47060efb8167e21028fe74541d93e97a0 Mon Sep 17 00:00:00 2001
From: PAB <pierreantoine.bannier@gmail.com>
Date: Thu, 16 May 2024 18:16:42 +0200
Subject: [PATCH] fix : quantization (#176)

---
 bark.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bark.cpp b/bark.cpp
index 84930b9..bc589e2 100644
--- a/bark.cpp
+++ b/bark.cpp
@@ -2417,6 +2417,13 @@ bool bark_model_quantize(const char* fname_inp, const char* fname_out, enum ggml
         return false;
     }
 
+    // neural codec (not quantized, since this seriously degrates the audio quality)
+    // copy the rest of fin to fout
+    char c;
+    while (fin.get(c)) {
+        fout.put(c);
+    }
+
     fin.close();
     fout.close();