Skip to content

Commit

Permalink
feat: allow unicode (en_US) model paths (#26)
Browse files Browse the repository at this point in the history
* feat: allow unicode (en_US) model paths

* fix: revert node-gyp version
  • Loading branch information
dsouza95 authored Nov 28, 2023
1 parent b1cf2f9 commit 6da09d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions native_client/stt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <string>
#include <utility>
#include <vector>
#include <locale>

#include "coqui-stt.h"
#include "alphabet.h"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6da09d5

Please # to comment.