Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit e42c7cb

Browse files
committed
# This is a combination of 10 commits.
# 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
2 parents feb33f8 + bfed42b commit e42c7cb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

native_client/deepspeech.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,10 @@ StreamingState::processBatch(const vector<float>& buf, unsigned int n_steps)
263263
}
264264

265265
int
266-
DS_CreateModel_(const std::string &aModelString,
266+
DS_CreateModel_(const char* aModelString,
267267
bool init_from_bytes,
268-
ModelState** retval)
268+
ModelState** retval,
269+
size_t bufferSize=0)
269270
{
270271
*retval = nullptr;
271272

@@ -348,8 +349,9 @@ DS_FreeModel(ModelState* ctx)
348349

349350
int
350351
DS_EnableExternalScorer_(ModelState* aCtx,
351-
const std::string &aScorerString,
352-
bool init_from_bytes)
352+
const char* aScorerString,
353+
bool init_from_bytes,
354+
size_t bufferSize=0)
353355
{
354356
std::unique_ptr<Scorer> scorer(new Scorer());
355357

0 commit comments

Comments
 (0)