Commit Graph

93 Commits

Author SHA1 Message Date
Reuben Morais
03ca94887c Move DS_ErrorCodeToErrorMessage impl to its own object so it can be used without including all of libdeepspeech 2020-06-30 09:52:44 +02:00
Reuben Morais
d3d5398d6b Move error definition and description together 2020-05-18 17:30:48 +02:00
Reuben Morais
7ed900e333 Add better error information in Scorer initialization 2020-05-18 11:19:19 +02:00
Reuben Morais
5deb8a2f7b Don't leave partially initialized scorer on failure 2020-05-03 15:39:07 +02:00
Reuben Morais
1547498e82 Const members in structs 2020-03-18 19:32:57 +01:00
Reuben Morais
ea8c7d2957 Add DS_IntermediateDecodeWithMetadata 2020-03-17 14:47:58 +01:00
Reuben Morais
69bd032605 Improve API naming around Metadata objects 2020-03-17 14:47:58 +01:00
dabinat
e0c42f01a4 Moved result limiting to ModelState instead of CTC decoder 2020-03-17 14:47:58 +01:00
dabinat
969b2ac4ba Changed variable names to match coding style 2020-03-17 14:47:58 +01:00
dabinat
32c969c184 Expose multiple transcriptions through the API 2020-03-17 14:47:58 +01:00
Reuben Morais
a97e961d16 Fix nits 2020-02-26 14:47:45 +01:00
Shubham Kumar
03196c875d used strdup for showing error 2020-02-26 18:17:50 +05:30
Shubham Kumar
c77d3d6f2d added documentation 2020-02-26 14:26:43 +05:30
Shubham Kumar
4fd747e540 added implementation of DS_ErrorCodeToErrorMessage 2020-02-26 13:30:05 +05:30
Reuben Morais
b74738a405 Make const functions receive const ModelState pointers 2020-02-25 11:15:45 +01:00
Reuben Morais
7001a17418 Expose version in a consumable way 2020-02-13 17:34:58 +01:00
Reuben Morais
8e9b6ef7b3 Embed default beam width into exported graph and remove param from DS_CreateModel 2020-02-11 21:23:05 +01:00
Reuben Morais
8dedda7759 Address review comments 2020-02-11 19:44:36 +01:00
Reuben Morais
1e2eb96248 Update all API consumers 2020-02-11 19:44:36 +01:00
Reuben Morais
ab08f5ee5a Change decoder API 2020-02-11 19:44:26 +01:00
Reuben Morais
8c82081779 Embed alphabet directly in model 2019-11-05 09:02:21 +01:00
Reuben Morais
0241f725cd Expose model sample rate in API 2019-10-10 21:45:33 +02:00
Reuben Morais
2f4116695f Remove unused sample rate param from API 2019-10-10 14:34:00 +02:00
JRMeyer
fed5039cc7 Fixing typo s/StreamingContext/StreamingState/
X-DeepSpeech: NOBUILD
2019-09-26 12:05:37 -07:00
Reuben Morais
c402b971d6 Remove unused params and make function names more consistent 2019-09-09 11:35:44 +02:00
Reuben Morais
89f63dcd69 Make Scorer init fallible and check it in callers 2019-08-26 13:59:15 +02:00
Reuben Morais
4dabd248bc Make Alphabet copyable and default-constructable and avoid pointers 2019-08-23 12:19:32 +02:00
Reuben Morais
4d882a8aec Simplify decoder impl by making it object oriented, avoid pointers where possible 2019-08-23 12:19:32 +02:00
Alexandre Lissy
81b3b159c4 Remove ununsed prealloc frames
Fixes #2298
2019-08-20 18:38:46 +02:00
Reuben Morais
d50c0397c7 Use bazel workspace status to generate versions 2019-06-25 18:03:52 -03:00
Reuben Morais
e51b9d987d Remove previous state model variable, track by hand in StreamingState instead 2019-06-18 19:38:59 -03:00
Reuben Morais
6e78bac799 Address review comments 2019-06-18 19:38:59 -03:00
Reuben Morais
6f953837fa Refactor TF and TFLite model implementations into their own classes/files 2019-06-18 19:38:59 -03:00
Reuben Morais
d9c2bec35d Move decoder state to StreamingState and fix leak when creating multiple streams per model 2019-06-10 12:21:09 -03:00
Reuben Morais
be0da45878 Use separate execution plans for acoustic model and feature computation invoke calls 2019-05-30 17:39:42 -03:00
Alexandre Lissy
c95397c7ce Move init of previous_state_{c,h}
Fixes #2125
2019-05-22 18:29:24 +02:00
dabinat
d9a269412e CTC beam search streaming decoder (+6 squashed commits)
Squashed commits:
[2941b47] Fixed nits
[700572e] Restored old CTC decoder API
[5aaf75d] Fixed nits
[969d71a] Added a destructor for DecoderState
[af0be6e] Removed accumulated_logits
[9dcb7b4] CTC beam search streaming decoder
2019-05-21 20:54:19 -07:00
Reuben Morais
0b4b806cbf
Merge pull request #2011 from mozilla/free-strings
Provide an API function to free strings returned by API (Fixes #1979)
2019-04-08 19:25:34 -03:00
Reuben Morais
4b9f3fbe7d Provide an API function to free strings returned by API 2019-04-05 21:37:34 -03:00
Reuben Morais
a72b69020d Add probability to Metadata struct and fix memory management of metadata 2019-04-05 21:37:24 -03:00
Reuben Morais
7f6fd8b48b Embed more metadata in exported model and read it in native client 2019-04-05 09:35:23 -03:00
Reuben Morais
232df740db Fix TFLite bug in feature computation graph and clean up deepspeech.cc a bit 2019-04-03 10:19:22 -03:00
Reuben Morais
a7cda8e761 Add version info to exported graphs 2019-04-02 21:06:03 -03:00
Reuben Morais
4e9e78fefe Infer number of MFCC features from input shape 2019-04-02 18:31:32 -03:00
Reuben Morais
51f80744c6 Remove DS_AudioToInputVector and dep on c_speech_features 2019-04-02 18:31:32 -03:00
Reuben Morais
1cea2b0fe8 Rewrite input pipeline to use tf.data API 2019-04-02 18:31:32 -03:00
dabinat
594f74efe9 API - Null pointer check 2019-03-30 10:22:43 -07:00
dabinat
26af3b292d API - Minor cleanup 2019-03-22 10:08:13 -07:00
dabinat
0364bfa518 API - Switched to std::unique_ptr 2019-03-22 10:07:44 -07:00
dabinat
c56ec7ac7d Allocate memory C++-style in API 2019-03-22 02:20:00 -07:00