Commit Graph

56 Commits

Author SHA1 Message Date
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
dabinat
c90828921e Removed unnecessary variables in API 2019-03-22 01:37:00 -07:00
dabinat
192e17f2d5 Expose letter timings on the API 2019-03-21 18:07:24 -07:00
Reuben Morais
91fa181b74 Update to TensorFlow 1.13 2019-03-19 08:01:47 -03:00
Alexandre Lissy
5d842c284b Extract TensorFlow version ourselves 2019-01-23 12:51:05 +01:00
Alexandre Lissy
6323a1428f Proper DeepSpeech error codes
Fixes #1782
2019-01-22 19:05:43 +01:00
Alexandre Lissy
0493b9aae5 Fix incorrect previous_state_h identification
Fixes #1843
2019-01-22 16:07:17 +01:00
Alexandre Lissy
9b845533c9 Proper TFLite error checking
Fixes #1842
2019-01-22 15:53:36 +01:00
Alexandre Lissy
8226dbc6ca Pull tensors from TFLite model by name
Fixes #1835
2019-01-16 23:28:34 +01:00
Reuben Morais
30cf4a3a54
Merge pull request #1834 from mozilla/issue1828
Update decoder parameter names in native client (Fixes #1828)
2019-01-15 14:02:44 +00:00
Alexandre Lissy
08c9c9ab79 Add basic Android native_client testing
Fixes #1785
2019-01-15 13:23:49 +01:00
Reuben Morais
366a82d7e7 Update decoder parameter names in native client 2019-01-15 09:32:31 -02:00
Carlos Fonseca M
17517cb453 Add math defines Windows 2018-12-15 11:43:17 -06:00
Reuben Morais
440893c58d Simplify ctcdecode API signatures to avoid nested STL structures
Flatten structure to avoid nested STL structures which are awkward to
wrap with SWIG and slower at runtime.
2018-11-03 07:48:02 -03:00
Reuben Morais
3cc9b3711d Use ctcdecode in native client 2018-10-25 17:01:08 -03:00
Alexandre Lissy
3dad37eb05 Remove AOT 2018-09-20 17:02:36 +02:00
Reuben Morais
799baf1f99 Fix parameter inference from model shape 2018-09-17 11:20:40 -03:00
Reuben Morais
6f27928841 Free StreamingState pointer with delete instead of new, expose cheap state deallocation API 2018-08-10 12:32:32 -03:00
Reuben Morais
51cac1031b Address review comments 2018-08-03 14:46:05 -03:00
Reuben Morais
385bc7a65f Remove word count bonus in favor of length normalization 2018-08-02 13:22:24 -03:00
Reuben Morais
8f810ee001 Add intermediateDecode method to the API 2018-08-02 13:22:24 -03:00
Reuben Morais
9b8871cd94 Infer n_steps and n_context from model file 2018-08-02 13:22:24 -03:00
Reuben Morais
ae9c62cae9 Convert native API to C instead of C++ 2018-08-02 13:22:24 -03:00
Reuben Morais
400c9c0e5d Streaming inference 2018-08-02 13:22:24 -03:00
Alexandre Lissy
6c4d4f1e68 Expose versions numbers on stderr
Fixes #1292
2018-03-16 09:46:31 +01:00
Alexandre Lissy
0c323e8c67 Support MemmappedFileSystem
Fixes #1231
2018-02-15 12:18:52 +01:00
Alexandre Lissy
bcfd4fd409 Update for r1.5 2018-02-14 11:58:48 +01:00
Alexandre Lissy
ade66b015d Build TensorFlow as monolithic into libdeepspeech.so
Also limit the set of included Ops to avoid wasting size.
2018-01-31 16:53:57 +01:00
Alexandre Lissy
db09ab7d19 Preliminary support for libdeepspeech_model.so 2017-11-03 17:25:25 +01:00
Reuben Morais
ad45ab47e6 Detect and warn about alphabets that don't match the model shape 2017-11-01 19:58:57 -02:00
Reuben Morais
17966809b7 Print error messages in Model construction instead of silently continuing 2017-11-01 19:58:57 -02:00
Reuben Morais
980c66b29c Add a proper name for the logits output in the graph and use it 2017-10-08 23:32:17 -03:00
Reuben Morais
d8b059c623 Make the new decoder optional 2017-10-08 23:32:11 -03:00
Reuben Morais
02a75041ae Use the decoder with LM in the native clients 2017-09-29 17:42:07 -03:00
Reuben Morais
1c4cbf1813 Support custom alphabet mappings (Fixes #692) (#797)
Support custom alphabet mappings
2017-08-31 11:51:15 +02:00
Chris Lord
d829eb4436 Split audioToInputVector into a separate library
Split out functions that don't depend on TensorFlow into a separate
library to avoid opening the TensorFlow library if it's not necessary.
2017-06-27 10:16:54 +01:00
Chris Lord
08deda2b92 Improve build process and instructions to fix performance issues
Certain optimisations that TensorFlow recommends cause significant
performance penalties in c_speech_features. Explicitly disable these
features in the BUILD file only for c_speech_features.

The build has been restructured to produce a single deepspeech library,
rather than 3 separate deepspeech, c_speech_features and kissfft
libaries. This should make the deepspeech client and libraries
significantly easier to use and distribute.
2017-05-17 10:52:14 +01:00
Chris Lord
616d77ef2d Various renames in libdeepspeech to allow for clearer more efficient use
libdeepspeech now uses the namespace DeepSpeech. The 'DeepSpeech' class
has been renamed to 'Model', 'getMfccFrames' has been renamed to
'getInputVector' and a function outside of the Model class has been added,
'audioToInputVector' to allow it to be used without initialising
TensorFlow and loading a model.
2017-05-17 10:52:14 +01:00