From 6da09d53178cda6b753c0949d6211b80cd91c218 Mon Sep 17 00:00:00 2001 From: Daniel Souza Date: Tue, 28 Nov 2023 11:54:44 -0300 Subject: [PATCH] feat: allow unicode (en_US) model paths (#26) * feat: allow unicode (en_US) model paths * fix: revert node-gyp version --- native_client/stt.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/native_client/stt.cc b/native_client/stt.cc index f173d951e..4f5accdbc 100644 --- a/native_client/stt.cc +++ b/native_client/stt.cc @@ -8,6 +8,7 @@ #include #include #include +#include #include "coqui-stt.h" #include "alphabet.h" @@ -340,6 +341,7 @@ CreateModelImpl(const char* aModelString, unsigned int aBufferSize = 0) { *retval = nullptr; + setlocale(LC_ALL, "en_US.UTF-8"); std::cerr << "TensorFlow: " << tf_local_git_version() << std::endl; std::cerr << " Coqui STT: " << ds_git_version() << std::endl;