Skip to content

Commit

Permalink
# This is a combination of 10 commits.
Browse files Browse the repository at this point in the history
# This is the 1st commit message:

Loading model from both path or array of bytes

# The commit message #2 will be skipped:

# Loading ExtScorer from array of bytes

# The commit message #3 will be skipped:

# removing debug info

# The commit message #4 will be skipped:

# Exposing methods DS_CreateModelFromBuffer and DS_EnableExternalScorerFromBuffer

# The commit message #5 will be skipped:

# Loading tflite buffer from buffer working

# The commit message #6 will be skipped:

# Fixing API functions exposition

# The commit message #7 will be skipped:

# load_trie with default value for load_from_bytes

# The commit message #8 will be skipped:

# Seting a default value for load_from_bytes in load_lm

# The commit message #9 will be skipped:

# -Change string to char* in the API

# The commit message #10 will be skipped:

# Loading model from both path or array of bytes
  • Loading branch information
bernardohenz committed Sep 30, 2020
2 parents feb33f8 + bfed42b commit e42c7cb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions native_client/deepspeech.cc
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,10 @@ StreamingState::processBatch(const vector<float>& buf, unsigned int n_steps)
}

int
DS_CreateModel_(const std::string &aModelString,
DS_CreateModel_(const char* aModelString,
bool init_from_bytes,
ModelState** retval)
ModelState** retval,
size_t bufferSize=0)
{
*retval = nullptr;

Expand Down Expand Up @@ -348,8 +349,9 @@ DS_FreeModel(ModelState* ctx)

int
DS_EnableExternalScorer_(ModelState* aCtx,
const std::string &aScorerString,
bool init_from_bytes)
const char* aScorerString,
bool init_from_bytes,
size_t bufferSize=0)
{
std::unique_ptr<Scorer> scorer(new Scorer());

Expand Down

0 comments on commit e42c7cb

Please sign in to comment.