├── .cardboardlint.yml ├── .compute ├── .dockerignore ├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── config.yml │ └── feature_request.md ├── actions │ ├── check_artifact_exists │ │ ├── README.md │ │ ├── action.yml │ │ ├── dist │ │ │ ├── index.js │ │ │ └── licenses.txt │ │ ├── main.js │ │ ├── package-lock.json │ │ └── package.json │ ├── chroot-bind-mount │ │ └── action.yml │ ├── get_cache_key │ │ ├── README.md │ │ └── action.yml │ ├── install-python-upstream │ │ └── action.yml │ ├── install-xldd │ │ └── action.yml │ ├── multistrap │ │ └── action.yml │ ├── node-build │ │ └── action.yml │ ├── node-install │ │ └── action.yml │ ├── numpy_vers │ │ ├── README.md │ │ └── action.yml │ ├── python-build │ │ └── action.yml │ ├── run-tests │ │ └── action.yml │ ├── upload-release-asset │ │ └── action.yml │ ├── win-install-sox │ │ └── action.yml │ ├── win-node-build │ │ └── action.yml │ ├── win-numpy-vers │ │ ├── README.md │ │ └── action.yml │ ├── win-python-build │ │ └── action.yml │ └── win-run-tests │ │ └── action.yml ├── lock.yml ├── pull_request_template.md └── workflows │ ├── build-and-test.yml │ └── lint.yml ├── .gitignore ├── .gitmodules ├── .isort.cfg ├── .pre-commit-2.11.1.pyz ├── .pre-commit-config.yaml ├── .pylintrc ├── .readthedocs.yml ├── .taskcluster.yml.disabled ├── BIBLIOGRAPHY.md ├── CODE_OF_CONDUCT.md ├── CODE_OWNERS.rst ├── CONTRIBUTING.rst ├── Dockerfile.build ├── Dockerfile.train ├── Dockerfile.train.dockerignore ├── Dockerfile.train.jupyter ├── GRAPH_VERSION ├── LICENSE ├── MANIFEST.in ├── Makefile ├── README.rst ├── RELEASE_NOTES.md ├── VERSION ├── bazel.patch ├── bin ├── README.rst ├── compare_samples.py ├── data_set_tool.py ├── graphdef_binary_to_text.py ├── import_aidatatang.py ├── import_aishell.py ├── import_atthack.py ├── import_ccpmf.py ├── import_cv.py ├── import_cv2.py ├── import_cv_personal.py ├── import_fisher.py ├── import_freestmandarin.py ├── import_gram_vaani.py ├── import_ldc93s1.py ├── import_librivox.py ├── import_lingua_libre.py ├── import_m-ailabs.py ├── import_magicdata.py ├── import_mls.py ├── import_primewords.py ├── import_slr57.py ├── import_swb.py ├── import_swc.py ├── import_ted.py ├── import_timit.py ├── import_ts.py ├── import_tuda.py ├── import_vctk.py ├── import_voxforge.py ├── ops_in_graph.py ├── play.py ├── run-ci-graph_augmentations.sh ├── run-ci-ldc93s1-flac.sh ├── run-ci-ldc93s1-vorbis.sh ├── run-ci-ldc93s1-webdataset.sh ├── run-ci-ldc93s1_checkpoint.sh ├── run-ci-ldc93s1_checkpoint_bytes.sh ├── run-ci-ldc93s1_checkpoint_sdb.sh ├── run-ci-ldc93s1_new.sh ├── run-ci-ldc93s1_new_bytes.sh ├── run-ci-ldc93s1_new_bytes_tflite.sh ├── run-ci-ldc93s1_new_metrics.sh ├── run-ci-ldc93s1_new_sdb.sh ├── run-ci-ldc93s1_new_sdb_csv.sh ├── run-ci-ldc93s1_singleshotinference.sh ├── run-ci-ldc93s1_tflite.sh ├── run-ci-lm-opt.sh ├── run-ci-sample_augmentations.sh ├── run-ci-transfer.sh ├── run-ldc93s1.py └── run-ldc93s1.sh ├── build-python-wheel.yml-DISABLED_ENABLE_ME_TO_REBUILD_DURING_PR ├── ci_scripts ├── aarch64-build.sh ├── all-utils.sh ├── all-vars.sh ├── android-arm64-build.sh ├── android-armv7-build.sh ├── android-package.sh ├── android-x86_64-build.sh ├── armv7-build.sh ├── asserts.sh ├── build-utils.sh ├── cpp-bytes-tests.sh ├── cpp_tflite-tests-prod.sh ├── cpp_tflite-tests.sh ├── cpp_tflite_basic-tests.sh ├── cppwin_tflite-tests.sh ├── electronjs_tflite-tests-prod.sh ├── electronjs_tflite-tests.sh ├── evaluate-export-test.sh ├── host-build.sh ├── ios-build.sh ├── node_tflite-tests-prod.sh ├── node_tflite-tests.sh ├── notebook-tests.sh ├── package-utils.sh ├── package.sh ├── python_tflite-tests-prod.sh ├── python_tflite-tests.sh ├── tf-configure.sh ├── tf-package.sh ├── tf-setup.sh ├── tf-vars.sh ├── train-tests-setup.sh ├── train-unittests.sh ├── wasm-build.sh └── wasm-package.sh ├── data ├── README.rst ├── alphabet.txt ├── lm │ └── generate_lm.py ├── smoke_test │ ├── LDC93S1.flac │ ├── LDC93S1.ogg │ ├── LDC93S1.opus │ ├── LDC93S1.txt │ ├── LDC93S1.wav │ ├── LDC93S1_pcms16le_1_16000.wav │ ├── LDC93S1_pcms16le_1_8000.wav │ ├── LDC93S1_pcms16le_2_44100.wav │ ├── ldc93s1.csv │ ├── ldc93s1_flac.csv │ ├── ldc93s1_opus.csv │ ├── ldc93s1_vorbis.csv │ ├── ldc93s1_wds.tar │ ├── new-home-in-the-stars-16k.wav │ ├── pruned_lm.bytes.scorer │ ├── pruned_lm.scorer │ ├── russian_sample_data │ │ ├── alphabet.ru │ │ ├── ru.csv │ │ └── ru.wav │ ├── vocab.pruned.bytes.txt │ ├── vocab.pruned.txt │ ├── vocab.txt │ └── webdataset │ │ ├── LDC93S1_ogg.ogg │ │ ├── LDC93S1_ogg.txt │ │ ├── LDC93S1_opus.opus │ │ ├── LDC93S1_opus.txt │ │ ├── LDC93S1_wav.txt │ │ └── LDC93S1_wav.wav └── ted │ └── .gitkeep ├── doc ├── .templates │ └── page.html ├── AUGMENTATION.rst ├── Architecture.rst ├── BUILDING.rst ├── BUILDING_DotNet.rst ├── C-API.rst ├── C-Examples.rst ├── CHECKPOINTING.rst ├── COMMON_VOICE_DATA.rst ├── Checkpoint-Inference.rst ├── Contributed-Examples.rst ├── DATASET_IMPORTERS.rst ├── DECODER.rst ├── DEPLOYMENT.rst ├── Decoder-API.rst ├── Dockerfile.docs ├── Dockerfile.docs.dockerignore ├── DotNet-API.rst ├── DotNet-Examples.rst ├── EXPORTING_MODELS.rst ├── Error-Codes.rst ├── Geometry.rst ├── HotWordBoosting-Examples.rst ├── Java-API.rst ├── Java-Examples.rst ├── LANGUAGE_MODEL.rst ├── MIXED_PRECISION.rst ├── Makefile ├── NodeJS-API.rst ├── NodeJS-Examples.rst ├── PARALLEL_OPTIMIZATION.rst ├── Python-API.rst ├── Python-Examples.rst ├── SUPPORT.rst ├── SUPPORTED_PLATFORMS.rst ├── Structs.rst ├── TRAINING_ADVANCED.rst ├── TRAINING_FLAGS.rst ├── TRAINING_INTRO.rst ├── TRANSFER_LEARNING.rst ├── audioTranscript.png ├── conf.py ├── doxygen-c.conf ├── doxygen-dotnet.conf ├── doxygen-java.conf ├── index.rst ├── make.bat ├── playbook │ ├── ABOUT.md │ ├── ALPHABET.md │ ├── AM_vs_LM.md │ ├── DATA_FORMATTING.md │ ├── DEEPSPEECH.md │ ├── DEPLOYMENT.md │ ├── ENVIRONMENT.md │ ├── EXAMPLES.md │ ├── INTRO.md │ ├── LICENSE.md │ ├── README.md │ ├── SCORER.md │ ├── TESTING.md │ ├── TRAINING.md │ └── images │ │ └── nvtop.png ├── requirements.txt └── static │ ├── coqui-STT-circle.png │ └── custom.css ├── ds_generic.supp ├── ds_lib.supp ├── ds_openfst.supp ├── ds_sox.supp ├── evaluate.py ├── evaluate_tflite.py ├── examples └── README.rst ├── images ├── LSTM3-chain.png ├── Parallelism.png ├── coqui-STT-logo-green.png ├── rnn_fig-624x598.png └── usage.gif ├── lm_optimizer.py ├── native_client ├── Android.mk ├── BUILD ├── CODINGSTYLE.md ├── Makefile ├── alphabet.cc ├── alphabet.h ├── args.h ├── bazel_workspace_status_cmd.sh ├── client.cc ├── coqui-stt.h ├── ctcdecode │ ├── COPYING │ ├── LICENSE.paddlepaddle │ ├── LICENSE.parlance │ ├── Makefile │ ├── __init__.py │ ├── build_archive.py │ ├── ctc_beam_search_decoder.cpp │ ├── ctc_beam_search_decoder.h │ ├── decoder_utils.cpp │ ├── decoder_utils.h │ ├── numpy.i │ ├── output.h │ ├── path_trie.cpp │ ├── path_trie.h │ ├── scorer.cpp │ ├── scorer.h │ ├── setup.cfg │ ├── setup.py │ ├── swigwrapper.i │ └── third_party │ │ ├── ThreadPool │ │ ├── COPYING │ │ ├── README.md │ │ ├── ThreadPool.h │ │ └── example.cpp │ │ ├── flashlight │ │ ├── LICENSE │ │ └── flashlight │ │ │ └── lib │ │ │ ├── common │ │ │ ├── String.cpp │ │ │ ├── String.h │ │ │ ├── System.cpp │ │ │ └── System.h │ │ │ └── text │ │ │ ├── decoder │ │ │ ├── Decoder.h │ │ │ ├── LexiconDecoder.cpp │ │ │ ├── LexiconDecoder.h │ │ │ ├── LexiconFreeDecoder.cpp │ │ │ ├── LexiconFreeDecoder.h │ │ │ ├── LexiconFreeSeq2SeqDecoder.cpp │ │ │ ├── LexiconFreeSeq2SeqDecoder.h │ │ │ ├── LexiconSeq2SeqDecoder.cpp │ │ │ ├── LexiconSeq2SeqDecoder.h │ │ │ ├── Trie.cpp │ │ │ ├── Trie.h │ │ │ ├── Utils.cpp │ │ │ ├── Utils.h │ │ │ └── lm │ │ │ │ ├── ConvLM.cpp │ │ │ │ ├── ConvLM.h │ │ │ │ ├── KenLM.cpp │ │ │ │ ├── KenLM.h │ │ │ │ ├── LM.h │ │ │ │ ├── ZeroLM.cpp │ │ │ │ └── ZeroLM.h │ │ │ └── dictionary │ │ │ ├── Defines.h │ │ │ ├── Dictionary.cpp │ │ │ ├── Dictionary.h │ │ │ ├── Utils.cpp │ │ │ └── Utils.h │ │ ├── object_pool │ │ ├── README.mozilla │ │ ├── object_pool.h │ │ └── unique_ptr.h │ │ ├── openfst-1.6.7 │ │ ├── AUTHORS │ │ ├── COPYING │ │ ├── INSTALL │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── NEWS │ │ ├── README │ │ ├── aclocal.m4 │ │ ├── ar-lib │ │ ├── compile │ │ ├── config.guess │ │ ├── config.h.in │ │ ├── config.sub │ │ ├── configure │ │ ├── configure.ac │ │ ├── depcomp │ │ ├── install-sh │ │ ├── ltmain.sh │ │ ├── m4 │ │ │ ├── ac_python_devel.m4 │ │ │ ├── libtool.m4 │ │ │ ├── ltoptions.m4 │ │ │ ├── ltsugar.m4 │ │ │ ├── ltversion.m4 │ │ │ └── lt~obsolete.m4 │ │ ├── missing │ │ ├── src │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── bin │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── fstarcsort-main.cc │ │ │ │ ├── fstarcsort.cc │ │ │ │ ├── fstclosure-main.cc │ │ │ │ ├── fstclosure.cc │ │ │ │ ├── fstcompile-main.cc │ │ │ │ ├── fstcompile.cc │ │ │ │ ├── fstcompose-main.cc │ │ │ │ ├── fstcompose.cc │ │ │ │ ├── fstconcat-main.cc │ │ │ │ ├── fstconcat.cc │ │ │ │ ├── fstconnect-main.cc │ │ │ │ ├── fstconnect.cc │ │ │ │ ├── fstconvert-main.cc │ │ │ │ ├── fstconvert.cc │ │ │ │ ├── fstdeterminize-main.cc │ │ │ │ ├── fstdeterminize.cc │ │ │ │ ├── fstdifference-main.cc │ │ │ │ ├── fstdifference.cc │ │ │ │ ├── fstdisambiguate-main.cc │ │ │ │ ├── fstdisambiguate.cc │ │ │ │ ├── fstdraw-main.cc │ │ │ │ ├── fstdraw.cc │ │ │ │ ├── fstencode-main.cc │ │ │ │ ├── fstencode.cc │ │ │ │ ├── fstepsnormalize-main.cc │ │ │ │ ├── fstepsnormalize.cc │ │ │ │ ├── fstequal-main.cc │ │ │ │ ├── fstequal.cc │ │ │ │ ├── fstequivalent-main.cc │ │ │ │ ├── fstequivalent.cc │ │ │ │ ├── fstinfo-main.cc │ │ │ │ ├── fstinfo.cc │ │ │ │ ├── fstintersect-main.cc │ │ │ │ ├── fstintersect.cc │ │ │ │ ├── fstinvert-main.cc │ │ │ │ ├── fstinvert.cc │ │ │ │ ├── fstisomorphic-main.cc │ │ │ │ ├── fstisomorphic.cc │ │ │ │ ├── fstmap-main.cc │ │ │ │ ├── fstmap.cc │ │ │ │ ├── fstminimize-main.cc │ │ │ │ ├── fstminimize.cc │ │ │ │ ├── fstprint-main.cc │ │ │ │ ├── fstprint.cc │ │ │ │ ├── fstproject-main.cc │ │ │ │ ├── fstproject.cc │ │ │ │ ├── fstprune-main.cc │ │ │ │ ├── fstprune.cc │ │ │ │ ├── fstpush-main.cc │ │ │ │ ├── fstpush.cc │ │ │ │ ├── fstrandgen-main.cc │ │ │ │ ├── fstrandgen.cc │ │ │ │ ├── fstrelabel-main.cc │ │ │ │ ├── fstrelabel.cc │ │ │ │ ├── fstreplace-main.cc │ │ │ │ ├── fstreplace.cc │ │ │ │ ├── fstreverse-main.cc │ │ │ │ ├── fstreverse.cc │ │ │ │ ├── fstreweight-main.cc │ │ │ │ ├── fstreweight.cc │ │ │ │ ├── fstrmepsilon-main.cc │ │ │ │ ├── fstrmepsilon.cc │ │ │ │ ├── fstshortestdistance-main.cc │ │ │ │ ├── fstshortestdistance.cc │ │ │ │ ├── fstshortestpath-main.cc │ │ │ │ ├── fstshortestpath.cc │ │ │ │ ├── fstsymbols-main.cc │ │ │ │ ├── fstsymbols.cc │ │ │ │ ├── fstsynchronize-main.cc │ │ │ │ ├── fstsynchronize.cc │ │ │ │ ├── fsttopsort-main.cc │ │ │ │ ├── fsttopsort.cc │ │ │ │ ├── fstunion-main.cc │ │ │ │ └── fstunion.cc │ │ │ ├── extensions │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── compact │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── Makefile.in │ │ │ │ │ ├── compact16_acceptor-fst.cc │ │ │ │ │ ├── compact16_string-fst.cc │ │ │ │ │ ├── compact16_unweighted-fst.cc │ │ │ │ │ ├── compact16_unweighted_acceptor-fst.cc │ │ │ │ │ ├── compact16_weighted_string-fst.cc │ │ │ │ │ ├── compact64_acceptor-fst.cc │ │ │ │ │ ├── compact64_string-fst.cc │ │ │ │ │ ├── compact64_unweighted-fst.cc │ │ │ │ │ ├── compact64_unweighted_acceptor-fst.cc │ │ │ │ │ ├── compact64_weighted_string-fst.cc │ │ │ │ │ ├── compact8_acceptor-fst.cc │ │ │ │ │ ├── compact8_string-fst.cc │ │ │ │ │ ├── compact8_unweighted-fst.cc │ │ │ │ │ ├── compact8_unweighted_acceptor-fst.cc │ │ │ │ │ └── compact8_weighted_string-fst.cc │ │ │ │ ├── compress │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── Makefile.in │ │ │ │ │ ├── compress-script.cc │ │ │ │ │ ├── fstcompress.cc │ │ │ │ │ └── fstrandmod.cc │ │ │ │ ├── const │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── Makefile.in │ │ │ │ │ ├── const16-fst.cc │ │ │ │ │ ├── const64-fst.cc │ │ │ │ │ └── const8-fst.cc │ │ │ │ ├── far │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── Makefile.in │ │ │ │ │ ├── far-class.cc │ │ │ │ │ ├── farcompilestrings.cc │ │ │ │ │ ├── farcreate.cc │ │ │ │ │ ├── farequal.cc │ │ │ │ │ ├── farextract.cc │ │ │ │ │ ├── farinfo.cc │ │ │ │ │ ├── farisomorphic.cc │ │ │ │ │ ├── farprintstrings.cc │ │ │ │ │ ├── farscript.cc │ │ │ │ │ ├── getters.cc │ │ │ │ │ ├── script-impl.cc │ │ │ │ │ ├── stlist.cc │ │ │ │ │ ├── strings.cc │ │ │ │ │ └── sttable.cc │ │ │ │ ├── linear │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── Makefile.in │ │ │ │ │ ├── fstlinear.cc │ │ │ │ │ ├── fstloglinearapply.cc │ │ │ │ │ ├── linear-classifier-fst.cc │ │ │ │ │ ├── linear-tagger-fst.cc │ │ │ │ │ └── linearscript.cc │ │ │ │ ├── lookahead │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── Makefile.in │ │ │ │ │ ├── arc_lookahead-fst.cc │ │ │ │ │ ├── ilabel_lookahead-fst.cc │ │ │ │ │ └── olabel_lookahead-fst.cc │ │ │ │ ├── mpdt │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── Makefile.in │ │ │ │ │ ├── mpdtcompose.cc │ │ │ │ │ ├── mpdtexpand.cc │ │ │ │ │ ├── mpdtinfo.cc │ │ │ │ │ ├── mpdtreverse.cc │ │ │ │ │ └── mpdtscript.cc │ │ │ │ ├── ngram │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── Makefile.in │ │ │ │ │ ├── bitmap-index.cc │ │ │ │ │ ├── ngram-fst.cc │ │ │ │ │ └── nthbit.cc │ │ │ │ ├── pdt │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── Makefile.in │ │ │ │ │ ├── getters.cc │ │ │ │ │ ├── pdtcompose.cc │ │ │ │ │ ├── pdtexpand.cc │ │ │ │ │ ├── pdtinfo.cc │ │ │ │ │ ├── pdtreplace.cc │ │ │ │ │ ├── pdtreverse.cc │ │ │ │ │ ├── pdtscript.cc │ │ │ │ │ └── pdtshortestpath.cc │ │ │ │ ├── python │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── Makefile.in │ │ │ │ │ ├── basictypes.pxd │ │ │ │ │ ├── fst.pxd │ │ │ │ │ ├── ios.pxd │ │ │ │ │ ├── memory.pxd │ │ │ │ │ ├── pywrapfst.cc │ │ │ │ │ ├── pywrapfst.pxd │ │ │ │ │ └── pywrapfst.pyx │ │ │ │ └── special │ │ │ │ │ ├── Makefile.am │ │ │ │ │ ├── Makefile.in │ │ │ │ │ ├── phi-fst.cc │ │ │ │ │ ├── rho-fst.cc │ │ │ │ │ └── sigma-fst.cc │ │ │ ├── include │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ └── fst │ │ │ │ │ ├── accumulator.h │ │ │ │ │ ├── add-on.h │ │ │ │ │ ├── arc-arena.h │ │ │ │ │ ├── arc-map.h │ │ │ │ │ ├── arc.h │ │ │ │ │ ├── arcfilter.h │ │ │ │ │ ├── arcsort.h │ │ │ │ │ ├── bi-table.h │ │ │ │ │ ├── cache.h │ │ │ │ │ ├── closure.h │ │ │ │ │ ├── compact-fst.h │ │ │ │ │ ├── compat.h │ │ │ │ │ ├── complement.h │ │ │ │ │ ├── compose-filter.h │ │ │ │ │ ├── compose.h │ │ │ │ │ ├── concat.h │ │ │ │ │ ├── config.h │ │ │ │ │ ├── config.h.in │ │ │ │ │ ├── connect.h │ │ │ │ │ ├── const-fst.h │ │ │ │ │ ├── determinize.h │ │ │ │ │ ├── dfs-visit.h │ │ │ │ │ ├── difference.h │ │ │ │ │ ├── disambiguate.h │ │ │ │ │ ├── edit-fst.h │ │ │ │ │ ├── encode.h │ │ │ │ │ ├── epsnormalize.h │ │ │ │ │ ├── equal.h │ │ │ │ │ ├── equivalent.h │ │ │ │ │ ├── expanded-fst.h │ │ │ │ │ ├── expectation-weight.h │ │ │ │ │ ├── extensions │ │ │ │ │ ├── compress │ │ │ │ │ │ ├── compress-script.h │ │ │ │ │ │ ├── compress.h │ │ │ │ │ │ ├── elias.h │ │ │ │ │ │ ├── gzfile.h │ │ │ │ │ │ └── randmod.h │ │ │ │ │ ├── far │ │ │ │ │ │ ├── compile-strings.h │ │ │ │ │ │ ├── create.h │ │ │ │ │ │ ├── equal.h │ │ │ │ │ │ ├── extract.h │ │ │ │ │ │ ├── far-class.h │ │ │ │ │ │ ├── far.h │ │ │ │ │ │ ├── farlib.h │ │ │ │ │ │ ├── farscript.h │ │ │ │ │ │ ├── getters.h │ │ │ │ │ │ ├── info.h │ │ │ │ │ │ ├── isomorphic.h │ │ │ │ │ │ ├── print-strings.h │ │ │ │ │ │ ├── script-impl.h │ │ │ │ │ │ ├── stlist.h │ │ │ │ │ │ └── sttable.h │ │ │ │ │ ├── linear │ │ │ │ │ │ ├── linear-fst-data-builder.h │ │ │ │ │ │ ├── linear-fst-data.h │ │ │ │ │ │ ├── linear-fst.h │ │ │ │ │ │ ├── linearscript.h │ │ │ │ │ │ ├── loglinear-apply.h │ │ │ │ │ │ └── trie.h │ │ │ │ │ ├── mpdt │ │ │ │ │ │ ├── compose.h │ │ │ │ │ │ ├── expand.h │ │ │ │ │ │ ├── info.h │ │ │ │ │ │ ├── mpdt.h │ │ │ │ │ │ ├── mpdtlib.h │ │ │ │ │ │ ├── mpdtscript.h │ │ │ │ │ │ ├── read_write_utils.h │ │ │ │ │ │ └── reverse.h │ │ │ │ │ ├── ngram │ │ │ │ │ │ ├── bitmap-index.h │ │ │ │ │ │ ├── ngram-fst.h │ │ │ │ │ │ └── nthbit.h │ │ │ │ │ ├── pdt │ │ │ │ │ │ ├── collection.h │ │ │ │ │ │ ├── compose.h │ │ │ │ │ │ ├── expand.h │ │ │ │ │ │ ├── getters.h │ │ │ │ │ │ ├── info.h │ │ │ │ │ │ ├── paren.h │ │ │ │ │ │ ├── pdt.h │ │ │ │ │ │ ├── pdtlib.h │ │ │ │ │ │ ├── pdtscript.h │ │ │ │ │ │ ├── replace.h │ │ │ │ │ │ ├── reverse.h │ │ │ │ │ │ └── shortest-path.h │ │ │ │ │ └── special │ │ │ │ │ │ ├── phi-fst.h │ │ │ │ │ │ ├── rho-fst.h │ │ │ │ │ │ └── sigma-fst.h │ │ │ │ │ ├── factor-weight.h │ │ │ │ │ ├── filter-state.h │ │ │ │ │ ├── flags.h │ │ │ │ │ ├── float-weight.h │ │ │ │ │ ├── fst-decl.h │ │ │ │ │ ├── fst.h │ │ │ │ │ ├── fstlib.h │ │ │ │ │ ├── generic-register.h │ │ │ │ │ ├── heap.h │ │ │ │ │ ├── icu.h │ │ │ │ │ ├── intersect.h │ │ │ │ │ ├── interval-set.h │ │ │ │ │ ├── invert.h │ │ │ │ │ ├── isomorphic.h │ │ │ │ │ ├── label-reachable.h │ │ │ │ │ ├── lexicographic-weight.h │ │ │ │ │ ├── lock.h │ │ │ │ │ ├── log.h │ │ │ │ │ ├── lookahead-filter.h │ │ │ │ │ ├── lookahead-matcher.h │ │ │ │ │ ├── map.h │ │ │ │ │ ├── mapped-file.h │ │ │ │ │ ├── matcher-fst.h │ │ │ │ │ ├── matcher.h │ │ │ │ │ ├── memory.h │ │ │ │ │ ├── minimize.h │ │ │ │ │ ├── mutable-fst.h │ │ │ │ │ ├── pair-weight.h │ │ │ │ │ ├── partition.h │ │ │ │ │ ├── power-weight.h │ │ │ │ │ ├── product-weight.h │ │ │ │ │ ├── project.h │ │ │ │ │ ├── properties.h │ │ │ │ │ ├── prune.h │ │ │ │ │ ├── push.h │ │ │ │ │ ├── queue.h │ │ │ │ │ ├── randequivalent.h │ │ │ │ │ ├── randgen.h │ │ │ │ │ ├── rational.h │ │ │ │ │ ├── register.h │ │ │ │ │ ├── relabel.h │ │ │ │ │ ├── replace-util.h │ │ │ │ │ ├── replace.h │ │ │ │ │ ├── reverse.h │ │ │ │ │ ├── reweight.h │ │ │ │ │ ├── rmepsilon.h │ │ │ │ │ ├── rmfinalepsilon.h │ │ │ │ │ ├── script │ │ │ │ │ ├── arc-class.h │ │ │ │ │ ├── arciterator-class.h │ │ │ │ │ ├── arcsort.h │ │ │ │ │ ├── arg-packs.h │ │ │ │ │ ├── closure.h │ │ │ │ │ ├── compile-impl.h │ │ │ │ │ ├── compile.h │ │ │ │ │ ├── compose.h │ │ │ │ │ ├── concat.h │ │ │ │ │ ├── connect.h │ │ │ │ │ ├── convert.h │ │ │ │ │ ├── decode.h │ │ │ │ │ ├── determinize.h │ │ │ │ │ ├── difference.h │ │ │ │ │ ├── disambiguate.h │ │ │ │ │ ├── draw-impl.h │ │ │ │ │ ├── draw.h │ │ │ │ │ ├── encode.h │ │ │ │ │ ├── encodemapper-class.h │ │ │ │ │ ├── epsnormalize.h │ │ │ │ │ ├── equal.h │ │ │ │ │ ├── equivalent.h │ │ │ │ │ ├── fst-class.h │ │ │ │ │ ├── fstscript-decl.h │ │ │ │ │ ├── fstscript.h │ │ │ │ │ ├── getters.h │ │ │ │ │ ├── info-impl.h │ │ │ │ │ ├── info.h │ │ │ │ │ ├── intersect.h │ │ │ │ │ ├── invert.h │ │ │ │ │ ├── isomorphic.h │ │ │ │ │ ├── map.h │ │ │ │ │ ├── minimize.h │ │ │ │ │ ├── print-impl.h │ │ │ │ │ ├── print.h │ │ │ │ │ ├── project.h │ │ │ │ │ ├── prune.h │ │ │ │ │ ├── push.h │ │ │ │ │ ├── randequivalent.h │ │ │ │ │ ├── randgen.h │ │ │ │ │ ├── register.h │ │ │ │ │ ├── relabel.h │ │ │ │ │ ├── replace.h │ │ │ │ │ ├── reverse.h │ │ │ │ │ ├── reweight.h │ │ │ │ │ ├── rmepsilon.h │ │ │ │ │ ├── script-impl.h │ │ │ │ │ ├── shortest-distance.h │ │ │ │ │ ├── shortest-path.h │ │ │ │ │ ├── stateiterator-class.h │ │ │ │ │ ├── synchronize.h │ │ │ │ │ ├── text-io.h │ │ │ │ │ ├── topsort.h │ │ │ │ │ ├── union.h │ │ │ │ │ ├── verify.h │ │ │ │ │ └── weight-class.h │ │ │ │ │ ├── set-weight.h │ │ │ │ │ ├── shortest-distance.h │ │ │ │ │ ├── shortest-path.h │ │ │ │ │ ├── signed-log-weight.h │ │ │ │ │ ├── sparse-power-weight.h │ │ │ │ │ ├── sparse-tuple-weight.h │ │ │ │ │ ├── state-map.h │ │ │ │ │ ├── state-reachable.h │ │ │ │ │ ├── state-table.h │ │ │ │ │ ├── statesort.h │ │ │ │ │ ├── string-weight.h │ │ │ │ │ ├── string.h │ │ │ │ │ ├── symbol-table-ops.h │ │ │ │ │ ├── symbol-table.h │ │ │ │ │ ├── synchronize.h │ │ │ │ │ ├── test-properties.h │ │ │ │ │ ├── topsort.h │ │ │ │ │ ├── tuple-weight.h │ │ │ │ │ ├── types.h │ │ │ │ │ ├── union-find.h │ │ │ │ │ ├── union-weight.h │ │ │ │ │ ├── union.h │ │ │ │ │ ├── util.h │ │ │ │ │ ├── vector-fst.h │ │ │ │ │ ├── verify.h │ │ │ │ │ ├── visit.h │ │ │ │ │ └── weight.h │ │ │ ├── lib │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── compat.cc │ │ │ │ ├── flags.cc │ │ │ │ ├── fst-types.cc │ │ │ │ ├── fst.cc │ │ │ │ ├── mapped-file.cc │ │ │ │ ├── properties.cc │ │ │ │ ├── symbol-table-ops.cc │ │ │ │ ├── symbol-table.cc │ │ │ │ ├── util.cc │ │ │ │ └── weight.cc │ │ │ ├── script │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── arciterator-class.cc │ │ │ │ ├── arcsort.cc │ │ │ │ ├── closure.cc │ │ │ │ ├── compile.cc │ │ │ │ ├── compose.cc │ │ │ │ ├── concat.cc │ │ │ │ ├── connect.cc │ │ │ │ ├── convert.cc │ │ │ │ ├── decode.cc │ │ │ │ ├── determinize.cc │ │ │ │ ├── difference.cc │ │ │ │ ├── disambiguate.cc │ │ │ │ ├── draw.cc │ │ │ │ ├── encode.cc │ │ │ │ ├── encodemapper-class.cc │ │ │ │ ├── epsnormalize.cc │ │ │ │ ├── equal.cc │ │ │ │ ├── equivalent.cc │ │ │ │ ├── fst-class.cc │ │ │ │ ├── getters.cc │ │ │ │ ├── info-impl.cc │ │ │ │ ├── info.cc │ │ │ │ ├── intersect.cc │ │ │ │ ├── invert.cc │ │ │ │ ├── isomorphic.cc │ │ │ │ ├── map.cc │ │ │ │ ├── minimize.cc │ │ │ │ ├── print.cc │ │ │ │ ├── project.cc │ │ │ │ ├── prune.cc │ │ │ │ ├── push.cc │ │ │ │ ├── randequivalent.cc │ │ │ │ ├── randgen.cc │ │ │ │ ├── relabel.cc │ │ │ │ ├── replace.cc │ │ │ │ ├── reverse.cc │ │ │ │ ├── reweight.cc │ │ │ │ ├── rmepsilon.cc │ │ │ │ ├── shortest-distance.cc │ │ │ │ ├── shortest-path.cc │ │ │ │ ├── stateiterator-class.cc │ │ │ │ ├── synchronize.cc │ │ │ │ ├── text-io.cc │ │ │ │ ├── topsort.cc │ │ │ │ ├── union.cc │ │ │ │ ├── verify.cc │ │ │ │ └── weight-class.cc │ │ │ └── test │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── algo_test.cc │ │ │ │ ├── algo_test.h │ │ │ │ ├── fst_test.cc │ │ │ │ ├── fst_test.h │ │ │ │ ├── rand-fst.h │ │ │ │ ├── weight-tester.h │ │ │ │ └── weight_test.cc │ │ └── test-driver │ │ └── openfst-1.6.9-win │ │ ├── .gitignore │ │ ├── AUTHORS │ │ ├── CMakeLists.txt │ │ ├── COPYING │ │ ├── INSTALL │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── NEWS │ │ ├── README │ │ ├── README.md │ │ ├── README.mozilla │ │ ├── aclocal.m4 │ │ ├── ar-lib │ │ ├── compile │ │ ├── config.guess │ │ ├── config.h.in │ │ ├── config.sub │ │ ├── configure │ │ ├── configure.ac │ │ ├── depcomp │ │ ├── install-sh │ │ ├── ltmain.sh │ │ ├── m4 │ │ ├── ac_python_devel.m4 │ │ ├── libtool.m4 │ │ ├── ltoptions.m4 │ │ ├── ltsugar.m4 │ │ ├── ltversion.m4 │ │ └── lt~obsolete.m4 │ │ ├── missing │ │ ├── openfst.sln │ │ ├── package.cmd │ │ ├── src │ │ ├── CMakeLists.txt │ │ ├── Makefile.am │ │ ├── Makefile.in │ │ ├── bin │ │ │ ├── CMakeLists.txt │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── bin.vcxproj │ │ │ ├── fstarcsort-main.cc │ │ │ ├── fstarcsort.cc │ │ │ ├── fstclosure-main.cc │ │ │ ├── fstclosure.cc │ │ │ ├── fstcompile-main.cc │ │ │ ├── fstcompile.cc │ │ │ ├── fstcompose-main.cc │ │ │ ├── fstcompose.cc │ │ │ ├── fstconcat-main.cc │ │ │ ├── fstconcat.cc │ │ │ ├── fstconnect-main.cc │ │ │ ├── fstconnect.cc │ │ │ ├── fstconvert-main.cc │ │ │ ├── fstconvert.cc │ │ │ ├── fstdeterminize-main.cc │ │ │ ├── fstdeterminize.cc │ │ │ ├── fstdifference-main.cc │ │ │ ├── fstdifference.cc │ │ │ ├── fstdisambiguate-main.cc │ │ │ ├── fstdisambiguate.cc │ │ │ ├── fstdraw-main.cc │ │ │ ├── fstdraw.cc │ │ │ ├── fstencode-main.cc │ │ │ ├── fstencode.cc │ │ │ ├── fstepsnormalize-main.cc │ │ │ ├── fstepsnormalize.cc │ │ │ ├── fstequal-main.cc │ │ │ ├── fstequal.cc │ │ │ ├── fstequivalent-main.cc │ │ │ ├── fstequivalent.cc │ │ │ ├── fstinfo-main.cc │ │ │ ├── fstinfo.cc │ │ │ ├── fstintersect-main.cc │ │ │ ├── fstintersect.cc │ │ │ ├── fstinvert-main.cc │ │ │ ├── fstinvert.cc │ │ │ ├── fstisomorphic-main.cc │ │ │ ├── fstisomorphic.cc │ │ │ ├── fstmap-main.cc │ │ │ ├── fstmap.cc │ │ │ ├── fstminimize-main.cc │ │ │ ├── fstminimize.cc │ │ │ ├── fstprint-main.cc │ │ │ ├── fstprint.cc │ │ │ ├── fstproject-main.cc │ │ │ ├── fstproject.cc │ │ │ ├── fstprune-main.cc │ │ │ ├── fstprune.cc │ │ │ ├── fstpush-main.cc │ │ │ ├── fstpush.cc │ │ │ ├── fstrandgen-main.cc │ │ │ ├── fstrandgen.cc │ │ │ ├── fstrelabel-main.cc │ │ │ ├── fstrelabel.cc │ │ │ ├── fstreplace-main.cc │ │ │ ├── fstreplace.cc │ │ │ ├── fstreverse-main.cc │ │ │ ├── fstreverse.cc │ │ │ ├── fstreweight-main.cc │ │ │ ├── fstreweight.cc │ │ │ ├── fstrmepsilon-main.cc │ │ │ ├── fstrmepsilon.cc │ │ │ ├── fstshortestdistance-main.cc │ │ │ ├── fstshortestdistance.cc │ │ │ ├── fstshortestpath-main.cc │ │ │ ├── fstshortestpath.cc │ │ │ ├── fstsymbols-main.cc │ │ │ ├── fstsymbols.cc │ │ │ ├── fstsynchronize-main.cc │ │ │ ├── fstsynchronize.cc │ │ │ ├── fsttopsort-main.cc │ │ │ ├── fsttopsort.cc │ │ │ ├── fstunion-main.cc │ │ │ └── fstunion.cc │ │ ├── extensions │ │ │ ├── CMakeLists.txt │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── compact │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── compact16_acceptor-fst.cc │ │ │ │ ├── compact16_string-fst.cc │ │ │ │ ├── compact16_unweighted-fst.cc │ │ │ │ ├── compact16_unweighted_acceptor-fst.cc │ │ │ │ ├── compact16_weighted_string-fst.cc │ │ │ │ ├── compact64_acceptor-fst.cc │ │ │ │ ├── compact64_string-fst.cc │ │ │ │ ├── compact64_unweighted-fst.cc │ │ │ │ ├── compact64_unweighted_acceptor-fst.cc │ │ │ │ ├── compact64_weighted_string-fst.cc │ │ │ │ ├── compact8_acceptor-fst.cc │ │ │ │ ├── compact8_string-fst.cc │ │ │ │ ├── compact8_unweighted-fst.cc │ │ │ │ ├── compact8_unweighted_acceptor-fst.cc │ │ │ │ └── compact8_weighted_string-fst.cc │ │ │ ├── compress │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── compress-script.cc │ │ │ │ ├── fstcompress.cc │ │ │ │ └── fstrandmod.cc │ │ │ ├── const │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── const16-fst.cc │ │ │ │ ├── const64-fst.cc │ │ │ │ └── const8-fst.cc │ │ │ ├── far │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── far-class.cc │ │ │ │ ├── farcompilestrings.cc │ │ │ │ ├── farcreate.cc │ │ │ │ ├── farequal.cc │ │ │ │ ├── farextract.cc │ │ │ │ ├── farinfo.cc │ │ │ │ ├── farisomorphic.cc │ │ │ │ ├── farprintstrings.cc │ │ │ │ ├── farscript.cc │ │ │ │ ├── getters.cc │ │ │ │ ├── script-impl.cc │ │ │ │ ├── stlist.cc │ │ │ │ ├── strings.cc │ │ │ │ └── sttable.cc │ │ │ ├── linear │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── fstlinear.cc │ │ │ │ ├── fstloglinearapply.cc │ │ │ │ ├── linear-classifier-fst.cc │ │ │ │ ├── linear-tagger-fst.cc │ │ │ │ └── linearscript.cc │ │ │ ├── lookahead │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── arc_lookahead-fst.cc │ │ │ │ ├── ilabel_lookahead-fst.cc │ │ │ │ └── olabel_lookahead-fst.cc │ │ │ ├── mpdt │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── mpdtcompose.cc │ │ │ │ ├── mpdtexpand.cc │ │ │ │ ├── mpdtinfo.cc │ │ │ │ ├── mpdtreverse.cc │ │ │ │ └── mpdtscript.cc │ │ │ ├── ngram │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── bitmap-index.cc │ │ │ │ ├── ngram-fst.cc │ │ │ │ └── nthbit.cc │ │ │ ├── pdt │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── getters.cc │ │ │ │ ├── pdtcompose.cc │ │ │ │ ├── pdtexpand.cc │ │ │ │ ├── pdtinfo.cc │ │ │ │ ├── pdtreplace.cc │ │ │ │ ├── pdtreverse.cc │ │ │ │ ├── pdtscript.cc │ │ │ │ └── pdtshortestpath.cc │ │ │ ├── python │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── basictypes.pxd │ │ │ │ ├── fst.pxd │ │ │ │ ├── ios.pxd │ │ │ │ ├── memory.pxd │ │ │ │ ├── pywrapfst.cc │ │ │ │ ├── pywrapfst.pxd │ │ │ │ └── pywrapfst.pyx │ │ │ └── special │ │ │ │ ├── CMakeLists.txt │ │ │ │ ├── Makefile.am │ │ │ │ ├── Makefile.in │ │ │ │ ├── fstspecial.cc │ │ │ │ ├── phi-fst.cc │ │ │ │ ├── rho-fst.cc │ │ │ │ └── sigma-fst.cc │ │ ├── include │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ └── fst │ │ │ │ ├── accumulator.h │ │ │ │ ├── add-on.h │ │ │ │ ├── algo_test.h │ │ │ │ ├── arc-arena.h │ │ │ │ ├── arc-map.h │ │ │ │ ├── arc.h │ │ │ │ ├── arcfilter.h │ │ │ │ ├── arcsort.h │ │ │ │ ├── bi-table.h │ │ │ │ ├── cache.h │ │ │ │ ├── closure.h │ │ │ │ ├── collection.h │ │ │ │ ├── compact-fst.h │ │ │ │ ├── compat.h │ │ │ │ ├── complement.h │ │ │ │ ├── compose (1).h │ │ │ │ ├── compose (2).h │ │ │ │ ├── compose-filter.h │ │ │ │ ├── compose.h │ │ │ │ ├── concat.h │ │ │ │ ├── config.h │ │ │ │ ├── config.h.in │ │ │ │ ├── connect.h │ │ │ │ ├── const-fst.h │ │ │ │ ├── determinize.h │ │ │ │ ├── dfs-visit.h │ │ │ │ ├── difference.h │ │ │ │ ├── disambiguate.h │ │ │ │ ├── edit-fst.h │ │ │ │ ├── encode.h │ │ │ │ ├── epsnormalize.h │ │ │ │ ├── equal.h │ │ │ │ ├── equivalent.h │ │ │ │ ├── expand.h │ │ │ │ ├── expanded-fst.h │ │ │ │ ├── expectation-weight.h │ │ │ │ ├── extensions │ │ │ │ ├── compress │ │ │ │ │ ├── compress-script.h │ │ │ │ │ ├── compress.h │ │ │ │ │ ├── elias.h │ │ │ │ │ ├── gzfile.h │ │ │ │ │ └── randmod.h │ │ │ │ ├── far │ │ │ │ │ ├── compile-strings.h │ │ │ │ │ ├── create.h │ │ │ │ │ ├── equal.h │ │ │ │ │ ├── extract.h │ │ │ │ │ ├── far-class.h │ │ │ │ │ ├── far.h │ │ │ │ │ ├── farlib.h │ │ │ │ │ ├── farscript.h │ │ │ │ │ ├── getters.h │ │ │ │ │ ├── info.h │ │ │ │ │ ├── isomorphic.h │ │ │ │ │ ├── print-strings.h │ │ │ │ │ ├── script-impl.h │ │ │ │ │ ├── stlist.h │ │ │ │ │ └── sttable.h │ │ │ │ ├── linear │ │ │ │ │ ├── linear-fst-data-builder.h │ │ │ │ │ ├── linear-fst-data.h │ │ │ │ │ ├── linear-fst.h │ │ │ │ │ ├── linearscript.h │ │ │ │ │ ├── loglinear-apply.h │ │ │ │ │ └── trie.h │ │ │ │ ├── mpdt │ │ │ │ │ ├── compose.h │ │ │ │ │ ├── expand.h │ │ │ │ │ ├── info.h │ │ │ │ │ ├── mpdt.h │ │ │ │ │ ├── mpdtlib.h │ │ │ │ │ ├── mpdtscript.h │ │ │ │ │ ├── read_write_utils.h │ │ │ │ │ └── reverse.h │ │ │ │ ├── ngram │ │ │ │ │ ├── bitmap-index.h │ │ │ │ │ ├── ngram-fst.h │ │ │ │ │ └── nthbit.h │ │ │ │ ├── pdt │ │ │ │ │ ├── collection.h │ │ │ │ │ ├── compose.h │ │ │ │ │ ├── expand.h │ │ │ │ │ ├── getters.h │ │ │ │ │ ├── info.h │ │ │ │ │ ├── paren.h │ │ │ │ │ ├── pdt.h │ │ │ │ │ ├── pdtlib.h │ │ │ │ │ ├── pdtscript.h │ │ │ │ │ ├── replace.h │ │ │ │ │ ├── reverse.h │ │ │ │ │ └── shortest-path.h │ │ │ │ └── special │ │ │ │ │ ├── phi-fst.h │ │ │ │ │ ├── rho-fst.h │ │ │ │ │ └── sigma-fst.h │ │ │ │ ├── factor-weight.h │ │ │ │ ├── filter-state.h │ │ │ │ ├── flags.h │ │ │ │ ├── float-weight.h │ │ │ │ ├── fst-decl.h │ │ │ │ ├── fst.h │ │ │ │ ├── fstlib.h │ │ │ │ ├── generic-register.h │ │ │ │ ├── heap.h │ │ │ │ ├── icu.h │ │ │ │ ├── intersect.h │ │ │ │ ├── interval-set.h │ │ │ │ ├── invert.h │ │ │ │ ├── isomorphic.h │ │ │ │ ├── label-reachable.h │ │ │ │ ├── lexicographic-weight.h │ │ │ │ ├── linear-fst.h │ │ │ │ ├── lock.h │ │ │ │ ├── log.h │ │ │ │ ├── lookahead-filter.h │ │ │ │ ├── lookahead-matcher.h │ │ │ │ ├── map.h │ │ │ │ ├── mapped-file.h │ │ │ │ ├── matcher-fst.h │ │ │ │ ├── matcher.h │ │ │ │ ├── memory.h │ │ │ │ ├── minimize.h │ │ │ │ ├── mpdt.h │ │ │ │ ├── mutable-fst.h │ │ │ │ ├── ngram-fst.h │ │ │ │ ├── pair-weight.h │ │ │ │ ├── paren.h │ │ │ │ ├── partition.h │ │ │ │ ├── pdt.h │ │ │ │ ├── power-weight.h │ │ │ │ ├── product-weight.h │ │ │ │ ├── project.h │ │ │ │ ├── properties.h │ │ │ │ ├── prune.h │ │ │ │ ├── push.h │ │ │ │ ├── queue.h │ │ │ │ ├── randequivalent.h │ │ │ │ ├── randgen.h │ │ │ │ ├── rational.h │ │ │ │ ├── register.h │ │ │ │ ├── relabel.h │ │ │ │ ├── replace-util.h │ │ │ │ ├── replace.h │ │ │ │ ├── reverse.h │ │ │ │ ├── reweight.h │ │ │ │ ├── rmepsilon.h │ │ │ │ ├── rmfinalepsilon.h │ │ │ │ ├── script │ │ │ │ ├── arc-class.h │ │ │ │ ├── arciterator-class.h │ │ │ │ ├── arcsort.h │ │ │ │ ├── arg-packs.h │ │ │ │ ├── closure.h │ │ │ │ ├── compile-impl.h │ │ │ │ ├── compile.h │ │ │ │ ├── compose.h │ │ │ │ ├── concat.h │ │ │ │ ├── connect.h │ │ │ │ ├── convert.h │ │ │ │ ├── decode.h │ │ │ │ ├── determinize.h │ │ │ │ ├── difference.h │ │ │ │ ├── disambiguate.h │ │ │ │ ├── draw-impl.h │ │ │ │ ├── draw.h │ │ │ │ ├── encode.h │ │ │ │ ├── encodemapper-class.h │ │ │ │ ├── epsnormalize.h │ │ │ │ ├── equal.h │ │ │ │ ├── equivalent.h │ │ │ │ ├── fst-class.h │ │ │ │ ├── fstscript-decl.h │ │ │ │ ├── fstscript.h │ │ │ │ ├── getters.h │ │ │ │ ├── info-impl.h │ │ │ │ ├── info.h │ │ │ │ ├── intersect.h │ │ │ │ ├── invert.h │ │ │ │ ├── isomorphic.h │ │ │ │ ├── map.h │ │ │ │ ├── minimize.h │ │ │ │ ├── print-impl.h │ │ │ │ ├── print.h │ │ │ │ ├── project.h │ │ │ │ ├── prune.h │ │ │ │ ├── push.h │ │ │ │ ├── randequivalent.h │ │ │ │ ├── randgen.h │ │ │ │ ├── register.h │ │ │ │ ├── relabel.h │ │ │ │ ├── replace.h │ │ │ │ ├── reverse.h │ │ │ │ ├── reweight.h │ │ │ │ ├── rmepsilon.h │ │ │ │ ├── script-impl.h │ │ │ │ ├── shortest-distance.h │ │ │ │ ├── shortest-path.h │ │ │ │ ├── stateiterator-class.h │ │ │ │ ├── synchronize.h │ │ │ │ ├── text-io.h │ │ │ │ ├── topsort.h │ │ │ │ ├── union.h │ │ │ │ ├── verify.h │ │ │ │ └── weight-class.h │ │ │ │ ├── set-weight.h │ │ │ │ ├── shortest-distance.h │ │ │ │ ├── shortest-path.h │ │ │ │ ├── signed-log-weight.h │ │ │ │ ├── sparse-power-weight.h │ │ │ │ ├── sparse-tuple-weight.h │ │ │ │ ├── state-map.h │ │ │ │ ├── state-reachable.h │ │ │ │ ├── state-table.h │ │ │ │ ├── statesort.h │ │ │ │ ├── string-weight.h │ │ │ │ ├── string.h │ │ │ │ ├── symbol-table-ops.h │ │ │ │ ├── symbol-table.h │ │ │ │ ├── synchronize.h │ │ │ │ ├── test-properties.h │ │ │ │ ├── test │ │ │ │ ├── algo_test.h │ │ │ │ ├── fst_test.h │ │ │ │ ├── rand-fst.h │ │ │ │ └── weight-tester.h │ │ │ │ ├── topsort.h │ │ │ │ ├── tuple-weight.h │ │ │ │ ├── types.h │ │ │ │ ├── union-find.h │ │ │ │ ├── union-weight.h │ │ │ │ ├── union.h │ │ │ │ ├── util.h │ │ │ │ ├── vector-fst.h │ │ │ │ ├── verify.h │ │ │ │ ├── visit.h │ │ │ │ └── weight.h │ │ ├── lib │ │ │ ├── CMakeLists.txt │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── compat.cc │ │ │ ├── flags.cc │ │ │ ├── fst-types.cc │ │ │ ├── fst.cc │ │ │ ├── libfst.vcxproj │ │ │ ├── libfst.vcxproj.filters │ │ │ ├── mapped-file.cc │ │ │ ├── properties.cc │ │ │ ├── symbol-table-ops.cc │ │ │ ├── symbol-table.cc │ │ │ ├── util.cc │ │ │ └── weight.cc │ │ ├── openfst-multibin.targets │ │ ├── openfst.props │ │ ├── openfst.targets │ │ ├── openfst.user.props │ │ ├── script │ │ │ ├── CMakeLists.txt │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── arciterator-class.cc │ │ │ ├── arcsort.cc │ │ │ ├── closure.cc │ │ │ ├── compile.cc │ │ │ ├── compose.cc │ │ │ ├── concat.cc │ │ │ ├── connect.cc │ │ │ ├── convert.cc │ │ │ ├── decode.cc │ │ │ ├── determinize.cc │ │ │ ├── difference.cc │ │ │ ├── disambiguate.cc │ │ │ ├── draw.cc │ │ │ ├── encode.cc │ │ │ ├── encodemapper-class.cc │ │ │ ├── epsnormalize.cc │ │ │ ├── equal.cc │ │ │ ├── equivalent.cc │ │ │ ├── fst-class.cc │ │ │ ├── getters.cc │ │ │ ├── info-impl.cc │ │ │ ├── info.cc │ │ │ ├── intersect.cc │ │ │ ├── invert.cc │ │ │ ├── isomorphic.cc │ │ │ ├── libfstscript.vcxproj │ │ │ ├── libfstscript.vcxproj.filters │ │ │ ├── map.cc │ │ │ ├── minimize.cc │ │ │ ├── print.cc │ │ │ ├── project.cc │ │ │ ├── prune.cc │ │ │ ├── push.cc │ │ │ ├── randequivalent.cc │ │ │ ├── randgen.cc │ │ │ ├── relabel.cc │ │ │ ├── replace.cc │ │ │ ├── reverse.cc │ │ │ ├── reweight.cc │ │ │ ├── rmepsilon.cc │ │ │ ├── shortest-distance.cc │ │ │ ├── shortest-path.cc │ │ │ ├── stateiterator-class.cc │ │ │ ├── synchronize.cc │ │ │ ├── text-io.cc │ │ │ ├── topsort.cc │ │ │ ├── union.cc │ │ │ ├── verify.cc │ │ │ └── weight-class.cc │ │ └── test │ │ │ ├── CMakeLists.txt │ │ │ ├── Makefile.am │ │ │ ├── Makefile.in │ │ │ ├── algo_test.cc │ │ │ ├── fst_test.cc │ │ │ └── weight_test.cc │ │ └── test-driver ├── definitions.mk ├── dotnet │ ├── .gitignore │ ├── STT.sln │ ├── STTClient │ │ ├── Enums │ │ │ └── ErrorCodes.cs │ │ ├── Extensions │ │ │ └── NativeExtensions.cs │ │ ├── Interfaces │ │ │ └── ISTT.cs │ │ ├── Models │ │ │ ├── CandidateTranscript.cs │ │ │ ├── Metadata.cs │ │ │ ├── STTStream.cs │ │ │ └── TokenMetadata.cs │ │ ├── NativeImp.cs │ │ ├── STT.cs │ │ ├── STTClient.csproj │ │ └── Structs │ │ │ ├── CandidateTranscript.cs │ │ │ ├── Metadata.cs │ │ │ └── TokenMetadata.cs │ ├── STTConsole │ │ ├── Program.cs │ │ ├── Properties │ │ │ └── AssemblyInfo.cs │ │ ├── STTConsole.csproj │ │ └── arctic_a0024.wav │ ├── STTConsoleNetCore │ │ ├── Program.cs │ │ └── STTConsoleNetCore.csproj │ ├── STTWPF │ │ ├── .gitignore │ │ ├── App.config │ │ ├── App.xaml │ │ ├── App.xaml.cs │ │ ├── MainWindow.xaml │ │ ├── MainWindow.xaml.cs │ │ ├── Properties │ │ │ ├── AssemblyInfo.cs │ │ │ ├── Resources.Designer.cs │ │ │ ├── Resources.resx │ │ │ ├── Settings.Designer.cs │ │ │ └── Settings.settings │ │ ├── STT.WPF.csproj │ │ ├── STT.WPF.sln │ │ └── ViewModels │ │ │ ├── BindableBase.cs │ │ │ └── MainWindowViewModel.cs │ └── nupkg │ │ ├── STT.spec.in │ │ ├── build │ │ ├── .gitpreserve │ │ └── STT.targets │ │ ├── lib │ │ ├── net45 │ │ │ └── .gitpreserve │ │ ├── net46 │ │ │ └── .gitpreserve │ │ └── net47 │ │ │ └── .gitpreserve │ │ └── tools │ │ └── .gitpreserve ├── enumerate_kenlm_vocabulary.cpp ├── gen_workspace_status.sh ├── generate_scorer_package.cpp ├── getopt_win.h ├── java │ ├── .gitignore │ ├── .idea │ │ ├── codeStyles │ │ │ └── Project.xml │ │ ├── gradle.xml │ │ ├── misc.xml │ │ └── runConfigurations.xml │ ├── Makefile │ ├── README.md │ ├── app │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── androidTest │ │ │ └── java │ │ │ │ └── ai │ │ │ │ └── coqui │ │ │ │ └── sttexampleapp │ │ │ │ └── ExampleInstrumentedTest.java │ │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ │ └── ai │ │ │ │ │ └── coqui │ │ │ │ │ └── sttexampleapp │ │ │ │ │ └── STTActivity.java │ │ │ └── res │ │ │ │ ├── drawable-v24 │ │ │ │ └── ic_launcher_foreground.xml │ │ │ │ ├── drawable │ │ │ │ └── ic_launcher_background.xml │ │ │ │ ├── layout │ │ │ │ └── activity_stt.xml │ │ │ │ ├── mipmap-anydpi-v26 │ │ │ │ ├── ic_launcher.xml │ │ │ │ └── ic_launcher_round.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_launcher_round.png │ │ │ │ └── values │ │ │ │ ├── colors.xml │ │ │ │ ├── strings.xml │ │ │ │ └── styles.xml │ │ │ └── test │ │ │ └── java │ │ │ └── ai │ │ │ └── coqui │ │ │ └── sttexampleapp │ │ │ └── ExampleUnitTest.java │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── jni │ │ └── stt.i │ ├── libstt │ │ ├── .gitignore │ │ ├── CMakeLists.txt │ │ ├── build.gradle │ │ ├── gradle.properties │ │ ├── libs │ │ │ └── .gitignore │ │ ├── proguard-rules.pro │ │ └── src │ │ │ ├── androidTest │ │ │ └── java │ │ │ │ └── ai │ │ │ │ └── coqui │ │ │ │ └── libstt │ │ │ │ └── test │ │ │ │ └── BasicTest.java │ │ │ ├── main │ │ │ ├── AndroidManifest.xml │ │ │ ├── java │ │ │ │ └── ai │ │ │ │ │ └── coqui │ │ │ │ │ ├── libstt │ │ │ │ │ ├── STTModel.java │ │ │ │ │ └── STTStreamingState.java │ │ │ │ │ └── libstt_doc │ │ │ │ │ ├── CandidateTranscript.java │ │ │ │ │ ├── Metadata.java │ │ │ │ │ ├── README.rst │ │ │ │ │ ├── STT_Error_Codes.java │ │ │ │ │ └── TokenMetadata.java │ │ │ └── res │ │ │ │ └── values │ │ │ │ └── strings.xml │ │ │ └── test │ │ │ └── java │ │ │ └── ai │ │ │ └── coqui │ │ │ └── libstt │ │ │ └── ExampleUnitTest.java │ └── settings.gradle ├── javascript │ ├── Makefile │ ├── README.md │ ├── abi_crosswalk_priv.json │ ├── binding.gyp │ ├── client.ts │ ├── index.ts │ ├── node-pre-gyp.d.ts │ ├── package.json.in │ ├── stt.i │ └── tsconfig.json ├── kenlm │ ├── .gitignore │ ├── BUILDING │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.3 │ ├── COPYING.LESSER.3 │ ├── Doxyfile │ ├── GIT_REVISION │ ├── LICENSE │ ├── MANIFEST.in │ ├── README.coqui │ ├── README.md │ ├── clean_query_only.sh │ ├── cmake │ │ ├── KenLMFunctions.cmake │ │ ├── kenlmConfig.cmake.in │ │ └── modules │ │ │ └── FindEigen3.cmake │ ├── compile_query_only.sh │ ├── lm │ │ ├── CMakeLists.txt │ │ ├── bhiksha.cc │ │ ├── bhiksha.hh │ │ ├── binary_format.cc │ │ ├── binary_format.hh │ │ ├── blank.hh │ │ ├── build_binary_main.cc │ │ ├── common │ │ │ ├── CMakeLists.txt │ │ │ ├── compare.hh │ │ │ ├── joint_order.hh │ │ │ ├── model_buffer.cc │ │ │ ├── model_buffer.hh │ │ │ ├── model_buffer_test.cc │ │ │ ├── ngram.hh │ │ │ ├── ngram_stream.hh │ │ │ ├── print.cc │ │ │ ├── print.hh │ │ │ ├── renumber.cc │ │ │ ├── renumber.hh │ │ │ ├── size_option.cc │ │ │ ├── size_option.hh │ │ │ ├── special.hh │ │ │ └── test_data │ │ │ │ ├── bigendian │ │ │ │ ├── toy0.1 │ │ │ │ ├── toy0.2 │ │ │ │ ├── toy0.3 │ │ │ │ ├── toy0.kenlm_intermediate │ │ │ │ ├── toy0.vocab │ │ │ │ ├── toy1.1 │ │ │ │ ├── toy1.2 │ │ │ │ ├── toy1.3 │ │ │ │ ├── toy1.kenlm_intermediate │ │ │ │ └── toy1.vocab │ │ │ │ ├── generate.sh │ │ │ │ ├── littleendian │ │ │ │ ├── toy0.1 │ │ │ │ ├── toy0.2 │ │ │ │ ├── toy0.3 │ │ │ │ ├── toy0.kenlm_intermediate │ │ │ │ ├── toy0.vocab │ │ │ │ ├── toy1.1 │ │ │ │ ├── toy1.2 │ │ │ │ ├── toy1.3 │ │ │ │ ├── toy1.kenlm_intermediate │ │ │ │ └── toy1.vocab │ │ │ │ ├── toy0.arpa │ │ │ │ └── toy1.arpa │ │ ├── config.cc │ │ ├── config.hh │ │ ├── enumerate_vocab.hh │ │ ├── facade.hh │ │ ├── fragment_main.cc │ │ ├── interpolate │ │ │ ├── CMakeLists.txt │ │ │ ├── backoff_matrix.hh │ │ │ ├── backoff_reunification.cc │ │ │ ├── backoff_reunification.hh │ │ │ ├── backoff_reunification_test.cc │ │ │ ├── bounded_sequence_encoding.cc │ │ │ ├── bounded_sequence_encoding.hh │ │ │ ├── bounded_sequence_encoding_test.cc │ │ │ ├── interpolate_info.hh │ │ │ ├── interpolate_main.cc │ │ │ ├── merge_probabilities.cc │ │ │ ├── merge_probabilities.hh │ │ │ ├── merge_vocab.cc │ │ │ ├── merge_vocab.hh │ │ │ ├── merge_vocab_test.cc │ │ │ ├── normalize.cc │ │ │ ├── normalize.hh │ │ │ ├── normalize_test.cc │ │ │ ├── pipeline.cc │ │ │ ├── pipeline.hh │ │ │ ├── split_worker.cc │ │ │ ├── split_worker.hh │ │ │ ├── streaming_example_main.cc │ │ │ ├── tune_derivatives.cc │ │ │ ├── tune_derivatives.hh │ │ │ ├── tune_derivatives_test.cc │ │ │ ├── tune_instances.cc │ │ │ ├── tune_instances.hh │ │ │ ├── tune_instances_test.cc │ │ │ ├── tune_matrix.hh │ │ │ ├── tune_weights.cc │ │ │ ├── tune_weights.hh │ │ │ ├── universal_vocab.cc │ │ │ └── universal_vocab.hh │ │ ├── kenlm_benchmark_main.cc │ │ ├── left.hh │ │ ├── left_test.cc │ │ ├── lm_exception.cc │ │ ├── lm_exception.hh │ │ ├── max_order.hh │ │ ├── model.cc │ │ ├── model.hh │ │ ├── model_test.cc │ │ ├── model_type.hh │ │ ├── ngram_query.hh │ │ ├── partial.hh │ │ ├── partial_test.cc │ │ ├── quantize.cc │ │ ├── quantize.hh │ │ ├── query_main.cc │ │ ├── read_arpa.cc │ │ ├── read_arpa.hh │ │ ├── return.hh │ │ ├── search_hashed.cc │ │ ├── search_hashed.hh │ │ ├── search_trie.cc │ │ ├── search_trie.hh │ │ ├── sizes.cc │ │ ├── sizes.hh │ │ ├── state.hh │ │ ├── test.arpa │ │ ├── test_nounk.arpa │ │ ├── trie.cc │ │ ├── trie.hh │ │ ├── trie_sort.cc │ │ ├── trie_sort.hh │ │ ├── value.hh │ │ ├── value_build.cc │ │ ├── value_build.hh │ │ ├── virtual_interface.cc │ │ ├── virtual_interface.hh │ │ ├── vocab.cc │ │ ├── vocab.hh │ │ ├── weights.hh │ │ ├── word_index.hh │ │ └── wrappers │ │ │ ├── README │ │ │ ├── nplm.cc │ │ │ └── nplm.hh │ ├── setup.py │ └── util │ │ ├── CMakeLists.txt │ │ ├── bit_packing.cc │ │ ├── bit_packing.hh │ │ ├── bit_packing_test.cc │ │ ├── cat_compressed_main.cc │ │ ├── double-conversion │ │ ├── CMakeLists.txt │ │ ├── LICENSE │ │ ├── bignum-dtoa.cc │ │ ├── bignum-dtoa.h │ │ ├── bignum.cc │ │ ├── bignum.h │ │ ├── cached-powers.cc │ │ ├── cached-powers.h │ │ ├── diy-fp.h │ │ ├── double-conversion.h │ │ ├── double-to-string.cc │ │ ├── double-to-string.h │ │ ├── fast-dtoa.cc │ │ ├── fast-dtoa.h │ │ ├── fixed-dtoa.cc │ │ ├── fixed-dtoa.h │ │ ├── ieee.h │ │ ├── string-to-double.cc │ │ ├── string-to-double.h │ │ ├── strtod.cc │ │ ├── strtod.h │ │ └── utils.h │ │ ├── ersatz_progress.cc │ │ ├── ersatz_progress.hh │ │ ├── exception.cc │ │ ├── exception.hh │ │ ├── fake_ostream.hh │ │ ├── file.cc │ │ ├── file.hh │ │ ├── file_piece.cc │ │ ├── file_piece.hh │ │ ├── file_piece_test.cc │ │ ├── file_stream.hh │ │ ├── fixed_array.hh │ │ ├── float_to_string.cc │ │ ├── float_to_string.hh │ │ ├── have.hh │ │ ├── integer_to_string.cc │ │ ├── integer_to_string.hh │ │ ├── integer_to_string_test.cc │ │ ├── joint_sort.hh │ │ ├── joint_sort_test.cc │ │ ├── mmap.cc │ │ ├── mmap.hh │ │ ├── multi_intersection.hh │ │ ├── multi_intersection_test.cc │ │ ├── murmur_hash.cc │ │ ├── murmur_hash.hh │ │ ├── parallel_read.cc │ │ ├── parallel_read.hh │ │ ├── pcqueue.hh │ │ ├── pcqueue_test.cc │ │ ├── pool.cc │ │ ├── pool.hh │ │ ├── probing_hash_table.hh │ │ ├── probing_hash_table_benchmark_main.cc │ │ ├── probing_hash_table_test.cc │ │ ├── proxy_iterator.hh │ │ ├── read_compressed.cc │ │ ├── read_compressed.hh │ │ ├── read_compressed_test.cc │ │ ├── scoped.cc │ │ ├── scoped.hh │ │ ├── sized_iterator.hh │ │ ├── sized_iterator_test.cc │ │ ├── sorted_uniform.hh │ │ ├── sorted_uniform_test.cc │ │ ├── spaces.cc │ │ ├── spaces.hh │ │ ├── string_piece.cc │ │ ├── string_piece.hh │ │ ├── string_piece_hash.hh │ │ ├── string_stream.hh │ │ ├── string_stream_test.cc │ │ ├── thread_pool.hh │ │ ├── tokenize_piece.hh │ │ ├── tokenize_piece_test.cc │ │ ├── usage.cc │ │ └── usage.hh ├── modelstate.cc ├── modelstate.h ├── multistrap_armbian64_bullseye.conf ├── multistrap_armbian64_buster.conf ├── multistrap_raspbian_bullseye.conf ├── multistrap_raspbian_buster.conf ├── python │ ├── Makefile │ ├── README.rst │ ├── __init__.py │ ├── client.py │ ├── impl.i │ ├── numpy.i │ ├── setup.cfg │ └── setup.py ├── stt.cc ├── stt_errors.cc ├── swift.modulemap ├── swift │ ├── .gitignore │ ├── Bindings.swift │ ├── stt_ios_test.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── stt_ios_test.xcscheme │ └── stt_ios_test │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ └── Contents.json │ │ ├── AudioContext.swift │ │ ├── AudioInput.swift │ │ ├── Base.lproj │ │ └── LaunchScreen.storyboard │ │ ├── ContentView.swift │ │ ├── Info.plist │ │ ├── Preview Content │ │ └── Preview Assets.xcassets │ │ │ └── Contents.json │ │ ├── SceneDelegate.swift │ │ └── SpeechRecognitionImpl.swift ├── test │ └── concurrent_streams.py ├── tflitemodelstate.cc ├── tflitemodelstate.h ├── trie_load.cc ├── wasm │ ├── Makefile │ ├── bindings.cc │ ├── package.json.in │ └── test │ │ ├── .gitignore │ │ ├── Makefile │ │ ├── babel.config.cjs │ │ ├── mock.worker.js │ │ ├── package.json.in │ │ └── stt-wasm.test.js ├── workspace_status.h └── xldd ├── notebooks ├── README.md ├── easy_transfer_learning.ipynb ├── train_personal_model_with_common_voice.ipynb ├── train_with_common_voice.ipynb └── train_your_first_coqui_STT_model.ipynb ├── parse_valgrind_suppressions.sh ├── requirements_eval_tflite.txt ├── requirements_tests.txt ├── requirements_transcribe.txt ├── setup.py ├── stats.py ├── taskcluster ├── .build.yml ├── .shared.yml ├── README.rst ├── android-apk-build.sh ├── android-apk-package.sh ├── android-arm64-cpu-dbg.yml ├── android-arm64-cpu-opt.yml ├── android-armv7-cpu-dbg.yml ├── android-armv7-cpu-opt.yml ├── android-build-dbg.sh ├── android-build.sh ├── android-cache-arm64-v8a-android-24.yml ├── android-cache-arm64-v8a-android-25.yml ├── android-cache-armeabi-v7a-android-24.yml ├── android-cache-armeabi-v7a-android-25.yml ├── android-cache-sdk-android-27.yml ├── android-cache-x86_64-android-24.yml ├── android-cache-x86_64-android-25.yml ├── android-cache-x86_64-android-26.yml ├── android-cache-x86_64-android-28.yml ├── android-cache-x86_64-android-29.yml ├── android-cache-x86_64-android-30.yml ├── android-java-opt.yml ├── android-package.sh ├── android-x86_64-cpu-dbg.yml ├── android-x86_64-cpu-opt.yml ├── android_cache-build.sh ├── android_cache-package.sh ├── arm64-build-dbg.sh ├── arm64-build.sh ├── build-python-wheel.tyml ├── cuda-build-dbg.sh ├── cuda-build.sh ├── darwin-amd64-cpu-opt.yml ├── darwin-amd64-ctc-opt.yml ├── darwin-amd64-tflite-opt.yml ├── darwin-opt-base.tyml ├── decoder-build.sh ├── decoder-package.sh ├── docker-build-base.tyml ├── docker-image-build.yml ├── docker-image-train.yml ├── docs-build.sh ├── docs-package.sh ├── docs.tyml ├── docs.yml ├── examples-base.tyml ├── examples-electronjs.yml ├── examples-ffmpeg_vad_streaming-node10.yml ├── examples-ffmpeg_vad_streaming-node12.yml ├── examples-mic_vad_streaming-py36.yml ├── examples-mic_vad_streaming-py37.yml ├── examples-mic_vad_streaming-py38.yml ├── examples-mic_vad_streaming-py39.yml.DISABLED_UNTIL_SCIPY_PY39 ├── examples-nodejs_wav-node10.yml ├── examples-nodejs_wav-node12.yml ├── examples-vad_transcriber-py35.yml ├── examples-vad_transcriber-py36.yml ├── examples-vad_transcriber-py37.yml ├── examples-vad_transcriber-py38.yml ├── examples-vad_transcriber-py39.yml ├── generic_tc_caching-darwin-opt-base.tyml ├── generic_tc_caching-linux-opt-base.tyml ├── generic_tc_caching-win-opt-base.tyml ├── gradle-build.sh ├── gradle-cache.yml ├── gradle-package.sh ├── homebrew-build.sh ├── homebrew-package.sh ├── homebrew_builds-darwin-amd64.yml ├── homebrew_tests-darwin-amd64.yml ├── host-build-dbg.sh ├── host-build.sh ├── ios-arm64-tflite-opt.yml ├── ios-build.sh ├── ios-package.sh ├── ios-x86_64-tflite-opt.yml ├── kenlm_android-arm64-cpu-opt.yml ├── kenlm_android-armv7-cpu-opt.yml ├── kenlm_android-x86_64-cpu-opt.yml ├── kenlm_darwin-amd64-cpu-opt.yml ├── kenlm_linux-amd64-cpu-opt.yml ├── kenlm_linux-arm64-cpu-opt.yml ├── kenlm_linux-rpi3-cpu-opt.yml ├── kenlm_multistrap_arm64_buster.conf ├── kenlm_multistrap_rpi3_buster.conf ├── kenlm_tc-build.sh ├── kenlm_tc-package.sh ├── kenlm_tc-setup.sh ├── kenlm_win-amd64-cpu-opt.yml.DISABLED ├── linux-amd64-cpu-dbg.yml ├── linux-amd64-cpu-opt.yml ├── linux-amd64-ctc-opt.yml ├── linux-amd64-gpu-dbg.yml.DISABLED ├── linux-amd64-gpu-opt.yml ├── linux-amd64-tflite-dbg.yml ├── linux-amd64-tflite-opt.yml ├── linux-arm64-cpu-dbg.yml ├── linux-arm64-cpu-opt.yml ├── linux-opt-base.tyml ├── linux-rpi3-cpu-dbg.yml ├── linux-rpi3-cpu-opt.yml ├── node-build.sh ├── node-gyp-cache.yml ├── node-gyp-package.sh ├── node-gyp-populate.sh ├── node-package-cpu.yml ├── node-package-gpu.yml ├── node-package-opt-base.tyml ├── node-package-tflite.yml ├── node-package.sh ├── package.sh ├── pyenv-build.sh ├── pyenv-darwin-amd64.yml ├── pyenv-linux-amd64.yml ├── pyenv-package.sh ├── pyenv-win-amd64.yml ├── rpi3-build-dbg.sh ├── rpi3-build.sh ├── scriptworker-task-github.yml ├── scriptworker-task-jcenter.yml ├── scriptworker-task-npm.yml ├── scriptworker-task-nuget.yml ├── scriptworker-task-pypi.yml ├── scriptworker-task-readthedocs.yml ├── simple-task.tyml ├── swig-darwin-amd64.yml ├── swig-linux-amd64.yml ├── swig-win-amd64.yml ├── tc-all-utils.sh ├── tc-all-vars.sh ├── tc-android-apk-tests.sh ├── tc-android-ds-tests.sh ├── tc-android-utils.sh ├── tc-asserts.sh ├── tc-augmentation-tests.sh ├── tc-build-utils.sh ├── tc-cpp-bytes-ds-tests.sh ├── tc-cpp-ds-tests-prod.sh ├── tc-cpp-ds-tests.sh ├── tc-cpp_tflite-ds-tests-prod.sh ├── tc-cpp_tflite-ds-tests.sh ├── tc-cpp_tflite_basic-ds-tests.sh ├── tc-cppwin-ds-tests.sh ├── tc-decision.py ├── tc-decision_reqs.txt ├── tc-dotnet-utils.sh ├── tc-electron-tests.sh ├── tc-electron_tflite-tests.sh ├── tc-evaluate_tflite.sh ├── tc-netframework-ds-tests.sh ├── tc-node-tests-prod.sh ├── tc-node-tests.sh ├── tc-node-utils.sh ├── tc-node_tflite-tests-prod.sh ├── tc-node_tflite-tests.sh ├── tc-package.sh ├── tc-py-utils.sh ├── tc-python-tests-prod.sh ├── tc-python-tests.sh ├── tc-python_tflite-tests-prod.sh ├── tc-python_tflite-tests.sh ├── tc-schedule.sh ├── tc-scorer-tests.sh ├── tc-single-shot-inference.sh ├── tc-tests-utils.sh ├── tc-train-extra-tests.sh ├── tc-train-tests.sh ├── tc-train-unittests.sh ├── tc-transcribe-tests.sh ├── tc-transfer-tests.sh ├── tc-true.sh ├── tc-update-index.sh ├── tc-valgrind-cpp.sh ├── tc-valgrind-cpp_tflite.sh ├── tc-valgrind-utils.sh ├── test-android-opt-base.tyml ├── test-apk-android-24-x86_64-opt.yml ├── test-apk-android-25-x86_64-opt.yml ├── test-apk-android-26-x86_64-opt.yml ├── test-apk-android-28-x86_64-opt.yml ├── test-apk-android-29-x86_64-opt.yml ├── test-apk-android-30-x86_64-opt.yml ├── test-armbian-opt-base.tyml ├── test-augmentations-linux-amd64-py36m-opt.yml ├── test-cpp-android-24-arm64-opt.yml ├── test-cpp-android-24-armv7-opt.yml ├── test-cpp-android-25-arm64-opt.yml ├── test-cpp-android-25-armv7-opt.yml ├── test-cpp-linux-amd64-prod_pbmodel-opt.yml ├── test-cpp_16k-armbian-arm64-opt.yml ├── test-cpp_16k-darwin-amd64-opt.yml ├── test-cpp_16k-linux-amd64-opt.yml ├── test-cpp_16k-raspbian-rpi3-opt.yml ├── test-cpp_16k-win-amd64-opt.yml ├── test-cpp_16k-win-cuda-opt.yml ├── test-cpp_16k_bytes-darwin-amd64-opt.yml ├── test-cpp_16k_bytes-linux-amd64-opt.yml ├── test-cpp_16k_tflite-darwin-amd64-opt.yml ├── test-cpp_16k_tflite-linux-amd64-opt.yml ├── test-cpp_16k_tflite-win-amd64-opt.yml ├── test-cpp_8k-linux-amd64-opt.yml ├── test-cpp_8k_tflite-linux-amd64-opt.yml ├── test-cpp_basic_tflite_valgrind-linux-amd64-dbg.yml ├── test-cpp_basic_valgrind-linux-amd64-dbg.yml ├── test-cpp_metadata_tflite_valgrind-linux-amd64-dbg.yml ├── test-cpp_metadata_valgrind-linux-amd64-dbg.yml ├── test-cpp_tflite-linux-amd64-prod-opt.yml ├── test-darwin-opt-base.tyml ├── test-electronjs_v10.0-darwin-amd64-opt.yml ├── test-electronjs_v10.0-win-amd64-opt.yml ├── test-electronjs_v10.0_16k-linux-amd64-opt.yml ├── test-electronjs_v10.0_8k-linux-amd64-opt.yml ├── test-electronjs_v10.0_multiarchpkg-win-amd64-opt.yml ├── test-electronjs_v10.0_multiarchpkg-win-cuda-opt.yml ├── test-electronjs_v10.0_multiarchpkg-win-tflite-opt.yml ├── test-electronjs_v10.1-darwin-amd64-opt.yml ├── test-electronjs_v10.1-win-amd64-opt.yml ├── test-electronjs_v10.1_16k-linux-amd64-opt.yml ├── test-electronjs_v10.1_8k-linux-amd64-opt.yml ├── test-electronjs_v10.1_multiarchpkg-win-amd64-opt.yml ├── test-electronjs_v10.1_multiarchpkg-win-cuda-opt.yml ├── test-electronjs_v10.1_multiarchpkg-win-tflite-opt.yml ├── test-electronjs_v11.0-darwin-amd64-opt.yml ├── test-electronjs_v11.0-win-amd64-opt.yml ├── test-electronjs_v11.0_16k-linux-amd64-opt.yml ├── test-electronjs_v11.0_8k-linux-amd64-opt.yml ├── test-electronjs_v11.0_multiarchpkg-win-amd64-opt.yml ├── test-electronjs_v11.0_multiarchpkg-win-cuda-opt.yml ├── test-electronjs_v11.0_multiarchpkg-win-tflite-opt.yml ├── test-electronjs_v5.0-darwin-amd64-opt.yml ├── test-electronjs_v5.0-win-amd64-opt.yml ├── test-electronjs_v5.0_16k-linux-amd64-opt.yml ├── test-electronjs_v5.0_8k-linux-amd64-opt.yml ├── test-electronjs_v6.0-darwin-amd64-opt.yml ├── test-electronjs_v6.0-win-amd64-opt.yml ├── test-electronjs_v6.0_16k-linux-amd64-opt.yml ├── test-electronjs_v6.0_8k-linux-amd64-opt.yml ├── test-electronjs_v6.1-darwin-amd64-opt.yml ├── test-electronjs_v6.1-win-amd64-opt.yml ├── test-electronjs_v6.1_16k-linux-amd64-opt.yml ├── test-electronjs_v6.1_8k-linux-amd64-opt.yml ├── test-electronjs_v7.0-darwin-amd64-opt.yml ├── test-electronjs_v7.0-win-amd64-opt.yml ├── test-electronjs_v7.0_16k-linux-amd64-opt.yml ├── test-electronjs_v7.0_8k-linux-amd64-opt.yml ├── test-electronjs_v7.1-darwin-amd64-opt.yml ├── test-electronjs_v7.1-win-amd64-opt.yml ├── test-electronjs_v7.1_16k-linux-amd64-opt.yml ├── test-electronjs_v7.1_8k-linux-amd64-opt.yml ├── test-electronjs_v8.0-darwin-amd64-opt.yml ├── test-electronjs_v8.0-win-amd64-opt.yml ├── test-electronjs_v8.0_16k-linux-amd64-opt.yml ├── test-electronjs_v8.0_8k-linux-amd64-opt.yml ├── test-electronjs_v8.0_multiarchpkg-win-amd64-opt.yml ├── test-electronjs_v8.0_multiarchpkg-win-cuda-opt.yml ├── test-electronjs_v8.0_multiarchpkg-win-tflite-opt.yml ├── test-electronjs_v9.0-darwin-amd64-opt.yml ├── test-electronjs_v9.0-win-amd64-opt.yml ├── test-electronjs_v9.0_16k-linux-amd64-opt.yml ├── test-electronjs_v9.0_8k-linux-amd64-opt.yml ├── test-electronjs_v9.0_multiarchpkg-win-amd64-opt.yml ├── test-electronjs_v9.0_multiarchpkg-win-cuda-opt.yml ├── test-electronjs_v9.0_multiarchpkg-win-tflite-opt.yml ├── test-electronjs_v9.1-darwin-amd64-opt.yml ├── test-electronjs_v9.1-win-amd64-opt.yml ├── test-electronjs_v9.1_16k-linux-amd64-opt.yml ├── test-electronjs_v9.1_8k-linux-amd64-opt.yml ├── test-electronjs_v9.1_multiarchpkg-win-amd64-opt.yml ├── test-electronjs_v9.1_multiarchpkg-win-cuda-opt.yml ├── test-electronjs_v9.1_multiarchpkg-win-tflite-opt.yml ├── test-electronjs_v9.2-darwin-amd64-opt.yml ├── test-electronjs_v9.2-win-amd64-opt.yml ├── test-electronjs_v9.2_16k-linux-amd64-opt.yml ├── test-electronjs_v9.2_8k-linux-amd64-opt.yml ├── test-electronjs_v9.2_multiarchpkg-win-amd64-opt.yml ├── test-electronjs_v9.2_multiarchpkg-win-cuda-opt.yml ├── test-electronjs_v9.2_multiarchpkg-win-tflite-opt.yml ├── test-evaluate_tflite-linux-amd64-py36m-opt.yml ├── test-generate_scorer-android-24-arm64-opt.yml ├── test-generate_scorer-android-24-armv7-opt.yml ├── test-generate_scorer-android-24-x86_64-opt.yml ├── test-generate_scorer-android-25-arm64-opt.yml ├── test-generate_scorer-android-25-armv7-opt.yml ├── test-generate_scorer-android-25-x86_64-opt.yml ├── test-generate_scorer-android-26-x86_64-opt.yml ├── test-generate_scorer-android-28-x86_64-opt.yml ├── test-generate_scorer-android-29-x86_64-opt.yml ├── test-generate_scorer-android-30-x86_64-opt.yml ├── test-generate_scorer-darwin-amd64-opt.yml ├── test-generate_scorer-linux-amd64-opt.yml ├── test-generate_scorer-linux-arm64-opt.yml ├── test-generate_scorer-linux-rpi3-opt.yml ├── test-linux-opt-base.tyml ├── test-linux-opt-tag-base.tyml ├── test-netframework-win-amd64-opt.yml ├── test-netframework-win-cuda-opt.yml ├── test-netframework-win-tflite-opt.yml ├── test-nodejs_10x-armbian-arm64-opt.yml ├── test-nodejs_10x-darwin-amd64-opt.yml ├── test-nodejs_10x-raspbian-rpi3-opt.yml ├── test-nodejs_10x-win-amd64-opt.yml ├── test-nodejs_10x_16k-linux-amd64-opt.yml ├── test-nodejs_10x_16k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_10x_16k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_10x_8k-linux-amd64-opt.yml ├── test-nodejs_10x_8k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_10x_8k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_11x-armbian-arm64-opt.yml ├── test-nodejs_11x-darwin-amd64-opt.yml ├── test-nodejs_11x-raspbian-rpi3-opt.yml ├── test-nodejs_11x-win-amd64-opt.yml ├── test-nodejs_11x_16k-linux-amd64-opt.yml ├── test-nodejs_11x_16k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_11x_16k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_11x_8k-linux-amd64-opt.yml ├── test-nodejs_11x_8k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_11x_8k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_12x-armbian-arm64-opt.yml ├── test-nodejs_12x-darwin-amd64-opt.yml ├── test-nodejs_12x-raspbian-rpi3-opt.yml ├── test-nodejs_12x-win-amd64-opt.yml ├── test-nodejs_12x_16k-linux-amd64-opt.yml ├── test-nodejs_12x_16k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_12x_16k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_12x_8k-linux-amd64-opt.yml ├── test-nodejs_12x_8k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_12x_8k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_13x-armbian-arm64-opt.yml ├── test-nodejs_13x-darwin-amd64-opt.yml ├── test-nodejs_13x-raspbian-rpi3-opt.yml ├── test-nodejs_13x-win-amd64-opt.yml ├── test-nodejs_13x_16k-linux-amd64-opt.yml ├── test-nodejs_13x_16k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_13x_16k_multiarchpkg-linux-amd64-opt.yml ├── test-nodejs_13x_16k_multiarchpkg-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_13x_16k_multiarchpkg-linux-tflite-opt.yml ├── test-nodejs_13x_16k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_13x_8k-linux-amd64-opt.yml ├── test-nodejs_13x_8k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_13x_8k_multiarchpkg-linux-amd64-opt.yml ├── test-nodejs_13x_8k_multiarchpkg-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_13x_8k_multiarchpkg-linux-tflite-opt.yml ├── test-nodejs_13x_8k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_13x_multiarchpkg-armbian-arm64-opt.yml ├── test-nodejs_13x_multiarchpkg-darwin-amd64-opt.yml ├── test-nodejs_13x_multiarchpkg-darwin-tflite-opt.yml ├── test-nodejs_13x_multiarchpkg-raspbian-rpi3-opt.yml ├── test-nodejs_13x_multiarchpkg-win-amd64-opt.yml ├── test-nodejs_13x_multiarchpkg-win-cuda-opt.yml ├── test-nodejs_13x_multiarchpkg-win-tflite-opt.yml ├── test-nodejs_14x-armbian-arm64-opt.yml ├── test-nodejs_14x-darwin-amd64-opt.yml ├── test-nodejs_14x-raspbian-rpi3-opt.yml ├── test-nodejs_14x-win-amd64-opt.yml ├── test-nodejs_14x_16k-linux-amd64-opt.yml ├── test-nodejs_14x_16k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_14x_16k_multiarchpkg-linux-amd64-opt.yml ├── test-nodejs_14x_16k_multiarchpkg-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_14x_16k_multiarchpkg-linux-tflite-opt.yml ├── test-nodejs_14x_16k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_14x_8k-linux-amd64-opt.yml ├── test-nodejs_14x_8k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_14x_8k_multiarchpkg-linux-amd64-opt.yml ├── test-nodejs_14x_8k_multiarchpkg-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_14x_8k_multiarchpkg-linux-tflite-opt.yml ├── test-nodejs_14x_8k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_14x_multiarchpkg-armbian-arm64-opt.yml ├── test-nodejs_14x_multiarchpkg-darwin-amd64-opt.yml ├── test-nodejs_14x_multiarchpkg-darwin-tflite-opt.yml ├── test-nodejs_14x_multiarchpkg-raspbian-rpi3-opt.yml ├── test-nodejs_14x_multiarchpkg-win-amd64-opt.yml ├── test-nodejs_14x_multiarchpkg-win-cuda-opt.yml ├── test-nodejs_14x_multiarchpkg-win-tflite-opt.yml ├── test-nodejs_15x-armbian-arm64-opt.yml ├── test-nodejs_15x-darwin-amd64-opt.yml ├── test-nodejs_15x-raspbian-rpi3-opt.yml ├── test-nodejs_15x-win-amd64-opt.yml ├── test-nodejs_15x_16k-linux-amd64-opt.yml ├── test-nodejs_15x_16k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_15x_16k_multiarchpkg-linux-amd64-opt.yml ├── test-nodejs_15x_16k_multiarchpkg-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_15x_16k_multiarchpkg-linux-tflite-opt.yml ├── test-nodejs_15x_16k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_15x_8k-linux-amd64-opt.yml ├── test-nodejs_15x_8k-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_15x_8k_multiarchpkg-linux-amd64-opt.yml ├── test-nodejs_15x_8k_multiarchpkg-linux-amd64-prod_pbmodel-opt.yml ├── test-nodejs_15x_8k_multiarchpkg-linux-tflite-opt.yml ├── test-nodejs_15x_8k_tflite-linux-amd64-prod-opt.yml ├── test-nodejs_15x_multiarchpkg-armbian-arm64-opt.yml ├── test-nodejs_15x_multiarchpkg-darwin-amd64-opt.yml ├── test-nodejs_15x_multiarchpkg-darwin-tflite-opt.yml ├── test-nodejs_15x_multiarchpkg-raspbian-rpi3-opt.yml ├── test-nodejs_15x_multiarchpkg-win-amd64-opt.yml ├── test-nodejs_15x_multiarchpkg-win-cuda-opt.yml ├── test-nodejs_15x_multiarchpkg-win-tflite-opt.yml ├── test-python_35-darwin-amd64-opt.yml ├── test-python_35-win-amd64-opt.yml ├── test-python_35-win-cuda-opt.yml ├── test-python_35_16k-linux-amd64-opt.yml ├── test-python_35_16k-linux-amd64-prod_pbmodel-opt.yml ├── test-python_35_8k-linux-amd64-opt.yml ├── test-python_35_8k-linux-amd64-prod_pbmodel-opt.yml ├── test-python_35_tflite_16k-darwin-amd64-opt.yml ├── test-python_35_tflite_16k-darwin-amd64-prod-opt.yml ├── test-python_35_tflite_16k-linux-amd64-opt.yml ├── test-python_35_tflite_16k-linux-amd64-prod-opt.yml ├── test-python_35_tflite_16k-win-amd64-opt.yml ├── test-python_35_tflite_16k-win-amd64-prod-opt.yml ├── test-python_35_tflite_8k-linux-amd64-prod-opt.yml ├── test-python_36-darwin-amd64-opt.yml ├── test-python_36-win-amd64-opt.yml ├── test-python_36-win-cuda-opt.yml ├── test-python_36_16k-linux-amd64-opt.yml ├── test-python_36_16k-linux-amd64-prod_pbmodel-opt.yml ├── test-python_36_8k-linux-amd64-opt.yml ├── test-python_36_8k-linux-amd64-prod_pbmodel-opt.yml ├── test-python_36_tflite_16k-darwin-amd64-opt.yml ├── test-python_36_tflite_16k-darwin-amd64-prod-opt.yml ├── test-python_36_tflite_16k-linux-amd64-opt.yml ├── test-python_36_tflite_16k-linux-amd64-prod-opt.yml ├── test-python_36_tflite_16k-win-amd64-opt.yml ├── test-python_36_tflite_16k-win-amd64-prod-opt.yml ├── test-python_36_tflite_8k-linux-amd64-prod-opt.yml ├── test-python_37-darwin-amd64-opt.yml ├── test-python_37-win-amd64-opt.yml ├── test-python_37-win-cuda-opt.yml ├── test-python_37_16k-linux-amd64-opt.yml ├── test-python_37_16k-linux-amd64-prod_pbmodel-opt.yml ├── test-python_37_8k-linux-amd64-opt.yml ├── test-python_37_8k-linux-amd64-prod_pbmodel-opt.yml ├── test-python_37_tflite_16k-darwin-amd64-opt.yml ├── test-python_37_tflite_16k-darwin-amd64-prod-opt.yml ├── test-python_37_tflite_16k-linux-amd64-opt.yml ├── test-python_37_tflite_16k-linux-amd64-prod-opt.yml ├── test-python_37_tflite_16k-win-amd64-opt.yml ├── test-python_37_tflite_16k-win-amd64-prod-opt.yml ├── test-python_37_tflite_8k-linux-amd64-prod-opt.yml ├── test-python_37m-armbian-arm64-opt.yml ├── test-python_37m-armbian-arm64-prod-opt.yml ├── test-python_37m-raspbian-rpi3-opt.yml ├── test-python_37m-raspbian-rpi3-prod-opt.yml ├── test-python_38-darwin-amd64-opt.yml ├── test-python_38-win-amd64-opt.yml ├── test-python_38-win-cuda-opt.yml ├── test-python_38_16k-linux-amd64-opt.yml ├── test-python_38_16k-linux-amd64-prod_pbmodel-opt.yml ├── test-python_38_8k-linux-amd64-opt.yml ├── test-python_38_8k-linux-amd64-prod_pbmodel-opt.yml ├── test-python_38_tflite_16k-darwin-amd64-opt.yml ├── test-python_38_tflite_16k-darwin-amd64-prod-opt.yml ├── test-python_38_tflite_16k-linux-amd64-opt.yml ├── test-python_38_tflite_16k-linux-amd64-prod-opt.yml ├── test-python_38_tflite_16k-win-amd64-opt.yml ├── test-python_38_tflite_16k-win-amd64-prod-opt.yml ├── test-python_38_tflite_8k-linux-amd64-prod-opt.yml ├── test-python_39-darwin-amd64-opt.yml ├── test-python_39-win-amd64-opt.yml ├── test-python_39-win-cuda-opt.yml ├── test-python_39_16k-linux-amd64-opt.yml ├── test-python_39_16k-linux-amd64-prod_pbmodel-opt.yml ├── test-python_39_8k-linux-amd64-opt.yml ├── test-python_39_8k-linux-amd64-prod_pbmodel-opt.yml ├── test-python_39_tflite_16k-darwin-amd64-opt.yml ├── test-python_39_tflite_16k-darwin-amd64-prod-opt.yml ├── test-python_39_tflite_16k-linux-amd64-opt.yml ├── test-python_39_tflite_16k-linux-amd64-prod-opt.yml ├── test-python_39_tflite_16k-win-amd64-opt.yml ├── test-python_39_tflite_16k-win-amd64-prod-opt.yml ├── test-python_39_tflite_8k-linux-amd64-prod-opt.yml ├── test-raspbian-opt-base.tyml ├── test-singleshotinference-linux-amd64-py36m-opt.yml ├── test-training-extra_16k-linux-amd64-py36m-opt.yml ├── test-training-extra_16k-linux-amd64-py37m-opt.yml ├── test-training-extra_8k-linux-amd64-py36m-opt.yml ├── test-training-extra_8k-linux-amd64-py37m-opt.yml ├── test-training-pypi_16k-linux-amd64-py36m-opt.yml ├── test-training-pypi_16k-linux-amd64-py37m-opt.yml ├── test-training-pypi_8k-linux-amd64-py36m-opt.yml ├── test-training-pypi_8k-linux-amd64-py37m-opt.yml ├── test-training-unittests_8k-linux-amd64-py36m-opt.yml ├── test-training-unittests_8k-linux-amd64-py37m-opt.yml ├── test-training_16k-linux-amd64-py36m-opt.yml ├── test-training_16k-linux-amd64-py37m-opt.yml ├── test-training_8k-linux-amd64-py36m-opt.yml ├── test-training_8k-linux-amd64-py37m-opt.yml ├── test-transcribe_16k-linux-amd64-py36m-opt.yml ├── test-transcribe_16k-linux-amd64-py37m-opt.yml ├── test-transcribe_8k-linux-amd64-py36m-opt.yml ├── test-transcribe_8k-linux-amd64-py37m-opt.yml ├── test-transfer-linux-amd64-py36m-opt.yml ├── test-win-cuda-opt-base.tyml ├── test-win-opt-base.tyml ├── tf_android-arm64-dbg.yml ├── tf_android-arm64-opt.yml ├── tf_android-armv7-dbg.yml ├── tf_android-armv7-opt.yml ├── tf_darwin-amd64-opt.yml ├── tf_ios-arm64-opt.yml ├── tf_ios-x86_64-opt.yml ├── tf_linux-amd64-cpu-opt.yml ├── tf_linux-amd64-cpu_gcc9.yml ├── tf_linux-amd64-gpu-opt.yml ├── tf_linux-amd64-gpu_gcc9.yml.DISABLED ├── tf_linux-arm64-cpu-dbg.yml ├── tf_linux-arm64-cpu-opt.yml ├── tf_linux-rpi3-cpu-dbg.yml ├── tf_linux-rpi3-cpu-opt.yml ├── tf_tc-build.sh ├── tf_tc-package.sh ├── tf_tc-pip.sh ├── tf_tc-setup.sh ├── tf_tc-vars.sh ├── tf_win-amd64-cpu-opt.yml ├── tf_win-amd64-gpu-opt.yml ├── win-amd64-cpu-opt.yml ├── win-amd64-ctc-opt.yml ├── win-amd64-gpu-opt.yml ├── win-amd64-tflite-opt.yml ├── win-build.sh ├── win-opt-base.tyml ├── win-package.sh └── worker.cyml ├── tensorflow_full_runtime.supp ├── tensorflow_tflite_runtime.supp ├── tests ├── Example.ogg ├── __init__.py ├── test_audio_utils.py ├── test_data │ ├── alphabet_macos.txt │ ├── alphabet_unix.txt │ ├── alphabet_windows.txt │ └── validate_locale_fra.py ├── test_importers.py ├── test_text.py └── test_value_range.py ├── train.py ├── training └── coqui_stt_training │ ├── GRAPH_VERSION │ ├── VERSION │ ├── __init__.py │ ├── deepspeech_model.py │ ├── evaluate.py │ ├── evaluate_export.py │ ├── evaluate_flashlight.py │ ├── evaluate_from_csv.py │ ├── evaluate_wav2vec2am.py │ ├── export.py │ ├── train.py │ ├── training_graph_inference.py │ ├── training_graph_inference_flashlight.py │ ├── transcribe.py │ └── util │ ├── __init__.py │ ├── audio.py │ ├── augmentations.py │ ├── auto_input.py │ ├── check_characters.py │ ├── checkpoints.py │ ├── config.py │ ├── downloader.py │ ├── evaluate_tools.py │ ├── feeding.py │ ├── gpu.py │ ├── helpers.py │ ├── importers.py │ ├── io.py │ ├── lm_optimize.py │ ├── lm_optimize_wav2vec2am.py │ ├── multiprocessing.py │ ├── sample_collections.py │ ├── stm.py │ └── text.py └── transcribe.py /.cardboardlint.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | - pylint: 3 | filefilter: ['+ *.py', '+ bin/*.py'] 4 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | .git/lfs 2 | .git/lost-found 3 | native_client/ds-swig 4 | native_client/python/dist/*.whl 5 | native_client/ctcdecode/*.a 6 | native_client/javascript/build/ 7 | native_client/javascript/headers/ 8 | native_client/javascript/lib/ 9 | native_client/java/libstt/build/ 10 | native_client/java/libstt/libs/ 11 | *.scorer 12 | *.pbmm 13 | *.pb 14 | *.tflite 15 | kenlm/build/ 16 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | data/lm/kenlm.scorer filter=lfs diff=lfs merge=lfs -text 2 | .github/actions/check_artifact_exists/dist/index.js binary 3 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | contact_links: 3 | - name: Coqui STT GitHub Discussions 4 | url: https://github.com/coqui-ai/STT/discussions 5 | about: Please ask and answer questions here. 6 | - name: Coqui Security issue disclosure 7 | url: mailto:info@coqui.ai 8 | about: Please report security vulnerabilities here. 9 | -------------------------------------------------------------------------------- /.github/actions/check_artifact_exists/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "check_artifact_exists", 3 | "main": "main.js", 4 | "devDependencies": { 5 | "@actions/core": "^1.2.6", 6 | "@actions/exec": "^1.1.0", 7 | "@actions/github": "^4.0.0", 8 | "@octokit/plugin-throttling": "^3.4.1", 9 | "@vercel/ncc": "^0.27.0", 10 | "adm-zip": "^0.5.2", 11 | "filesize": "^6.1.0" 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /.github/actions/win-install-sox/action.yml: -------------------------------------------------------------------------------- 1 | name: "Install SoX and add to PATH" 2 | description: "Install SoX and add to PATH" 3 | runs: 4 | using: "composite" 5 | steps: 6 | - run: | 7 | set -ex 8 | curl -sSLO https://github.com/coqui-ai/STT/releases/download/v0.10.0-alpha.7/sox-14.4.2-win32.zip 9 | "C:/Program Files/7-Zip/7z.exe" x -o`pwd`/bin/ -tzip -aoa sox-14.4.2-win32.zip 10 | rm sox-*zip 11 | echo "`pwd`/bin/sox-14.4.2/" >> $GITHUB_PATH 12 | shell: bash 13 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "doc/examples"] 2 | path = doc/examples 3 | url = https://github.com/coqui-ai/STT-examples.git 4 | branch = master 5 | [submodule "tensorflow"] 6 | path = tensorflow 7 | url = https://github.com/coqui-ai/tensorflow.git 8 | [submodule "kenlm"] 9 | path = kenlm 10 | url = https://github.com/kpu/kenlm 11 | -------------------------------------------------------------------------------- /.isort.cfg: -------------------------------------------------------------------------------- 1 | [settings] 2 | profile=black 3 | -------------------------------------------------------------------------------- /.pre-commit-2.11.1.pyz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/.pre-commit-2.11.1.pyz -------------------------------------------------------------------------------- /.readthedocs.yml: -------------------------------------------------------------------------------- 1 | # .readthedocs.yml 2 | # Read the Docs configuration file 3 | # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details 4 | 5 | # Required 6 | version: 2 7 | 8 | # Build documentation in the docs/ directory with Sphinx 9 | sphinx: 10 | builder: html 11 | configuration: doc/conf.py 12 | 13 | # Optionally set the version of Python and requirements required to build your docs 14 | python: 15 | version: 3.7 16 | install: 17 | - requirements: doc/requirements.txt 18 | -------------------------------------------------------------------------------- /Dockerfile.train.dockerignore: -------------------------------------------------------------------------------- 1 | .git/lfs 2 | tensorflow 3 | .git/modules/tensorflow 4 | native_client/ds-swig 5 | native_client/libstt.so 6 | native_client/stt 7 | native_client/ctcdecode/dist/ 8 | native_client/ctcdecode/temp_build 9 | native_client/ctcdecode/third_party.a 10 | native_client/ctcdecode/workspace_status.cc 11 | -------------------------------------------------------------------------------- /Dockerfile.train.jupyter: -------------------------------------------------------------------------------- 1 | # This is a Dockerfile useful for training models with Coqui STT in Jupyter notebooks 2 | 3 | FROM ghcr.io/coqui-ai/stt-train:latest 4 | 5 | WORKDIR /code/notebooks 6 | 7 | RUN python3 -m pip install --no-cache-dir jupyter jupyter_http_over_ws 8 | RUN jupyter serverextension enable --py jupyter_http_over_ws 9 | 10 | EXPOSE 8888 11 | 12 | CMD ["bash", "-c", "jupyter notebook --notebook-dir=/code/notebooks --ip 0.0.0.0 --no-browser --allow-root"] 13 | -------------------------------------------------------------------------------- /GRAPH_VERSION: -------------------------------------------------------------------------------- 1 | training/coqui_stt_training/GRAPH_VERSION -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include training/coqui_stt_training/VERSION 2 | include training/coqui_stt_training/GRAPH_VERSION 3 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | STT_REPO ?= https://github.com/coqui-ai/STT.git 2 | STT_SHA ?= origin/main 3 | 4 | Dockerfile%: Dockerfile%.tmpl 5 | sed \ 6 | -e "s|#STT_REPO#|$(STT_REPO)|g" \ 7 | -e "s|#STT_SHA#|$(STT_SHA)|g" \ 8 | < $< > $@ 9 | -------------------------------------------------------------------------------- /VERSION: -------------------------------------------------------------------------------- 1 | training/coqui_stt_training/VERSION -------------------------------------------------------------------------------- /bin/README.rst: -------------------------------------------------------------------------------- 1 | Utility scripts 2 | =============== 3 | 4 | This folder contains scripts that can be used to do training on the various included importers from the command line. This is useful to be able to run training without a browser open, or unattended on a remote machine. They should be run from the base directory of the repository. Note that the default settings assume a very well-specified machine. In the situation that out-of-memory errors occur, you may find decreasing the values of ``--train_batch_size``\ , ``--dev_batch_size`` and ``--test_batch_size`` will allow you to continue, at the expense of speed. 5 | -------------------------------------------------------------------------------- /bin/graphdef_binary_to_text.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | import sys 5 | 6 | import tensorflow.compat.v1 as tfv1 7 | from google.protobuf import text_format 8 | 9 | 10 | def main(): 11 | # Load and export as string 12 | with tfv1.gfile.FastGFile(sys.argv[1], "rb") as fin: 13 | graph_def = tfv1.GraphDef() 14 | graph_def.ParseFromString(fin.read()) 15 | 16 | with tfv1.gfile.FastGFile(sys.argv[1] + "txt", "w") as fout: 17 | fout.write(text_format.MessageToString(graph_def)) 18 | 19 | 20 | if __name__ == "__main__": 21 | main() 22 | -------------------------------------------------------------------------------- /bin/ops_in_graph.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | import sys 5 | 6 | import tensorflow.compat.v1 as tfv1 7 | 8 | 9 | def main(): 10 | with tfv1.gfile.FastGFile(sys.argv[1], "rb") as fin: 11 | graph_def = tfv1.GraphDef() 12 | graph_def.ParseFromString(fin.read()) 13 | 14 | print("\n".join(sorted(set(n.op for n in graph_def.node)))) 15 | 16 | 17 | if __name__ == "__main__": 18 | main() 19 | -------------------------------------------------------------------------------- /build-python-wheel.yml-DISABLED_ENABLE_ME_TO_REBUILD_DURING_PR: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: build-python-wheel.tyml 3 | metadata: 4 | name: "Build Python 3.5 wheels on ARM64" 5 | description: "Building some Python 3.5 wheels for ARM64 system" 6 | -------------------------------------------------------------------------------- /ci_scripts/aarch64-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/build-utils.sh 8 | 9 | source $(dirname "$0")/tf-vars.sh 10 | 11 | BAZEL_TARGETS=" 12 | //native_client:libstt.so 13 | //native_client:libkenlm.so 14 | //native_client:generate_scorer_package 15 | " 16 | 17 | BAZEL_BUILD_FLAGS="--config=elinux_aarch64 ${BAZEL_EXTRA_FLAGS}" 18 | 19 | do_bazel_build 20 | 21 | do_stt_binary_build 22 | -------------------------------------------------------------------------------- /ci_scripts/android-arm64-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/build-utils.sh 8 | 9 | source $(dirname "$0")/tf-vars.sh 10 | 11 | BAZEL_TARGETS=" 12 | //native_client:libstt.so 13 | //native_client:libkenlm.so 14 | //native_client:generate_scorer_package 15 | " 16 | 17 | BAZEL_BUILD_FLAGS="--config=android_arm64 ${BAZEL_EXTRA_FLAGS}" 18 | SYSTEM_TARGET= 19 | SYSTEM_RASPBIAN= 20 | 21 | do_bazel_build 22 | 23 | do_stt_ndk_build "arm64-v8a" 24 | -------------------------------------------------------------------------------- /ci_scripts/android-armv7-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/build-utils.sh 8 | 9 | source $(dirname "$0")/tf-vars.sh 10 | 11 | BAZEL_TARGETS=" 12 | //native_client:libstt.so 13 | //native_client:libkenlm.so 14 | //native_client:generate_scorer_package 15 | " 16 | 17 | BAZEL_BUILD_FLAGS="--config=android_arm ${BAZEL_EXTRA_FLAGS}" 18 | SYSTEM_TARGET= 19 | SYSTEM_RASPBIAN= 20 | 21 | do_bazel_build 22 | 23 | do_stt_ndk_build "armeabi-v7a" 24 | -------------------------------------------------------------------------------- /ci_scripts/android-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/package-utils.sh 7 | 8 | mkdir -p ${CI_ARTIFACTS_DIR} || true 9 | 10 | cp ${DS_DSDIR}/tensorflow/bazel*.log ${CI_ARTIFACTS_DIR}/ 11 | 12 | arm_flavor=$1 13 | 14 | package_native_client_ndk "native_client.tar.xz" "${arm_flavor}" 15 | -------------------------------------------------------------------------------- /ci_scripts/android-x86_64-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/build-utils.sh 8 | 9 | source $(dirname "$0")/tf-vars.sh 10 | 11 | BAZEL_TARGETS=" 12 | //native_client:libstt.so 13 | //native_client:libkenlm.so 14 | //native_client:generate_scorer_package 15 | " 16 | 17 | BAZEL_BUILD_FLAGS="--config=android_x86_64 ${BAZEL_EXTRA_FLAGS}" 18 | SYSTEM_TARGET= 19 | SYSTEM_RASPBIAN= 20 | 21 | do_bazel_build 22 | 23 | do_stt_ndk_build "x86_64" 24 | -------------------------------------------------------------------------------- /ci_scripts/armv7-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/build-utils.sh 8 | 9 | source $(dirname "$0")/tf-vars.sh 10 | 11 | BAZEL_TARGETS=" 12 | //native_client:libstt.so 13 | //native_client:libkenlm.so 14 | //native_client:generate_scorer_package 15 | " 16 | 17 | BAZEL_BUILD_FLAGS="--config=elinux_armhf ${BAZEL_EXTRA_FLAGS}" 18 | 19 | do_bazel_build 20 | 21 | do_stt_binary_build 22 | -------------------------------------------------------------------------------- /ci_scripts/cpp-bytes-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/asserts.sh 8 | 9 | samplerate=$1 10 | ldc93s1_sample_filename="LDC93S1_pcms16le_1_${samplerate}.wav" 11 | 12 | download_material "${CI_TMP_DIR}/ds" 13 | 14 | export PATH=${CI_TMP_DIR}/ds/:$PATH 15 | 16 | # Bytes output mode with LDC93S1 takes too long to converge so we simply test 17 | # that loading the model won't crash 18 | check_versions 19 | -------------------------------------------------------------------------------- /ci_scripts/cpp_tflite-tests-prod.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/asserts.sh 8 | 9 | samplerate=$1 10 | ldc93s1_sample_filename="LDC93S1_pcms16le_1_${samplerate}.wav" 11 | 12 | model_source=${STT_PROD_MODEL} 13 | model_name=$(basename "${model_source}") 14 | export DATA_TMP_DIR=${CI_TMP_DIR} 15 | 16 | download_model_prod 17 | 18 | download_material "${CI_TMP_DIR}/ds" 19 | 20 | export PATH=${CI_TMP_DIR}/ds/:$PATH 21 | 22 | check_versions 23 | 24 | run_prodtflite_inference_tests "${samplerate}" 25 | -------------------------------------------------------------------------------- /ci_scripts/cpp_tflite_basic-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/asserts.sh 8 | 9 | samplerate=$1 10 | ldc93s1_sample_filename="LDC93S1_pcms16le_1_${samplerate}.wav" 11 | 12 | model_source=${STT_TEST_MODEL//.pb/.tflite} 13 | model_name=$(basename "${model_source}") 14 | export DATA_TMP_DIR=${CI_TMP_DIR} 15 | 16 | download_material "${CI_TMP_DIR}/ds" 17 | 18 | export PATH=${CI_TMP_DIR}/ds/:$PATH 19 | 20 | check_versions 21 | 22 | run_tflite_basic_inference_tests 23 | -------------------------------------------------------------------------------- /ci_scripts/cppwin_tflite-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/asserts.sh 8 | 9 | samplerate=$1 10 | ldc93s1_sample_filename="LDC93S1_pcms16le_1_${samplerate}.wav" 11 | 12 | model_source=${STT_TEST_MODEL} 13 | model_name=$(basename "${model_source}") 14 | export DATA_TMP_DIR=${CI_TMP_DIR} 15 | 16 | download_material "${CI_TMP_DIR}/ds" 17 | 18 | export PATH=${CI_TMP_DIR}/ds/:$PATH 19 | 20 | check_versions 21 | 22 | run_basic_inference_tests 23 | -------------------------------------------------------------------------------- /ci_scripts/ios-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/build-utils.sh 8 | 9 | source $(dirname "$0")/tf-vars.sh 10 | 11 | BAZEL_TARGETS=" 12 | //native_client:stt_ios 13 | //native_client:kenlm_ios 14 | //native_client:stt_swift 15 | " 16 | 17 | BAZEL_BUILD_FLAGS="--config=ios_arm64 ${BAZEL_EXTRA_FLAGS}" 18 | SYSTEM_TARGET= 19 | 20 | do_bazel_build 21 | -------------------------------------------------------------------------------- /ci_scripts/node_tflite-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/asserts.sh 8 | 9 | samplerate=$1 10 | ldc93s1_sample_filename="LDC93S1_pcms16le_1_${samplerate}.wav" 11 | 12 | model_source=${STT_TEST_MODEL} 13 | model_name=$(basename "${model_source}") 14 | download_data 15 | 16 | node --version 17 | npm --version 18 | 19 | export_node_bin_path 20 | 21 | check_runtime_nodejs 22 | 23 | run_all_inference_tests 24 | 25 | run_js_streaming_inference_tests 26 | 27 | run_hotword_tests 28 | -------------------------------------------------------------------------------- /ci_scripts/notebook-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -xe 3 | 4 | source $(dirname "$0")/all-vars.sh 5 | source $(dirname "$0")/all-utils.sh 6 | 7 | time jupyter nbconvert --to notebook --execute notebooks/easy_transfer_learning.ipynb 8 | time jupyter nbconvert --to notebook --execute notebooks/train_your_first_coqui_STT_model.ipynb 9 | time jupyter nbconvert --to notebook --execute notebooks/train_with_common_voice.ipynb 10 | -------------------------------------------------------------------------------- /ci_scripts/python_tflite-tests-prod.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/asserts.sh 8 | 9 | samplerate=$1 10 | ldc93s1_sample_filename="LDC93S1_pcms16le_1_${samplerate}.wav" 11 | 12 | model_source=${STT_PROD_MODEL} 13 | model_name=$(basename "${model_source}") 14 | download_model_prod 15 | 16 | download_material 17 | 18 | export_py_bin_path 19 | 20 | which stt 21 | stt --version 22 | 23 | run_prodtflite_inference_tests "${samplerate}" 24 | -------------------------------------------------------------------------------- /ci_scripts/python_tflite-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/all-utils.sh 7 | source $(dirname "$0")/asserts.sh 8 | 9 | samplerate=$1 10 | ldc93s1_sample_filename="LDC93S1_pcms16le_1_${samplerate}.wav" 11 | 12 | model_source=${STT_TEST_MODEL} 13 | model_name=$(basename "${model_source}") 14 | download_data 15 | 16 | export_py_bin_path 17 | 18 | which stt 19 | stt --version 20 | 21 | run_all_inference_tests 22 | 23 | run_hotword_tests 24 | -------------------------------------------------------------------------------- /ci_scripts/tf-configure.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -ex 4 | set -o pipefail 5 | 6 | source $(dirname $0)/tf-vars.sh 7 | 8 | pushd ${DS_ROOT_TASK}/tensorflow/ 9 | case "$1" in 10 | "--android") 11 | echo "" | TF_SET_ANDROID_WORKSPACE=1 ./configure 12 | ;; 13 | "--ios") 14 | echo "" | TF_CONFIGURE_IOS=1 ./configure 15 | ;; 16 | esac 17 | popd 18 | -------------------------------------------------------------------------------- /ci_scripts/train-unittests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -xe 3 | 4 | source $(dirname "$0")/all-vars.sh 5 | source $(dirname "$0")/all-utils.sh 6 | 7 | set -o pipefail 8 | pip install --upgrade pip setuptools wheel | cat 9 | pip install --upgrade . | cat 10 | set +o pipefail 11 | 12 | python -m unittest 13 | -------------------------------------------------------------------------------- /ci_scripts/wasm-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/all-vars.sh 6 | source $(dirname "$0")/package-utils.sh 7 | 8 | mkdir -p ${CI_ARTIFACTS_DIR} || true 9 | 10 | cp ${DS_DSDIR}/tensorflow/bazel*.log ${CI_ARTIFACTS_DIR}/ 11 | 12 | package_libstt_wasm "libstt.zip" 13 | -------------------------------------------------------------------------------- /data/alphabet.txt: -------------------------------------------------------------------------------- 1 | # Each line in this file represents the Unicode codepoint (UTF-8 encoded) 2 | # associated with a numeric label. 3 | # A line that starts with # is a comment. You can escape it with \# if you wish 4 | # to use '#' as a label. 5 | 6 | a 7 | b 8 | c 9 | d 10 | e 11 | f 12 | g 13 | h 14 | i 15 | j 16 | k 17 | l 18 | m 19 | n 20 | o 21 | p 22 | q 23 | r 24 | s 25 | t 26 | u 27 | v 28 | w 29 | x 30 | y 31 | z 32 | ' 33 | # The last (non-comment) line needs to end with a newline. 34 | -------------------------------------------------------------------------------- /data/smoke_test/LDC93S1.flac: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/LDC93S1.flac -------------------------------------------------------------------------------- /data/smoke_test/LDC93S1.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/LDC93S1.ogg -------------------------------------------------------------------------------- /data/smoke_test/LDC93S1.opus: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/LDC93S1.opus -------------------------------------------------------------------------------- /data/smoke_test/LDC93S1.txt: -------------------------------------------------------------------------------- 1 | 0 46797 She had your dark suit in greasy wash water all year. 2 | -------------------------------------------------------------------------------- /data/smoke_test/LDC93S1.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/LDC93S1.wav -------------------------------------------------------------------------------- /data/smoke_test/LDC93S1_pcms16le_1_16000.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/LDC93S1_pcms16le_1_16000.wav -------------------------------------------------------------------------------- /data/smoke_test/LDC93S1_pcms16le_1_8000.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/LDC93S1_pcms16le_1_8000.wav -------------------------------------------------------------------------------- /data/smoke_test/LDC93S1_pcms16le_2_44100.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/LDC93S1_pcms16le_2_44100.wav -------------------------------------------------------------------------------- /data/smoke_test/ldc93s1.csv: -------------------------------------------------------------------------------- 1 | wav_filename,wav_filesize,transcript 2 | LDC93S1.wav,93638,she had your dark suit in greasy wash water all year 3 | -------------------------------------------------------------------------------- /data/smoke_test/ldc93s1_flac.csv: -------------------------------------------------------------------------------- 1 | wav_filename,wav_filesize,transcript 2 | LDC93S1.flac,93638,she had your dark suit in greasy wash water all year 3 | -------------------------------------------------------------------------------- /data/smoke_test/ldc93s1_opus.csv: -------------------------------------------------------------------------------- 1 | wav_filename,wav_filesize,transcript 2 | LDC93S1.opus,93638,she had your dark suit in greasy wash water all year 3 | -------------------------------------------------------------------------------- /data/smoke_test/ldc93s1_vorbis.csv: -------------------------------------------------------------------------------- 1 | wav_filename,wav_filesize,transcript 2 | LDC93S1.ogg,93638,she had your dark suit in greasy wash water all year -------------------------------------------------------------------------------- /data/smoke_test/ldc93s1_wds.tar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/ldc93s1_wds.tar -------------------------------------------------------------------------------- /data/smoke_test/new-home-in-the-stars-16k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/new-home-in-the-stars-16k.wav -------------------------------------------------------------------------------- /data/smoke_test/pruned_lm.bytes.scorer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/pruned_lm.bytes.scorer -------------------------------------------------------------------------------- /data/smoke_test/pruned_lm.scorer: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/pruned_lm.scorer -------------------------------------------------------------------------------- /data/smoke_test/russian_sample_data/alphabet.ru: -------------------------------------------------------------------------------- 1 | 2 | о 3 | е 4 | а 5 | и 6 | н 7 | т 8 | с 9 | л 10 | в 11 | р 12 | к 13 | м 14 | д 15 | п 16 | ы 17 | у 18 | б 19 | я 20 | ь 21 | г 22 | з 23 | ч 24 | й 25 | ж 26 | х 27 | ш 28 | ю 29 | ц 30 | э 31 | щ 32 | ф 33 | ё 34 | ъ 35 | -------------------------------------------------------------------------------- /data/smoke_test/russian_sample_data/ru.csv: -------------------------------------------------------------------------------- 1 | wav_filename,wav_filesize,transcript 2 | ru.wav,0,бедняга ребят на его месте должен был быть я 3 | -------------------------------------------------------------------------------- /data/smoke_test/russian_sample_data/ru.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/russian_sample_data/ru.wav -------------------------------------------------------------------------------- /data/smoke_test/webdataset/LDC93S1_ogg.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/webdataset/LDC93S1_ogg.ogg -------------------------------------------------------------------------------- /data/smoke_test/webdataset/LDC93S1_ogg.txt: -------------------------------------------------------------------------------- 1 | she had your dark suit in greasy wash water all year -------------------------------------------------------------------------------- /data/smoke_test/webdataset/LDC93S1_opus.opus: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/webdataset/LDC93S1_opus.opus -------------------------------------------------------------------------------- /data/smoke_test/webdataset/LDC93S1_opus.txt: -------------------------------------------------------------------------------- 1 | she had your dark suit in greasy wash water all year -------------------------------------------------------------------------------- /data/smoke_test/webdataset/LDC93S1_wav.txt: -------------------------------------------------------------------------------- 1 | she had your dark suit in greasy wash water all year -------------------------------------------------------------------------------- /data/smoke_test/webdataset/LDC93S1_wav.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/smoke_test/webdataset/LDC93S1_wav.wav -------------------------------------------------------------------------------- /data/ted/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/data/ted/.gitkeep -------------------------------------------------------------------------------- /doc/Contributed-Examples.rst: -------------------------------------------------------------------------------- 1 | User contributed examples 2 | ========================= 3 | 4 | There are also several user contributed examples available on a separate examples repository: `https://github.com/coqui-ai/STT-examples `_. 5 | -------------------------------------------------------------------------------- /doc/DATASET_IMPORTERS.rst: -------------------------------------------------------------------------------- 1 | .. _data-importers: 2 | 3 | Data Importers 4 | ============== 5 | 6 | We supply importer scripts for various publically available speech data sets. You can find these scripts in the STT repo under the ``bin/`` directory, but not all of the data sets are free. See ``bin/import_librivox.py`` for an example of how to import and preprocess a large, free dataset for training with 🐸STT. 7 | -------------------------------------------------------------------------------- /doc/Decoder-API.rst: -------------------------------------------------------------------------------- 1 | .. _decoder-api: 2 | 3 | Decoder API reference 4 | ===================== 5 | 6 | .. automodule:: native_client.ctcdecode 7 | :members: 8 | -------------------------------------------------------------------------------- /doc/Dockerfile.docs.dockerignore: -------------------------------------------------------------------------------- 1 | # Ignore everything 2 | ** 3 | 4 | # Add files needed for doc build 5 | !VERSION 6 | !training/coqui_stt_training/VERSION 7 | !training/coqui_stt_training/util/flags.py 8 | !images 9 | !doc 10 | !native_client 11 | -------------------------------------------------------------------------------- /doc/Error-Codes.rst: -------------------------------------------------------------------------------- 1 | .. _error-codes: 2 | 3 | Error codes 4 | =========== 5 | 6 | Below is the definition for all error codes used in the API, their numerical values, and a human readable description. 7 | 8 | .. literalinclude:: ../native_client/coqui-stt.h 9 | :language: c 10 | :start-after: sphinx-doc: error_code_listing_start 11 | :end-before: sphinx-doc: error_code_listing_end 12 | -------------------------------------------------------------------------------- /doc/Python-API.rst: -------------------------------------------------------------------------------- 1 | .. _python-api: 2 | 3 | Python 4 | ====== 5 | 6 | .. automodule:: native_client.python 7 | 8 | Model 9 | ----- 10 | 11 | .. autoclass:: Model 12 | :members: 13 | 14 | Stream 15 | ------ 16 | 17 | .. autoclass:: Stream 18 | :members: 19 | 20 | Metadata 21 | -------- 22 | 23 | .. autoclass:: Metadata 24 | :members: 25 | 26 | CandidateTranscript 27 | ------------------- 28 | 29 | .. autoclass:: CandidateTranscript 30 | :members: 31 | 32 | TokenMetadata 33 | ------------- 34 | 35 | .. autoclass:: TokenMetadata 36 | :members: 37 | -------------------------------------------------------------------------------- /doc/Structs.rst: -------------------------------------------------------------------------------- 1 | Data structures 2 | =============== 3 | 4 | Metadata 5 | -------- 6 | 7 | .. doxygenstruct:: Metadata 8 | :project: stt-c 9 | :members: 10 | 11 | CandidateTranscript 12 | ------------------- 13 | 14 | .. doxygenstruct:: CandidateTranscript 15 | :project: stt-c 16 | :members: 17 | 18 | TokenMetadata 19 | ------------- 20 | 21 | .. doxygenstruct:: TokenMetadata 22 | :project: stt-c 23 | :members: 24 | -------------------------------------------------------------------------------- /doc/audioTranscript.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/doc/audioTranscript.png -------------------------------------------------------------------------------- /doc/playbook/LICENSE.md: -------------------------------------------------------------------------------- 1 | Unless otherwise indicated, the text of documents in this collection is available under the Creative Commons Attribution Share-Alike 3.0 Unported license, or any later version. 2 | 3 | [https://creativecommons.org/licenses/by-sa/3.0/](https://creativecommons.org/licenses/by-sa/3.0/) 4 | 5 | This collection was originally authored by Kathy Reid and Josh Meyer under the CC-BY-SA 3.0 license. It was adapted to match the Coqui STT package names, repository URLs, file paths, etc. The original can be viewed [here](https://github.com/mozilla/deepspeech-playbook/tree/dbd6a116af35e6129af1a6a8ebb501628029c25d). 6 | -------------------------------------------------------------------------------- /doc/playbook/images/nvtop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/doc/playbook/images/nvtop.png -------------------------------------------------------------------------------- /doc/static/coqui-STT-circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/doc/static/coqui-STT-circle.png -------------------------------------------------------------------------------- /doc/static/custom.css: -------------------------------------------------------------------------------- 1 | #flags pre, #inference-tools-in-the-training-package pre { 2 | white-space: pre-wrap; 3 | } 4 | -------------------------------------------------------------------------------- /ds_generic.supp: -------------------------------------------------------------------------------- 1 | { 2 | libgomp_malloc 3 | Memcheck:Leak 4 | match-leak-kinds: reachable 5 | fun:malloc 6 | obj:/usr/lib/*/libgomp.so.1.0.0 7 | } 8 | -------------------------------------------------------------------------------- /ds_lib.supp: -------------------------------------------------------------------------------- 1 | { 2 | stt_tflite_error_reporter 3 | Memcheck:Leak 4 | match-leak-kinds: reachable 5 | fun:_Znwm 6 | fun:_ZN6tflite20DefaultErrorReporterEv 7 | fun:_ZN16TFLiteModelState4initEPKc 8 | fun:STT_CreateModel 9 | fun:main 10 | } 11 | -------------------------------------------------------------------------------- /evaluate.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | from __future__ import absolute_import, division, print_function 4 | 5 | if __name__ == "__main__": 6 | try: 7 | from coqui_stt_training import evaluate as stt_evaluate 8 | except ImportError: 9 | print("Training package is not installed. See training documentation.") 10 | raise 11 | 12 | stt_evaluate.main() 13 | -------------------------------------------------------------------------------- /evaluate_tflite.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | if __name__ == "__main__": 5 | 6 | print( 7 | "Using the top level evaluate_tflite.py script is deprecated and will be removed " 8 | "in a future release. Instead use: python -m coqui_stt_training.evaluate_export" 9 | ) 10 | try: 11 | from coqui_stt_training import evaluate_export as stt_evaluate_export 12 | except ImportError: 13 | print("Training package is not installed. See training documentation.") 14 | raise 15 | 16 | stt_evaluate_export.main() 17 | -------------------------------------------------------------------------------- /examples/README.rst: -------------------------------------------------------------------------------- 1 | Examples 2 | ======== 3 | 4 | 🐸STT examples were moved to a separate repository. 5 | 6 | New location: https://github.com/coqui-ai/STT-examples 7 | -------------------------------------------------------------------------------- /images/LSTM3-chain.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/images/LSTM3-chain.png -------------------------------------------------------------------------------- /images/Parallelism.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/images/Parallelism.png -------------------------------------------------------------------------------- /images/coqui-STT-logo-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/images/coqui-STT-logo-green.png -------------------------------------------------------------------------------- /images/rnn_fig-624x598.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/images/rnn_fig-624x598.png -------------------------------------------------------------------------------- /images/usage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/images/usage.gif -------------------------------------------------------------------------------- /lm_optimizer.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | from __future__ import absolute_import, division, print_function 4 | 5 | if __name__ == "__main__": 6 | print( 7 | "Using the top level lm_optimizer.py script is deprecated and will be removed " 8 | "in a future release. Instead use: python -m coqui_stt_training.util.lm_optimize" 9 | ) 10 | try: 11 | from coqui_stt_training.util import lm_optimize 12 | except ImportError: 13 | print("Training package is not installed. See training documentation.") 14 | raise 15 | 16 | lm_optimize.main() 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/COPYING: -------------------------------------------------------------------------------- 1 | Decoder sources originally imported from https://github.com/parlance/ctcdecode, commit 140b45860cec6671fb0bf6dbb675073241c0f9b0 2 | Decoder sources are under the MIT license (LICENSE.parlance). 3 | 4 | Binding code adapted from https://github.com/PaddlePaddle/DeepSpeech/tree/develop/decoders/swig, commit 3ea19973c66a6a10320888ba47a8857bebf5abfa 5 | Binding code are under the Apache License (LICENSE.paddlepaddle). 6 | -------------------------------------------------------------------------------- /native_client/ctcdecode/setup.cfg: -------------------------------------------------------------------------------- 1 | # temp_build is two deep because SWIG does not clean relative paths when 2 | # building, so ../kenlm pollutes the source directory. 3 | 4 | [build_ext] 5 | build-lib=temp_build/temp_build 6 | build-temp=temp_build/temp_build 7 | 8 | [build_py] 9 | build-lib=temp_build/temp_build 10 | 11 | [bdist_wheel] 12 | bdist-dir=temp_build/temp_build 13 | 14 | [install_lib] 15 | build-dir=temp_build/temp_build 16 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/ThreadPool/README.md: -------------------------------------------------------------------------------- 1 | ThreadPool 2 | ========== 3 | 4 | A simple C++11 Thread Pool implementation. 5 | 6 | Basic usage: 7 | ```c++ 8 | // create thread pool with 4 worker threads 9 | ThreadPool pool(4); 10 | 11 | // enqueue and store future 12 | auto result = pool.enqueue([](int answer) { return answer; }, 42); 13 | 14 | // get result from future 15 | std::cout << result.get() << std::endl; 16 | 17 | ``` 18 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/flashlight/flashlight/lib/text/decoder/Utils.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT-style license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | namespace fl { 9 | namespace lib { 10 | namespace text { 11 | 12 | // Place holder 13 | } // namespace text 14 | } // namespace lib 15 | } // namespace fl 16 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/object_pool/README.mozilla: -------------------------------------------------------------------------------- 1 | This code was imported from https://github.com/godefv/memory on September 17th 2020, commit 5ff1af8ee09ced04990b4863b2c02a8d07f4356a. It's licensed under "CC0 1.0 Universal" license. 2 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = src 2 | ACLOCAL_AMFLAGS = -I m4 3 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = include lib script bin test extensions 2 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstarcsort.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | DEFINE_string(sort_type, "ilabel", 8 | "Comparison method, one of: \"ilabel\", \"olabel\""); 9 | 10 | int fstarcsort_main(int argc, char **argv); 11 | 12 | int main(int argc, char **argv) { return fstarcsort_main(argc, argv); } 13 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstclosure.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(closure_plus, false, 7 | "Do not add the empty path (T+ instead of T*)?"); 8 | 9 | int fstclosure_main(int argc, char **argv); 10 | 11 | int main(int argc, char **argv) { return fstclosure_main(argc, argv); } 12 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstcompose.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_string(compose_filter, "auto", 7 | "Composition filter, one of: \"alt_sequence\", \"auto\", " 8 | "\"match\", \"null\", \"sequence\", \"trivial\""); 9 | DEFINE_bool(connect, true, "Trim output"); 10 | 11 | int fstcompose_main(int argc, char **argv); 12 | 13 | int main(int argc, char **argv) { return fstcompose_main(argc, argv); } 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstconcat.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fstconcat_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fstconcat_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstconnect.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fstconnect_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fstconnect_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstconvert.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_string(fst_type, "vector", "Output FST type"); 7 | 8 | int fstconvert_main(int argc, char **argv); 9 | 10 | int main(int argc, char **argv) { return fstconvert_main(argc, argv); } 11 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstdifference.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_string(compose_filter, "auto", 7 | "Composition filter, one of: \"alt_sequence\", \"auto\", " 8 | "\"match\", \"null\", \"sequence\", \"trivial\""); 9 | DEFINE_bool(connect, true, "Trim output"); 10 | 11 | int fstdifference_main(int argc, char **argv); 12 | 13 | int main(int argc, char **argv) { return fstdifference_main(argc, argv); } 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstencode.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(encode_labels, false, "Encode output labels"); 7 | DEFINE_bool(encode_weights, false, "Encode weights"); 8 | DEFINE_bool(encode_reuse, false, "Re-use existing codex"); 9 | DEFINE_bool(decode, false, "Decode labels and/or weights"); 10 | 11 | int fstencode_main(int argc, char **argv); 12 | 13 | int main(int argc, char **argv) { return fstencode_main(argc, argv); } 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstepsnormalize.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(eps_norm_output, false, "Normalize output epsilons"); 7 | 8 | int fstepsnormalize_main(int argc, char **argv); 9 | 10 | int main(int argc, char **argv) { return fstepsnormalize_main(argc, argv); } 11 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstequal.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta"); 8 | 9 | int fstequal_main(int argc, char **argv); 10 | 11 | int main(int argc, char **argv) { return fstequal_main(argc, argv); } 12 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstintersect.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_string(compose_filter, "auto", 7 | "Composition filter, one of: \"alt_sequence\", \"auto\", " 8 | "\"match\", \"null\", \"sequence\", \"trivial\""); 9 | DEFINE_bool(connect, true, "Trim output"); 10 | 11 | int fstintersect_main(int argc, char **argv); 12 | 13 | int main(int argc, char **argv) { return fstintersect_main(argc, argv); } 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstinvert.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fstinvert_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fstinvert_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstisomorphic.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta"); 8 | 9 | int fstisomorphic_main(int argc, char **argv); 10 | 11 | int main(int argc, char **argv) { return fstisomorphic_main(argc, argv); } 12 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstminimize.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | DEFINE_double(delta, fst::kShortestDelta, "Comparison/quantization delta"); 9 | DEFINE_bool(allow_nondet, false, "Minimize non-deterministic FSTs"); 10 | 11 | int fstminimize_main(int argc, char **argv); 12 | 13 | int main(int argc, char **argv) { return fstminimize_main(argc, argv); } 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstproject.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(project_output, false, "Project on output (vs. input)"); 7 | 8 | int fstproject_main(int argc, char **argv); 9 | 10 | int main(int argc, char **argv) { return fstproject_main(argc, argv); } 11 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstprune.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta"); 9 | DEFINE_int64(nstate, fst::kNoStateId, "State number threshold"); 10 | DEFINE_string(weight, "", "Weight threshold"); 11 | 12 | int fstprune_main(int argc, char **argv); 13 | 14 | int main(int argc, char **argv) { return fstprune_main(argc, argv); } 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstreverse.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(require_superinitial, true, "Always create a superinitial state"); 7 | 8 | int fstreverse_main(int argc, char **argv); 9 | 10 | int main(int argc, char **argv) { return fstreverse_main(argc, argv); } 11 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstreweight.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(to_final, false, "Push/reweight to final (vs. to initial) states"); 7 | 8 | int fstreweight_main(int argc, char **argv); 9 | 10 | int main(int argc, char **argv) { return fstreweight_main(argc, argv); } 11 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstsynchronize.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fstsynchronize_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fstsynchronize_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fsttopsort.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fsttopsort_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fsttopsort_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/bin/fstunion.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fstunion_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fstunion_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact16_acceptor-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactAcceptorFst_StdArc_uint16_registerer; 11 | static FstRegisterer> 12 | CompactAcceptorFst_LogArc_uint16_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact16_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactStringFst_StdArc_uint16_registerer; 11 | static FstRegisterer> 12 | CompactStringFst_LogArc_uint16_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact16_unweighted-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactUnweightedFst_StdArc_uint16_registerer; 11 | static FstRegisterer> 12 | CompactUnweightedFst_LogArc_uint16_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact16_weighted_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer< 10 | CompactWeightedStringFst> 11 | CompactWeightedStringFst_StdArc_uint16_registerer; 12 | 13 | static FstRegisterer< 14 | CompactWeightedStringFst> 15 | CompactWeightedStringFst_LogArc_uint16_registerer; 16 | 17 | } // namespace fst 18 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact64_acceptor-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactAcceptorFst_StdArc_uint64_registerer; 11 | 12 | static FstRegisterer> 13 | CompactAcceptorFst_LogArc_uint64_registerer; 14 | 15 | } // namespace fst 16 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact64_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactStringFst_StdArc_uint64_registerer; 11 | static FstRegisterer> 12 | CompactStringFst_LogArc_uint64_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact64_unweighted-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactUnweightedFst_StdArc_uint64_registerer; 11 | static FstRegisterer> 12 | CompactUnweightedFst_LogArc_uint64_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact64_weighted_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer< 10 | CompactWeightedStringFst> 11 | CompactWeightedStringFst_StdArc_uint64_registerer; 12 | static FstRegisterer< 13 | CompactWeightedStringFst> 14 | CompactWeightedStringFst_LogArc_uint64_registerer; 15 | 16 | } // namespace fst 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact8_acceptor-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactAcceptorFst_StdArc_uint8_registerer; 11 | static FstRegisterer> 12 | CompactAcceptorFst_LogArc_uint8_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact8_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactStringFst_StdArc_uint8_registerer; 11 | static FstRegisterer> 12 | CompactStringFst_LogArc_uint8_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact8_unweighted-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactUnweightedFst_StdArc_uint8_registerer; 11 | static FstRegisterer> 12 | CompactUnweightedFst_LogArc_uint8_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact8_unweighted_acceptor-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer< 10 | CompactUnweightedAcceptorFst> 11 | CompactUnweightedAcceptorFst_StdArc_uint8_registerer; 12 | static FstRegisterer< 13 | CompactUnweightedAcceptorFst> 14 | CompactUnweightedAcceptorFst_LogArc_uint8_registerer; 15 | 16 | } // namespace fst 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/compact/compact8_weighted_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer< 10 | CompactWeightedStringFst> 11 | CompactWeightedStringFst_StdArc_uint8_registerer; 12 | static FstRegisterer< 13 | CompactWeightedStringFst> 14 | CompactWeightedStringFst_LogArc_uint8_registerer; 15 | 16 | } // namespace fst 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/const/const16-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | ConstFst_StdArc_uint16_registerer; 11 | static FstRegisterer> 12 | ConstFst_LogArc_uint16_registerer; 13 | static FstRegisterer> 14 | ConstFst_Log64Arc_uint16_registerer; 15 | 16 | } // namespace fst 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/const/const64-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | ConstFst_StdArc_uint64_registerer; 11 | static FstRegisterer> 12 | ConstFst_LogArc_uint64_registerer; 13 | static FstRegisterer> 14 | ConstFst_Log64Arc_uint64_registerer; 15 | 16 | } // namespace fst 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/const/const8-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> ConstFst_StdArc_uint8_registerer; 10 | static FstRegisterer> ConstFst_LogArc_uint8_registerer; 11 | static FstRegisterer> 12 | ConstFst_Log64Arc_uint8_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/far/stlist.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | #include 7 | #include 8 | 9 | namespace fst { 10 | 11 | bool IsSTList(const string &filename) { 12 | std::ifstream strm(filename, std::ios_base::in | std::ios_base::binary); 13 | if (!strm) return false; 14 | int32 magic_number = 0; 15 | ReadType(strm, &magic_number); 16 | return magic_number == kSTListMagicNumber; 17 | } 18 | 19 | } // namespace fst 20 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/far/sttable.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | bool IsSTTable(const string &filename) { 10 | std::ifstream strm(filename); 11 | if (!strm.good()) return false; 12 | 13 | int32 magic_number = 0; 14 | ReadType(strm, &magic_number); 15 | return magic_number == kSTTableMagicNumber; 16 | } 17 | 18 | } // namespace fst 19 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/linear/linear-classifier-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | using fst::LinearClassifierFst; 8 | using fst::StdArc; 9 | using fst::LogArc; 10 | 11 | REGISTER_FST(LinearClassifierFst, StdArc); 12 | REGISTER_FST(LinearClassifierFst, LogArc); 13 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/linear/linear-tagger-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | using fst::LinearTaggerFst; 8 | using fst::StdArc; 9 | using fst::LogArc; 10 | 11 | REGISTER_FST(LinearTaggerFst, StdArc); 12 | REGISTER_FST(LinearTaggerFst, LogArc); 13 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/ngram/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS) 2 | 3 | libfstdir = @libfstdir@ 4 | libfst_LTLIBRARIES = ngram-fst.la 5 | 6 | lib_LTLIBRARIES = libfstngram.la 7 | 8 | ngram_fst_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc 9 | ngram_fst_la_LDFLAGS = -module 10 | 11 | libfstngram_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc 12 | libfstngram_la_LDFLAGS = -version-info 10:0:0 13 | libfstngram_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS) 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/ngram/ngram-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | #include 7 | 8 | #include 9 | #include 10 | 11 | using fst::NGramFst; 12 | using fst::StdArc; 13 | using fst::LogArc; 14 | 15 | REGISTER_FST(NGramFst, StdArc); 16 | REGISTER_FST(NGramFst, LogArc); 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/python/basictypes.pxd: -------------------------------------------------------------------------------- 1 | # See www.openfst.org for extensive documentation on this weighted 2 | # finite-state transducer library. 3 | 4 | 5 | from libc.stdint cimport * 6 | 7 | 8 | cdef extern from "" nogil: 9 | 10 | ctypedef int8_t int8 11 | ctypedef int16_t int16 12 | ctypedef int32_t int32 13 | ctypedef int64_t int64 14 | ctypedef uint8_t uint8 15 | ctypedef uint16_t uint16 16 | ctypedef uint32_t uint32 17 | ctypedef uint64_t uint64 18 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/extensions/python/memory.pxd: -------------------------------------------------------------------------------- 1 | # See www.openfst.org for extensive documentation on this weighted 2 | # finite-state transducer library. 3 | 4 | 5 | from libcpp.memory cimport shared_ptr 6 | 7 | 8 | # This is mysteriously missing from libcpp.memory. 9 | 10 | cdef extern from "" namespace "std" nogil: 11 | 12 | shared_ptr[T] static_pointer_cast[T, U](const shared_ptr[U] &) 13 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/include/fst/config.h: -------------------------------------------------------------------------------- 1 | /* src/include/fst/config.h. Generated from config.h.in by configure. */ 2 | // OpenFst config file 3 | 4 | /* Define to 1 if you have the ICU library. */ 5 | /* #undef HAVE_ICU */ 6 | 7 | /* Define to 1 if the system has the type `std::tr1::hash'. */ 9 | #define HAVE_STD__TR1__HASH_LONG_LONG_UNSIGNED_ 1 10 | 11 | /* Define to 1 if the system has the type `__gnu_cxx::slist'. */ 12 | #define HAVE___GNU_CXX__SLIST_INT_ 1 13 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/include/fst/config.h.in: -------------------------------------------------------------------------------- 1 | // OpenFst config file 2 | 3 | /* Define to 1 if you have the ICU library. */ 4 | #undef HAVE_ICU 5 | 6 | /* Define to 1 if the system has the type `std::tr1::hash'. */ 8 | #define HAVE_STD__TR1__HASH_LONG_LONG_UNSIGNED_ 1 9 | 10 | /* Define to 1 if the system has the type `__gnu_cxx::slist'. */ 11 | #define HAVE___GNU_CXX__SLIST_INT_ 1 12 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.7/src/lib/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(srcdir)/../include $(ICU_CPPFLAGS) 2 | 3 | lib_LTLIBRARIES = libfst.la 4 | libfst_la_SOURCES = compat.cc flags.cc fst.cc fst-types.cc mapped-file.cc \ 5 | properties.cc symbol-table.cc symbol-table-ops.cc \ 6 | weight.cc util.cc 7 | libfst_la_LDFLAGS = -version-info 10:0:0 8 | libfst_la_LIBADD = $(DL_LIBS) 9 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore extensionless files 2 | !*.* 3 | !*/ 4 | 5 | # Other patterns 6 | /config.h 7 | /config.log 8 | /config.status 9 | .deps/ 10 | .libs/ 11 | .dirstamp 12 | *.la 13 | *.lo 14 | *.o 15 | 16 | # Windows-specific files 17 | .vs/ 18 | *.VC.db 19 | Win32/ 20 | x64/ 21 | Debug/ 22 | Release/ 23 | obj/ 24 | /bin/ 25 | *.binlog 26 | *proj.user 27 | /cmake 28 | /cmake64 29 | /CMakeSettings.json 30 | /*.zip -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = src 2 | ACLOCAL_AMFLAGS = -I m4 3 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/README.mozilla: -------------------------------------------------------------------------------- 1 | openfst-1.6.9-win source downloaded from https://github.com/kkm000/openfst on 2018/12/10 2 | 3 | This corresponds to https://github.com/kkm000/openfst/commit/d4dd88e17393454e252d4644b39cf496a8cd9cac 4 | 5 | The following procedure was needed to compile with BAZEL 0.17.2: 6 | 7 | Used VS CODE to rename the following types: 8 | uint64 -> uint64_t 9 | uint32 -> uint32_t 10 | uint16 -> uint16_t -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/Makefile.am: -------------------------------------------------------------------------------- 1 | SUBDIRS = include lib script bin test extensions 2 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstarcsort.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | DEFINE_string(sort_type, "ilabel", 8 | "Comparison method, one of: \"ilabel\", \"olabel\""); 9 | 10 | int fstarcsort_main(int argc, char **argv); 11 | 12 | int main(int argc, char **argv) { return fstarcsort_main(argc, argv); } 13 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstclosure.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(closure_plus, false, 7 | "Do not add the empty path (T+ instead of T*)?"); 8 | 9 | int fstclosure_main(int argc, char **argv); 10 | 11 | int main(int argc, char **argv) { return fstclosure_main(argc, argv); } 12 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstcompose.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_string(compose_filter, "auto", 7 | "Composition filter, one of: \"alt_sequence\", \"auto\", " 8 | "\"match\", \"null\", \"sequence\", \"trivial\""); 9 | DEFINE_bool(connect, true, "Trim output"); 10 | 11 | int fstcompose_main(int argc, char **argv); 12 | 13 | int main(int argc, char **argv) { return fstcompose_main(argc, argv); } 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstconcat.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fstconcat_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fstconcat_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstconnect.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fstconnect_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fstconnect_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstconvert.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_string(fst_type, "vector", "Output FST type"); 7 | 8 | int fstconvert_main(int argc, char **argv); 9 | 10 | int main(int argc, char **argv) { return fstconvert_main(argc, argv); } 11 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstdifference.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_string(compose_filter, "auto", 7 | "Composition filter, one of: \"alt_sequence\", \"auto\", " 8 | "\"match\", \"null\", \"sequence\", \"trivial\""); 9 | DEFINE_bool(connect, true, "Trim output"); 10 | 11 | int fstdifference_main(int argc, char **argv); 12 | 13 | int main(int argc, char **argv) { return fstdifference_main(argc, argv); } 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstencode.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(encode_labels, false, "Encode output labels"); 7 | DEFINE_bool(encode_weights, false, "Encode weights"); 8 | DEFINE_bool(encode_reuse, false, "Re-use existing codex"); 9 | DEFINE_bool(decode, false, "Decode labels and/or weights"); 10 | 11 | int fstencode_main(int argc, char **argv); 12 | 13 | int main(int argc, char **argv) { return fstencode_main(argc, argv); } 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstepsnormalize.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(eps_norm_output, false, "Normalize output epsilons"); 7 | 8 | int fstepsnormalize_main(int argc, char **argv); 9 | 10 | int main(int argc, char **argv) { return fstepsnormalize_main(argc, argv); } 11 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstequal.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta"); 8 | 9 | int fstequal_main(int argc, char **argv); 10 | 11 | int main(int argc, char **argv) { return fstequal_main(argc, argv); } 12 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstintersect.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_string(compose_filter, "auto", 7 | "Composition filter, one of: \"alt_sequence\", \"auto\", " 8 | "\"match\", \"null\", \"sequence\", \"trivial\""); 9 | DEFINE_bool(connect, true, "Trim output"); 10 | 11 | int fstintersect_main(int argc, char **argv); 12 | 13 | int main(int argc, char **argv) { return fstintersect_main(argc, argv); } 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstinvert.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fstinvert_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fstinvert_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstisomorphic.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta"); 8 | 9 | int fstisomorphic_main(int argc, char **argv); 10 | 11 | int main(int argc, char **argv) { return fstisomorphic_main(argc, argv); } 12 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstminimize.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | DEFINE_double(delta, fst::kShortestDelta, "Comparison/quantization delta"); 9 | DEFINE_bool(allow_nondet, false, "Minimize non-deterministic FSTs"); 10 | 11 | int fstminimize_main(int argc, char **argv); 12 | 13 | int main(int argc, char **argv) { return fstminimize_main(argc, argv); } 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstproject.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(project_output, false, "Project on output (vs. input)"); 7 | 8 | int fstproject_main(int argc, char **argv); 9 | 10 | int main(int argc, char **argv) { return fstproject_main(argc, argv); } 11 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstprune.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | DEFINE_double(delta, fst::kDelta, "Comparison/quantization delta"); 9 | DEFINE_int64(nstate, fst::kNoStateId, "State number threshold"); 10 | DEFINE_string(weight, "", "Weight threshold"); 11 | 12 | int fstprune_main(int argc, char **argv); 13 | 14 | int main(int argc, char **argv) { return fstprune_main(argc, argv); } 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstreverse.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(require_superinitial, true, "Always create a superinitial state"); 7 | 8 | int fstreverse_main(int argc, char **argv); 9 | 10 | int main(int argc, char **argv) { return fstreverse_main(argc, argv); } 11 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstreweight.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | DEFINE_bool(to_final, false, "Push/reweight to final (vs. to initial) states"); 7 | 8 | int fstreweight_main(int argc, char **argv); 9 | 10 | int main(int argc, char **argv) { return fstreweight_main(argc, argv); } 11 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstsynchronize.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fstsynchronize_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fstsynchronize_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fsttopsort.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fsttopsort_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fsttopsort_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/bin/fstunion.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | int fstunion_main(int argc, char **argv); 5 | 6 | int main(int argc, char **argv) { return fstunion_main(argc, argv); } 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact16_acceptor-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactAcceptorFst_StdArc_uint16_registerer; 11 | static FstRegisterer> 12 | CompactAcceptorFst_LogArc_uint16_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact16_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactStringFst_StdArc_uint16_registerer; 11 | static FstRegisterer> 12 | CompactStringFst_LogArc_uint16_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact16_unweighted-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactUnweightedFst_StdArc_uint16_registerer; 11 | static FstRegisterer> 12 | CompactUnweightedFst_LogArc_uint16_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact16_weighted_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer< 10 | CompactWeightedStringFst> 11 | CompactWeightedStringFst_StdArc_uint16_registerer; 12 | 13 | static FstRegisterer< 14 | CompactWeightedStringFst> 15 | CompactWeightedStringFst_LogArc_uint16_registerer; 16 | 17 | } // namespace fst 18 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact64_acceptor-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactAcceptorFst_StdArc_uint64_registerer; 11 | 12 | static FstRegisterer> 13 | CompactAcceptorFst_LogArc_uint64_registerer; 14 | 15 | } // namespace fst 16 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact64_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactStringFst_StdArc_uint64_registerer; 11 | static FstRegisterer> 12 | CompactStringFst_LogArc_uint64_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact64_unweighted-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactUnweightedFst_StdArc_uint64_registerer; 11 | static FstRegisterer> 12 | CompactUnweightedFst_LogArc_uint64_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact64_weighted_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer< 10 | CompactWeightedStringFst> 11 | CompactWeightedStringFst_StdArc_uint64_registerer; 12 | static FstRegisterer< 13 | CompactWeightedStringFst> 14 | CompactWeightedStringFst_LogArc_uint64_registerer; 15 | 16 | } // namespace fst 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact8_acceptor-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactAcceptorFst_StdArc_uint8_registerer; 11 | static FstRegisterer> 12 | CompactAcceptorFst_LogArc_uint8_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact8_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactStringFst_StdArc_uint8_registerer; 11 | static FstRegisterer> 12 | CompactStringFst_LogArc_uint8_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact8_unweighted-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | CompactUnweightedFst_StdArc_uint8_registerer; 11 | static FstRegisterer> 12 | CompactUnweightedFst_LogArc_uint8_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/compact/compact8_weighted_string-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer< 10 | CompactWeightedStringFst> 11 | CompactWeightedStringFst_StdArc_uint8_registerer; 12 | static FstRegisterer< 13 | CompactWeightedStringFst> 14 | CompactWeightedStringFst_LogArc_uint8_registerer; 15 | 16 | } // namespace fst 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/const/const16-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | ConstFst_StdArc_uint16_registerer; 11 | static FstRegisterer> 12 | ConstFst_LogArc_uint16_registerer; 13 | static FstRegisterer> 14 | ConstFst_Log64Arc_uint16_registerer; 15 | 16 | } // namespace fst 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/const/const64-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> 10 | ConstFst_StdArc_uint64_registerer; 11 | static FstRegisterer> 12 | ConstFst_LogArc_uint64_registerer; 13 | static FstRegisterer> 14 | ConstFst_Log64Arc_uint64_registerer; 15 | 16 | } // namespace fst 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/const/const8-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | static FstRegisterer> ConstFst_StdArc_uint8_registerer; 10 | static FstRegisterer> ConstFst_LogArc_uint8_registerer; 11 | static FstRegisterer> 12 | ConstFst_Log64Arc_uint8_registerer; 13 | 14 | } // namespace fst 15 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/far/sttable.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | namespace fst { 8 | 9 | bool IsSTTable(const string &filename) { 10 | std::ifstream strm(filename); 11 | if (!strm.good()) return false; 12 | 13 | int32 magic_number = 0; 14 | ReadType(strm, &magic_number); 15 | return magic_number == kSTTableMagicNumber; 16 | } 17 | 18 | } // namespace fst 19 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/linear/linear-classifier-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | using fst::LinearClassifierFst; 8 | using fst::StdArc; 9 | using fst::LogArc; 10 | 11 | REGISTER_FST(LinearClassifierFst, StdArc); 12 | REGISTER_FST(LinearClassifierFst, LogArc); 13 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/linear/linear-tagger-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | #include 6 | 7 | using fst::LinearTaggerFst; 8 | using fst::StdArc; 9 | using fst::LogArc; 10 | 11 | REGISTER_FST(LinearTaggerFst, StdArc); 12 | REGISTER_FST(LinearTaggerFst, LogArc); 13 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/ngram/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(srcdir)/../../include $(ICU_CPPFLAGS) 2 | 3 | libfstdir = @libfstdir@ 4 | libfst_LTLIBRARIES = ngram-fst.la 5 | 6 | lib_LTLIBRARIES = libfstngram.la 7 | 8 | ngram_fst_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc 9 | ngram_fst_la_LDFLAGS = -module 10 | 11 | libfstngram_la_SOURCES = bitmap-index.cc ngram-fst.cc nthbit.cc 12 | libfstngram_la_LDFLAGS = -version-info 13:0:0 13 | libfstngram_la_LIBADD = ../../lib/libfst.la -lm $(DL_LIBS) 14 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/ngram/ngram-fst.cc: -------------------------------------------------------------------------------- 1 | // See www.openfst.org for extensive documentation on this weighted 2 | // finite-state transducer library. 3 | 4 | #include 5 | 6 | #include 7 | 8 | #include 9 | #include 10 | 11 | using fst::NGramFst; 12 | using fst::StdArc; 13 | using fst::LogArc; 14 | 15 | REGISTER_FST(NGramFst, StdArc); 16 | REGISTER_FST(NGramFst, LogArc); 17 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/python/basictypes.pxd: -------------------------------------------------------------------------------- 1 | # See www.openfst.org for extensive documentation on this weighted 2 | # finite-state transducer library. 3 | 4 | 5 | from libc.stdint cimport * 6 | 7 | 8 | cdef extern from "" nogil: 9 | 10 | ctypedef int8_t int8 11 | ctypedef int16_t int16 12 | ctypedef int32_t int32 13 | ctypedef int64_t int64 14 | ctypedef uint8_t uint8 15 | ctypedef uint16_t uint16 16 | ctypedef uint32_t uint32 17 | ctypedef uint64_t uint64 18 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/python/memory.pxd: -------------------------------------------------------------------------------- 1 | # See www.openfst.org for extensive documentation on this weighted 2 | # finite-state transducer library. 3 | 4 | 5 | from libcpp.memory cimport shared_ptr 6 | 7 | 8 | # This is mysteriously missing from libcpp.memory. 9 | 10 | cdef extern from "" namespace "std" nogil: 11 | 12 | shared_ptr[T] static_pointer_cast[T, U](const shared_ptr[U] &) 13 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/extensions/special/fstspecial.cc: -------------------------------------------------------------------------------- 1 | // Work-around to correctly build (e.g. distclean) with autotools 2 | // using files in another directory that are also built there. 3 | // See https://stackoverflow.com/questions/30379837. 4 | 5 | #include "fstconvert-main.cc" // NOLINT 6 | #include "fstconvert.cc" // NOLINT 7 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/include/fst/config.h: -------------------------------------------------------------------------------- 1 | // Windows-specific OpenFst config file 2 | // No dynamic registration. 3 | #define FST_NO_DYNAMIC_LINKING 1 4 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/include/fst/config.h.in: -------------------------------------------------------------------------------- 1 | // OpenFst config file 2 | 3 | /* Define to 1 if you have the ICU library. */ 4 | #undef HAVE_ICU 5 | 6 | /* Define to 1 if the system has the type `std::tr1::hash'. */ 8 | #define HAVE_STD__TR1__HASH_LONG_LONG_UNSIGNED_ 1 9 | 10 | /* Define to 1 if the system has the type `__gnu_cxx::slist'. */ 11 | #define HAVE___GNU_CXX__SLIST_INT_ 1 12 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/lib/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | FILE(GLOB HEADER_FILES ../include/fst/*.h) 2 | 3 | 4 | add_library(fst 5 | compat.cc 6 | flags.cc 7 | fst-types.cc 8 | fst.cc 9 | mapped-file.cc 10 | properties.cc 11 | symbol-table.cc 12 | symbol-table-ops.cc 13 | util.cc 14 | weight.cc 15 | ${HEADER_FILES} 16 | ) 17 | set_target_properties(fst PROPERTIES 18 | SOVERSION "${SOVERSION}" 19 | ) 20 | 21 | 22 | 23 | install(TARGETS fst 24 | LIBRARY DESTINATION lib 25 | ARCHIVE DESTINATION lib 26 | RUNTIME DESTINATION lib) 27 | -------------------------------------------------------------------------------- /native_client/ctcdecode/third_party/openfst-1.6.9-win/src/lib/Makefile.am: -------------------------------------------------------------------------------- 1 | AM_CPPFLAGS = -I$(srcdir)/../include $(ICU_CPPFLAGS) 2 | 3 | lib_LTLIBRARIES = libfst.la 4 | libfst_la_SOURCES = compat.cc flags.cc fst.cc fst-types.cc mapped-file.cc \ 5 | properties.cc symbol-table.cc symbol-table-ops.cc \ 6 | weight.cc util.cc 7 | libfst_la_LDFLAGS = -version-info 13:0:0 8 | libfst_la_LIBADD = $(DL_LIBS) 9 | -------------------------------------------------------------------------------- /native_client/dotnet/STTClient/Models/Metadata.cs: -------------------------------------------------------------------------------- 1 | namespace STTClient.Models 2 | { 3 | /// 4 | /// Stores the entire CTC output as an array of character metadata objects. 5 | /// 6 | public class Metadata 7 | { 8 | /// 9 | /// List of candidate transcripts. 10 | /// 11 | public CandidateTranscript[] Transcripts { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /native_client/dotnet/STTClient/STTClient.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | Library 4 | netstandard2.0;netstandard2.1;net5.0;net6.0 5 | true 6 | 7 | 8 | -------------------------------------------------------------------------------- /native_client/dotnet/STTClient/Structs/Metadata.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Runtime.InteropServices; 3 | 4 | namespace STTClient.Structs 5 | { 6 | [StructLayout(LayoutKind.Sequential)] 7 | internal unsafe struct Metadata 8 | { 9 | /// 10 | /// Native list of candidate transcripts. 11 | /// 12 | internal unsafe IntPtr transcripts; 13 | /// 14 | /// Count of transcripts from the native side. 15 | /// 16 | internal unsafe int num_transcripts; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /native_client/dotnet/STTConsole/arctic_a0024.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/dotnet/STTConsole/arctic_a0024.wav -------------------------------------------------------------------------------- /native_client/dotnet/STTWPF/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /native_client/dotnet/STTWPF/App.xaml: -------------------------------------------------------------------------------- 1 |  7 | 8 | 9 | -------------------------------------------------------------------------------- /native_client/dotnet/STTWPF/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using CommonServiceLocator; 2 | using STT.WPF.ViewModels; 3 | using System.Windows; 4 | 5 | namespace STTWPF 6 | { 7 | /// 8 | /// Interaction logic for MainWindow.xaml 9 | /// 10 | public partial class MainWindow : Window 11 | { 12 | public MainWindow() => InitializeComponent(); 13 | 14 | private void Window_Loaded(object sender, RoutedEventArgs e) => 15 | DataContext = ServiceLocator.Current.GetInstance(); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /native_client/dotnet/STTWPF/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /native_client/dotnet/nupkg/build/.gitpreserve: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/dotnet/nupkg/build/.gitpreserve -------------------------------------------------------------------------------- /native_client/dotnet/nupkg/build/STT.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | %(FileName)%(Extension) 6 | PreserveNewest 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /native_client/dotnet/nupkg/lib/net45/.gitpreserve: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/dotnet/nupkg/lib/net45/.gitpreserve -------------------------------------------------------------------------------- /native_client/dotnet/nupkg/lib/net46/.gitpreserve: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/dotnet/nupkg/lib/net46/.gitpreserve -------------------------------------------------------------------------------- /native_client/dotnet/nupkg/lib/net47/.gitpreserve: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/dotnet/nupkg/lib/net47/.gitpreserve -------------------------------------------------------------------------------- /native_client/dotnet/nupkg/tools/.gitpreserve: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/dotnet/nupkg/tools/.gitpreserve -------------------------------------------------------------------------------- /native_client/java/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/caches/build_file_checksums.ser 5 | /.idea/libraries 6 | /.idea/modules.xml 7 | /.idea/workspace.xml 8 | .DS_Store 9 | /build 10 | /captures 11 | .externalNativeBuild 12 | -------------------------------------------------------------------------------- /native_client/java/README.md: -------------------------------------------------------------------------------- 1 | Full project description and documentation on [https://stt.readthedocs.io/](https://stt.readthedocs.io/). 2 | -------------------------------------------------------------------------------- /native_client/java/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/java/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/java/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/java/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/java/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/java/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/java/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/java/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/java/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/java/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/java/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #008577 4 | #00574B 5 | #D81B60 6 | 7 | -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Coqui STT 3 | 4 | -------------------------------------------------------------------------------- /native_client/java/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /native_client/java/app/src/test/java/ai/coqui/sttexampleapp/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package ai.coqui.sttexampleapp; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /native_client/java/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/java/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /native_client/java/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /native_client/java/libstt/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /native_client/java/libstt/gradle.properties: -------------------------------------------------------------------------------- 1 | ABI_FILTERS = arm64-v8a;armeabi-v7a;x86_64 2 | -------------------------------------------------------------------------------- /native_client/java/libstt/libs/.gitignore: -------------------------------------------------------------------------------- 1 | arm64-v8a/ 2 | armeabi-v7a/ 3 | -------------------------------------------------------------------------------- /native_client/java/libstt/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /native_client/java/libstt/src/main/java/ai/coqui/libstt/STTStreamingState.java: -------------------------------------------------------------------------------- 1 | package ai.coqui.libstt; 2 | 3 | public final class STTStreamingState { 4 | private SWIGTYPE_p_StreamingState _sp; 5 | 6 | public STTStreamingState(SWIGTYPE_p_StreamingState sp) { 7 | this._sp = sp; 8 | } 9 | 10 | public SWIGTYPE_p_StreamingState get() { 11 | return this._sp; 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /native_client/java/libstt/src/main/java/ai/coqui/libstt_doc/README.rst: -------------------------------------------------------------------------------- 1 | 2 | Javadoc for Sphinx 3 | ================== 4 | 5 | This code is only here for reference for documentation generation. 6 | 7 | To update, please install SWIG (4.0 at least) and then run from native_client/java: 8 | 9 | .. code-block:: 10 | 11 | swig -c++ -java -doxygen -package ai.coqui.libstt -outdir libstt/src/main/java/ai/coqui/libstt_doc -o jni/stt_wrap.cpp jni/stt.i 12 | -------------------------------------------------------------------------------- /native_client/java/libstt/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | libstt 3 | 4 | -------------------------------------------------------------------------------- /native_client/java/libstt/src/test/java/ai/coqui/libstt/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package ai.coqui.libstt; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /native_client/java/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':libstt' 2 | -------------------------------------------------------------------------------- /native_client/javascript/README.md: -------------------------------------------------------------------------------- 1 | Full project description and documentation on [https://stt.readthedocs.io/](https://stt.readthedocs.io/). 2 | 3 | Special thanks to [Huan - Google Developers Experts in Machine Learning (ML GDE)](https://github.com/huan) for providing the STT project name on npmjs.org 4 | -------------------------------------------------------------------------------- /native_client/javascript/node-pre-gyp.d.ts: -------------------------------------------------------------------------------- 1 | declare module "node-pre-gyp" { 2 | export function find(path: String): any; 3 | } 4 | -------------------------------------------------------------------------------- /native_client/kenlm/.gitignore: -------------------------------------------------------------------------------- 1 | util/file_piece.cc.gz 2 | *.swp 3 | *.o 4 | doc/ 5 | build/ 6 | /bin 7 | /lib 8 | /tests 9 | ._* 10 | windows/Win32 11 | windows/x64 12 | windows/*.user 13 | windows/*.sdf 14 | windows/*.opensdf 15 | windows/*.suo 16 | CMakeFiles 17 | cmake_install.cmake 18 | CMakeCache.txt 19 | CTestTestfile.cmake 20 | DartConfiguration.tcl 21 | Makefile 22 | -------------------------------------------------------------------------------- /native_client/kenlm/GIT_REVISION: -------------------------------------------------------------------------------- 1 | fee7b058bf3f96d570c852340729c0d4d4df2c25 2 | -------------------------------------------------------------------------------- /native_client/kenlm/MANIFEST.in: -------------------------------------------------------------------------------- 1 | # file GENERATED by distutils, do NOT edit 2 | include setup.py 3 | include lm/*.cc 4 | include lm/*.hh 5 | include python/*.cpp 6 | include util/*.cc 7 | include util/*.hh 8 | include util/double-conversion/*.cc 9 | include util/double-conversion/*.h 10 | -------------------------------------------------------------------------------- /native_client/kenlm/clean_query_only.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | rm -rf {lm,util,util/double-conversion}/*.o bin/{query,build_binary} 3 | -------------------------------------------------------------------------------- /native_client/kenlm/cmake/kenlmConfig.cmake.in: -------------------------------------------------------------------------------- 1 | @PACKAGE_INIT@ 2 | 3 | include(CMakeFindDependencyMacro) 4 | 5 | find_dependency(Boost) 6 | find_dependency(Threads) 7 | 8 | # Compression libs 9 | if (@ZLIB_FOUND@) 10 | find_dependency(ZLIB) 11 | endif() 12 | if (@BZIP2_FOUND@) 13 | find_dependency(BZip2) 14 | endif() 15 | if (@LIBLZMA_FOUND@) 16 | find_dependency(LibLZMA) 17 | endif() 18 | 19 | include("${CMAKE_CURRENT_LIST_DIR}/kenlmTargets.cmake") 20 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/renumber.cc: -------------------------------------------------------------------------------- 1 | #include "renumber.hh" 2 | #include "ngram.hh" 3 | 4 | #include "../../util/stream/stream.hh" 5 | 6 | namespace lm { 7 | 8 | void Renumber::Run(const util::stream::ChainPosition &position) { 9 | for (util::stream::Stream stream(position); stream; ++stream) { 10 | NGramHeader gram(stream.Get(), order_); 11 | for (WordIndex *w = gram.begin(); w != gram.end(); ++w) { 12 | *w = new_numbers_[*w]; 13 | } 14 | } 15 | } 16 | 17 | } // namespace lm 18 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/size_option.hh: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include 4 | #include 5 | 6 | namespace lm { 7 | 8 | // Create a boost program option for data sizes. This parses sizes like 1T and 10k. 9 | boost::program_options::typed_value *SizeOption(std::size_t &to, const char *default_value); 10 | 11 | } // namespace lm 12 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/bigendian/toy0.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/kenlm/lm/common/test_data/bigendian/toy0.1 -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/bigendian/toy0.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/kenlm/lm/common/test_data/bigendian/toy0.2 -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/bigendian/toy0.3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/kenlm/lm/common/test_data/bigendian/toy0.3 -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/bigendian/toy0.kenlm_intermediate: -------------------------------------------------------------------------------- 1 | KenLM intermediate binary file 2 | Counts 5 7 7 3 | Payload pb 4 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/bigendian/toy0.vocab: -------------------------------------------------------------------------------- 1 | ab -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/bigendian/toy1.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/kenlm/lm/common/test_data/bigendian/toy1.1 -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/bigendian/toy1.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/kenlm/lm/common/test_data/bigendian/toy1.2 -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/bigendian/toy1.3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/kenlm/lm/common/test_data/bigendian/toy1.3 -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/bigendian/toy1.kenlm_intermediate: -------------------------------------------------------------------------------- 1 | KenLM intermediate binary file 2 | Counts 6 7 6 3 | Payload pb 4 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/bigendian/toy1.vocab: -------------------------------------------------------------------------------- 1 | acb -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/generate.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ../../../../build/bin/lmplz --discount_fallback -o 3 -S 100M --intermediate toy0 --arpa ../toy0.arpa <ab -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/littleendian/toy1.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/kenlm/lm/common/test_data/littleendian/toy1.1 -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/littleendian/toy1.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/kenlm/lm/common/test_data/littleendian/toy1.2 -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/littleendian/toy1.3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/native_client/kenlm/lm/common/test_data/littleendian/toy1.3 -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/littleendian/toy1.kenlm_intermediate: -------------------------------------------------------------------------------- 1 | KenLM intermediate binary file 2 | Counts 6 7 6 3 | Payload pb 4 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/common/test_data/littleendian/toy1.vocab: -------------------------------------------------------------------------------- 1 | acb -------------------------------------------------------------------------------- /native_client/kenlm/lm/interpolate/tune_weights.hh: -------------------------------------------------------------------------------- 1 | #ifndef LM_INTERPOLATE_TUNE_WEIGHTS_H 2 | #define LM_INTERPOLATE_TUNE_WEIGHTS_H 3 | 4 | #include "../../util/string_piece.hh" 5 | 6 | #include 7 | 8 | namespace lm { namespace interpolate { 9 | struct InstancesConfig; 10 | 11 | // Run a tuning loop, producing weights as output. 12 | void TuneWeights(int tune_file, const std::vector &model_names, const InstancesConfig &config, std::vector &weights); 13 | 14 | }} // namespaces 15 | #endif // LM_INTERPOLATE_TUNE_WEIGHTS_H 16 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/interpolate/universal_vocab.cc: -------------------------------------------------------------------------------- 1 | #include "universal_vocab.hh" 2 | 3 | namespace lm { 4 | namespace interpolate { 5 | 6 | UniversalVocab::UniversalVocab(const std::vector& model_vocab_sizes) { 7 | model_index_map_.resize(model_vocab_sizes.size()); 8 | for (size_t i = 0; i < model_vocab_sizes.size(); ++i) { 9 | model_index_map_[i].resize(model_vocab_sizes[i]); 10 | } 11 | } 12 | 13 | }} // namespaces 14 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/sizes.hh: -------------------------------------------------------------------------------- 1 | #ifndef LM_SIZES_H 2 | #define LM_SIZES_H 3 | 4 | #include 5 | 6 | #include 7 | 8 | namespace lm { namespace ngram { 9 | 10 | struct Config; 11 | 12 | void ShowSizes(const std::vector &counts, const lm::ngram::Config &config); 13 | void ShowSizes(const std::vector &counts); 14 | void ShowSizes(const char *file, const lm::ngram::Config &config); 15 | 16 | }} // namespaces 17 | #endif // LM_SIZES_H 18 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/virtual_interface.cc: -------------------------------------------------------------------------------- 1 | #include "virtual_interface.hh" 2 | 3 | #include "lm_exception.hh" 4 | 5 | namespace lm { 6 | namespace base { 7 | 8 | Vocabulary::~Vocabulary() {} 9 | 10 | void Vocabulary::SetSpecial(WordIndex begin_sentence, WordIndex end_sentence, WordIndex not_found) { 11 | begin_sentence_ = begin_sentence; 12 | end_sentence_ = end_sentence; 13 | not_found_ = not_found; 14 | } 15 | 16 | Model::~Model() {} 17 | 18 | } // namespace base 19 | } // namespace lm 20 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/weights.hh: -------------------------------------------------------------------------------- 1 | #ifndef LM_WEIGHTS_H 2 | #define LM_WEIGHTS_H 3 | 4 | // Weights for n-grams. Probability and possibly a backoff. 5 | 6 | namespace lm { 7 | struct Prob { 8 | float prob; 9 | }; 10 | // No inheritance so this will be a POD. 11 | struct ProbBackoff { 12 | float prob; 13 | float backoff; 14 | }; 15 | struct RestWeights { 16 | float prob; 17 | float backoff; 18 | float rest; 19 | }; 20 | 21 | } // namespace lm 22 | #endif // LM_WEIGHTS_H 23 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/word_index.hh: -------------------------------------------------------------------------------- 1 | // Separate header because this is used often. 2 | #ifndef LM_WORD_INDEX_H 3 | #define LM_WORD_INDEX_H 4 | 5 | #include 6 | 7 | namespace lm { 8 | typedef unsigned int WordIndex; 9 | const WordIndex kMaxWordIndex = UINT_MAX; 10 | const WordIndex kUNK = 0; 11 | } // namespace lm 12 | 13 | typedef lm::WordIndex LMWordIndex; 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /native_client/kenlm/lm/wrappers/README: -------------------------------------------------------------------------------- 1 | This directory is for wrappers around other people's LMs, presenting an interface similar to KenLM's. You will need to have their LM installed. 2 | 3 | NPLM is a work in progress. 4 | -------------------------------------------------------------------------------- /native_client/kenlm/util/have.hh: -------------------------------------------------------------------------------- 1 | /* Optional packages. You might want to integrate this with your build system e.g. config.h from ./configure. */ 2 | #ifndef UTIL_HAVE_H 3 | #define UTIL_HAVE_H 4 | 5 | #ifdef HAVE_CONFIG_H 6 | #include "config.h" 7 | #endif 8 | 9 | #ifndef HAVE_ICU 10 | //#define HAVE_ICU 11 | #endif 12 | 13 | #endif // UTIL_HAVE_H 14 | -------------------------------------------------------------------------------- /native_client/kenlm/util/parallel_read.hh: -------------------------------------------------------------------------------- 1 | #ifndef UTIL_PARALLEL_READ__ 2 | #define UTIL_PARALLEL_READ__ 3 | 4 | /* Read pieces of a file in parallel. This has a very specific use case: 5 | * reading files from Lustre is CPU bound so multiple threads actually 6 | * increases throughput. Speed matters when an LM takes a terabyte. 7 | */ 8 | 9 | #include 10 | #include 11 | 12 | namespace util { 13 | void ParallelRead(int fd, void *to, std::size_t amount, uint64_t offset); 14 | } // namespace util 15 | 16 | #endif // UTIL_PARALLEL_READ__ 17 | -------------------------------------------------------------------------------- /native_client/kenlm/util/pcqueue_test.cc: -------------------------------------------------------------------------------- 1 | #include "pcqueue.hh" 2 | 3 | #define BOOST_TEST_MODULE PCQueueTest 4 | #include 5 | 6 | namespace util { 7 | namespace { 8 | 9 | BOOST_AUTO_TEST_CASE(SingleThread) { 10 | PCQueue queue(10); 11 | for (int i = 0; i < 10; ++i) { 12 | queue.Produce(i); 13 | } 14 | for (int i = 0; i < 10; ++i) { 15 | BOOST_CHECK_EQUAL(i, queue.Consume()); 16 | } 17 | } 18 | 19 | } 20 | } // namespace util 21 | -------------------------------------------------------------------------------- /native_client/kenlm/util/spaces.hh: -------------------------------------------------------------------------------- 1 | #ifndef UTIL_SPACES_H 2 | #define UTIL_SPACES_H 3 | 4 | // bool array of spaces. 5 | 6 | namespace util { 7 | 8 | extern const bool kSpaces[256]; 9 | 10 | } // namespace util 11 | 12 | #endif // UTIL_SPACES_H 13 | -------------------------------------------------------------------------------- /native_client/multistrap_armbian64_bullseye.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | arch=arm64 3 | noauth=false 4 | unpack=true 5 | bootstrap=Debian 6 | aptsources=Debian 7 | cleanup=true 8 | 9 | [Debian] 10 | packages=apt libc6 libc6-dev libstdc++-9-dev linux-libc-dev libffi-dev libpython3.9-dev libsox-dev python3-numpy python3-setuptools 11 | source=http://deb.debian.org/debian 12 | keyring=debian-archive-keyring 13 | components=main 14 | suite=bullseye 15 | -------------------------------------------------------------------------------- /native_client/multistrap_armbian64_buster.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | arch=arm64 3 | noauth=false 4 | unpack=true 5 | debootstrap=Debian 6 | aptsources=Debian 7 | cleanup=true 8 | 9 | [Debian] 10 | packages=apt libc6 libc6-dev libstdc++-7-dev linux-libc-dev libffi-dev libpython3.7-dev libsox-dev python3-numpy python3-setuptools 11 | source=http://deb.debian.org/debian 12 | keyring=debian-archive-keyring 13 | components=main 14 | suite=buster 15 | -------------------------------------------------------------------------------- /native_client/multistrap_raspbian_bullseye.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | arch=armhf 3 | noauth=false 4 | unpack=true 5 | debootstrap=Raspbian 6 | aptsources=Raspbian 7 | cleanup=true 8 | 9 | [Raspbian] 10 | packages=apt libc6 libc6-dev libffi-dev libstdc++-9-dev linux-libc-dev libpython3.9-dev python3-distutils libsox-dev python3-numpy 11 | source=http://raspbian.raspberrypi.org/raspbian/ 12 | keyring=raspbian-archive-keyring 13 | components=main 14 | suite=bullseye 15 | -------------------------------------------------------------------------------- /native_client/multistrap_raspbian_buster.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | arch=armhf 3 | noauth=false 4 | unpack=true 5 | debootstrap=Raspbian 6 | aptsources=Raspbian 7 | cleanup=true 8 | 9 | [Raspbian] 10 | packages=apt libc6 libc6-dev libffi-dev libstdc++-6-dev linux-libc-dev libpython3.7-dev libsox-dev python3-numpy python3-setuptools 11 | source=http://raspbian.raspberrypi.org/raspbian/ 12 | keyring=raspbian-archive-keyring 13 | components=main 14 | suite=buster 15 | -------------------------------------------------------------------------------- /native_client/python/README.rst: -------------------------------------------------------------------------------- 1 | Full project description and documentation on `https://stt.readthedocs.io/ `_ 2 | -------------------------------------------------------------------------------- /native_client/python/setup.cfg: -------------------------------------------------------------------------------- 1 | [build_ext] 2 | include-dirs=./ 3 | build-lib=temp_build 4 | build-temp=temp_build 5 | 6 | [build_py] 7 | build-lib=temp_build 8 | 9 | [bdist_wheel] 10 | bdist-dir=temp_build 11 | 12 | [install_lib] 13 | build-dir=temp_build 14 | 15 | [metadata] 16 | description-file = ../README.rst 17 | -------------------------------------------------------------------------------- /native_client/stt_errors.cc: -------------------------------------------------------------------------------- 1 | #include "coqui-stt.h" 2 | #include 3 | 4 | char* 5 | STT_ErrorCodeToErrorMessage(int aErrorCode) 6 | { 7 | #define RETURN_MESSAGE(NAME, VALUE, DESC) \ 8 | case NAME: \ 9 | return strdup(DESC); 10 | 11 | switch(aErrorCode) 12 | { 13 | STT_FOR_EACH_ERROR(RETURN_MESSAGE) 14 | default: 15 | return strdup("Unknown error, please make sure you are using the correct native binary."); 16 | } 17 | 18 | #undef RETURN_MESSAGE 19 | } 20 | -------------------------------------------------------------------------------- /native_client/swift.modulemap: -------------------------------------------------------------------------------- 1 | module STTNative { 2 | header "coqui-stt.h" 3 | link "stt" 4 | export * 5 | } 6 | -------------------------------------------------------------------------------- /native_client/swift/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | build/ 3 | xcuserdata/ 4 | /deepspeech_ios/libdeepspeech.dylib 5 | -------------------------------------------------------------------------------- /native_client/swift/stt_ios_test.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /native_client/swift/stt_ios_test.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /native_client/swift/stt_ios_test/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /native_client/swift/stt_ios_test/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /native_client/wasm/package.json.in: -------------------------------------------------------------------------------- 1 | { 2 | "name" : "$(PROJECT_NAME)", 3 | "version" : "$(PROJECT_VERSION)", 4 | "description": "A Webassembly build for doing speech recognition using a Coqui STT model", 5 | "main": "./dist/stt_wasm.js", 6 | "files": [ 7 | "dist" 8 | ], 9 | "scripts": { 10 | "test": "echo \"Error: no test specified\" && exit 1" 11 | }, 12 | "author": "Coqui.ai", 13 | "license": "LGPL-2.1-only" 14 | } 15 | -------------------------------------------------------------------------------- /native_client/wasm/test/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | package.json 3 | package-lock.json 4 | -------------------------------------------------------------------------------- /native_client/wasm/test/babel.config.cjs: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: [['@babel/preset-env', { 3 | targets: { 4 | node: 'current' 5 | }, 6 | }]], 7 | plugins: ['babel-plugin-transform-import-meta'], 8 | } 9 | -------------------------------------------------------------------------------- /native_client/wasm/test/mock.worker.js: -------------------------------------------------------------------------------- 1 | // Mocks stt-wasm.worker.js as it is currently not being transpiled by babel 2 | var nodeWorkerThreads = require('worker_threads'); 3 | 4 | var parentPort = nodeWorkerThreads.parentPort; 5 | parentPort.postMessage({ 6 | "cmd": "loaded" 7 | }); 8 | -------------------------------------------------------------------------------- /native_client/wasm/test/package.json.in: -------------------------------------------------------------------------------- 1 | { 2 | "name": "stt-wasm-test", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "jest" 8 | }, 9 | "jest": { 10 | "testEnvironment": "node", 11 | "transform": { 12 | "\\.js$": "babel-jest" 13 | }, 14 | "transformIgnorePatterns": [] 15 | }, 16 | "author": "", 17 | "license": "ISC", 18 | "devDependencies": { 19 | "jest": "28.1.3", 20 | "babel-plugin-transform-import-meta": "^2.2.0", 21 | "@babel/preset-env": "7.18.9" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /native_client/workspace_status.h: -------------------------------------------------------------------------------- 1 | #ifndef WORKSPACE_STATUS_H 2 | #define WORKSPACE_STATUS_H 3 | 4 | const char *tf_local_git_version(); 5 | const char *ds_version(); 6 | const char *ds_git_version(); 7 | const int ds_graph_version(); 8 | 9 | #endif // WORKSPACE_STATUS_H 10 | -------------------------------------------------------------------------------- /requirements_eval_tflite.txt: -------------------------------------------------------------------------------- 1 | absl-py==0.9.0 2 | attrdict==2.0.1 3 | stt 4 | numpy==1.16.0 5 | progressbar2==3.47.0 6 | python-utils==2.3.0 7 | six==1.13.0 8 | pandas==0.25.3 9 | -------------------------------------------------------------------------------- /requirements_tests.txt: -------------------------------------------------------------------------------- 1 | absl-py 2 | argparse 3 | semver 4 | -------------------------------------------------------------------------------- /requirements_transcribe.txt: -------------------------------------------------------------------------------- 1 | webrtcvad 2 | -------------------------------------------------------------------------------- /taskcluster/README.rst: -------------------------------------------------------------------------------- 1 | 2 | Taskcluster 3 | =========== 4 | 5 | This directory contains files associated with Taskcluster -- a task execution framework developed by Mozilla for use in Continuous Integration systems. 6 | 7 | Please consult the `existing Taskcluster documentation `_. 8 | -------------------------------------------------------------------------------- /taskcluster/android-apk-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | arm_flavor=$1 6 | 7 | source $(dirname "$0")/tc-tests-utils.sh 8 | 9 | source $(dirname "$0")/tf_tc-vars.sh 10 | 11 | do_deepspeech_java_apk_build 12 | -------------------------------------------------------------------------------- /taskcluster/android-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | arm_flavor=$1 6 | 7 | source $(dirname "$0")/tc-tests-utils.sh 8 | 9 | mkdir -p ${TASKCLUSTER_ARTIFACTS} || true 10 | 11 | cp ${DS_ROOT_TASK}/DeepSpeech/ds/tensorflow/bazel*.log ${TASKCLUSTER_ARTIFACTS}/ 12 | 13 | package_native_client_ndk "native_client.tar.xz" "${arm_flavor}" 14 | -------------------------------------------------------------------------------- /taskcluster/android_cache-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | arm_flavor=$1 8 | api_level=$2 9 | api_kind=$3 10 | 11 | export ANDROID_HOME=${ANDROID_SDK_HOME} 12 | 13 | android_install_ndk 14 | 15 | android_install_sdk 16 | 17 | # Required for running APK tests later 18 | android_install_sdk_platform "android-27" 19 | 20 | if [ "${arm_flavor}" != "sdk" ]; then 21 | android_setup_emulator "${arm_flavor}" "${api_level}" "${api_kind}" 22 | fi; 23 | -------------------------------------------------------------------------------- /taskcluster/android_cache-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | cd $HOME/ && tar -czf $TASKCLUSTER_ARTIFACTS/android_cache.tar.gz DeepSpeech/Android/ 8 | -------------------------------------------------------------------------------- /taskcluster/arm64-build-dbg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | source $(dirname "$0")/tf_tc-vars.sh 8 | 9 | BAZEL_TARGETS=" 10 | //native_client:libstt.so 11 | " 12 | 13 | BAZEL_BUILD_FLAGS="${BAZEL_ARM64_FLAGS} ${BAZEL_EXTRA_FLAGS}" 14 | BAZEL_ENV_FLAGS="TF_NEED_CUDA=0" 15 | SYSTEM_TARGET=rpi3-armv8 16 | SYSTEM_RASPBIAN=/tmp/multistrap-armbian64-buster 17 | 18 | maybe_install_xldd 19 | 20 | do_bazel_build "dbg" 21 | 22 | export EXTRA_LOCAL_CFLAGS="-ggdb" 23 | do_deepspeech_binary_build 24 | -------------------------------------------------------------------------------- /taskcluster/decoder-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | source $(dirname "$0")/tf_tc-vars.sh 8 | 9 | if [ "${OS}" = "${TC_MSYS_VERSION}" ]; then 10 | export SYSTEM_TARGET=host-win 11 | else 12 | export SYSTEM_TARGET=host 13 | fi; 14 | 15 | do_deepspeech_decoder_build 16 | -------------------------------------------------------------------------------- /taskcluster/decoder-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | mkdir -p ${TASKCLUSTER_ARTIFACTS} || true 8 | 9 | if [ -d ${DS_ROOT_TASK}/DeepSpeech/ds/wheels ]; then 10 | cp ${DS_ROOT_TASK}/DeepSpeech/ds/wheels/* ${TASKCLUSTER_ARTIFACTS}/ 11 | fi; 12 | 13 | -------------------------------------------------------------------------------- /taskcluster/docker-image-build.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: docker-build-base.tyml 3 | dockerfile: "Dockerfile.build" 4 | workerType: "${docker.tfBuild}" 5 | metadata: 6 | name: "DeepSpeech Docker build" 7 | description: "Testing |docker build| of DeepSpeech build image" 8 | -------------------------------------------------------------------------------- /taskcluster/docker-image-train.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: docker-build-base.tyml 3 | dockerfile: "Dockerfile.train" 4 | workerType: "${docker.tfBuild}" 5 | metadata: 6 | name: "DeepSpeech Docker train" 7 | description: "Testing |docker build| of DeepSpeech train image" 8 | -------------------------------------------------------------------------------- /taskcluster/docs-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | THIS=$(dirname "$0") 6 | 7 | pushd ${THIS}/../ 8 | make -C doc/ dist 9 | popd 10 | -------------------------------------------------------------------------------- /taskcluster/docs-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | mkdir -p ${TASKCLUSTER_ARTIFACTS} || true 8 | 9 | cp ${DS_DSDIR}/doc/html.zip ${TASKCLUSTER_ARTIFACTS}/doc-html.zip 10 | -------------------------------------------------------------------------------- /taskcluster/examples-electronjs.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "node:12" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | system_setup: 7 | > 8 | apt-get -qq update && apt-get -qq -y install ${electronjs.packages_xenial.apt} 9 | args: 10 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/electron/test.sh" 11 | workerType: "${docker.dsTests}" 12 | metadata: 13 | name: "DeepSpeech examples: ElectronJS/React on NodeJS v12.x" 14 | description: "DeepSpeech examples: ElectronJS/React on NodeJS v12.x" 15 | -------------------------------------------------------------------------------- /taskcluster/examples-ffmpeg_vad_streaming-node10.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "node:10" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | system_setup: 7 | > 8 | apt-get -qq -y install ffmpeg 9 | args: 10 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/ffmpeg_vad_streaming/test.sh" 11 | workerType: "${docker.dsTests}" 12 | metadata: 13 | name: "DeepSpeech examples: ffmpeg VAD Streaming NodeJS v10.x" 14 | description: "DeepSpeech examples: ffmpeg VAD Streaming NodeJS v10.x" 15 | -------------------------------------------------------------------------------- /taskcluster/examples-ffmpeg_vad_streaming-node12.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "node:12" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | system_setup: 7 | > 8 | apt-get -qq -y install ffmpeg 9 | args: 10 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/ffmpeg_vad_streaming/test.sh" 11 | workerType: "${docker.dsTests}" 12 | metadata: 13 | name: "DeepSpeech examples: ffmpeg VAD Streaming NodeJS v12.x" 14 | description: "DeepSpeech examples: ffmpeg VAD Streaming NodeJS v12.x" 15 | -------------------------------------------------------------------------------- /taskcluster/examples-mic_vad_streaming-py36.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "python:3.6" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | system_setup: 7 | > 8 | apt-get -qq -y install portaudio19-dev pulseaudio 9 | args: 10 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/mic_vad_streaming/test.sh 3.6.0:m" 11 | workerType: "${docker.dsTests}" 12 | metadata: 13 | name: "DeepSpeech examples: mic VAD streaming Py3.6" 14 | description: "DeepSpeech examples: mic VAD streaming Python 3.6" 15 | -------------------------------------------------------------------------------- /taskcluster/examples-mic_vad_streaming-py37.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "python:3.7" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | system_setup: 7 | > 8 | apt-get -qq -y install portaudio19-dev pulseaudio 9 | args: 10 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/mic_vad_streaming/test.sh 3.7.0:m" 11 | workerType: "${docker.dsTests}" 12 | metadata: 13 | name: "DeepSpeech examples: mic VAD streaming Py3.7" 14 | description: "DeepSpeech examples: mic VAD streaming Python 3.7" 15 | -------------------------------------------------------------------------------- /taskcluster/examples-mic_vad_streaming-py38.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "python:3.8" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | system_setup: 7 | > 8 | apt-get -qq -y install portaudio19-dev pulseaudio 9 | args: 10 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/mic_vad_streaming/test.sh 3.8.0:" 11 | workerType: "${docker.dsTests}" 12 | metadata: 13 | name: "DeepSpeech examples: mic VAD streaming Py3.8" 14 | description: "DeepSpeech examples: mic VAD streaming Python 3.8" 15 | -------------------------------------------------------------------------------- /taskcluster/examples-mic_vad_streaming-py39.yml.DISABLED_UNTIL_SCIPY_PY39: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "python:3.9" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | system_setup: 7 | > 8 | apt-get -qq -y install portaudio19-dev pulseaudio 9 | args: 10 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/mic_vad_streaming/test.sh 3.9.0:" 11 | workerType: "${docker.dsTests}" 12 | metadata: 13 | name: "DeepSpeech examples: mic VAD streaming Py3.9" 14 | description: "DeepSpeech examples: mic VAD streaming Python 3.9" 15 | -------------------------------------------------------------------------------- /taskcluster/examples-nodejs_wav-node10.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "node:10" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | args: 7 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/nodejs_wav/test.sh" 8 | workerType: "${docker.dsTests}" 9 | metadata: 10 | name: "DeepSpeech examples: NodeJS WAV NodeJS v10.x" 11 | description: "DeepSpeech examples: NodeJS WAV NodeJS v10.x" 12 | -------------------------------------------------------------------------------- /taskcluster/examples-nodejs_wav-node12.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "node:12" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | args: 7 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/nodejs_wav/test.sh" 8 | workerType: "${docker.dsTests}" 9 | metadata: 10 | name: "DeepSpeech examples: NodeJS WAV NodeJS v12.x" 11 | description: "DeepSpeech examples: NodeJS WAV NodeJS v12.x" 12 | -------------------------------------------------------------------------------- /taskcluster/examples-vad_transcriber-py35.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "python:3.5" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | args: 7 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/vad_transcriber/test.sh 3.5.0:m" 8 | workerType: "${docker.dsTests}" 9 | metadata: 10 | name: "DeepSpeech examples: VAD transcriber Py3.5" 11 | description: "DeepSpeech examples: VAD transcriber streaming Python 3.5" 12 | -------------------------------------------------------------------------------- /taskcluster/examples-vad_transcriber-py36.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "python:3.6" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | args: 7 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/vad_transcriber/test.sh 3.6.0:m" 8 | workerType: "${docker.dsTests}" 9 | metadata: 10 | name: "DeepSpeech examples: VAD transcriber Py3.6" 11 | description: "DeepSpeech examples: VAD transcriber streaming Python 3.6" 12 | -------------------------------------------------------------------------------- /taskcluster/examples-vad_transcriber-py37.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "python:3.7" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | args: 7 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/vad_transcriber/test.sh 3.7.0:m" 8 | workerType: "${docker.dsTests}" 9 | metadata: 10 | name: "DeepSpeech examples: VAD transcriber Py3.7" 11 | description: "DeepSpeech examples: VAD transcriber streaming Python 3.7" 12 | -------------------------------------------------------------------------------- /taskcluster/examples-vad_transcriber-py38.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "python:3.8" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | args: 7 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/vad_transcriber/test.sh 3.8.0:" 8 | workerType: "${docker.dsTests}" 9 | metadata: 10 | name: "DeepSpeech examples: VAD transcriber Py3.8" 11 | description: "DeepSpeech examples: VAD transcriber streaming Python 3.8" 12 | -------------------------------------------------------------------------------- /taskcluster/examples-vad_transcriber-py39.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: examples-base.tyml 3 | docker_image: "python:3.9" 4 | dependencies: 5 | - "linux-amd64-cpu-opt" 6 | args: 7 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/examples/vad_transcriber/test.sh 3.9.0:" 8 | workerType: "${docker.dsTests}" 9 | metadata: 10 | name: "DeepSpeech examples: VAD transcriber Py3.9" 11 | description: "DeepSpeech examples: VAD transcriber streaming Python 3.9" 12 | -------------------------------------------------------------------------------- /taskcluster/gradle-cache.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: generic_tc_caching-linux-opt-base.tyml 3 | cache: 4 | artifact_url: ${system.gradle_cache.url} 5 | artifact_namespace: ${system.gradle_cache.namespace} 6 | system_setup: 7 | > 8 | ${java.packages_xenial.apt} 9 | scripts: 10 | setup: "taskcluster/tc-true.sh" 11 | build: "taskcluster/gradle-build.sh" 12 | package: "taskcluster/gradle-package.sh" 13 | workerType: "${docker.smallTask}" 14 | metadata: 15 | name: "Builds Gradle cache" 16 | description: "Setup a Gradle cache for Android" 17 | -------------------------------------------------------------------------------- /taskcluster/gradle-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | cd ${GRADLE_USER_HOME}/../ && tar -czf $TASKCLUSTER_ARTIFACTS/gradle.tar.gz gradle-cache/ 8 | -------------------------------------------------------------------------------- /taskcluster/homebrew_builds-darwin-amd64.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: generic_tc_caching-darwin-opt-base.tyml 3 | cache: 4 | artifact_url: ${system.homebrew_builds.url} 5 | artifact_namespace: ${system.homebrew_builds.namespace} 6 | workerType: ${macOS.dsBuild} 7 | scripts: 8 | setup: "taskcluster/tc-true.sh" 9 | build: "taskcluster/homebrew-build.sh --builds" 10 | package: "taskcluster/homebrew-package.sh --builds" 11 | metadata: 12 | name: "Builds Homebrew macOS AMD64" 13 | description: "Setup a builds Homebrew for macOS/AMD64" 14 | -------------------------------------------------------------------------------- /taskcluster/homebrew_tests-darwin-amd64.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: generic_tc_caching-darwin-opt-base.tyml 3 | cache: 4 | artifact_url: ${system.homebrew_tests.url} 5 | artifact_namespace: ${system.homebrew_tests.namespace} 6 | workerType: ${macOS.dsBuild} 7 | scripts: 8 | setup: "taskcluster/tc-true.sh" 9 | build: "taskcluster/homebrew-build.sh --tests" 10 | package: "taskcluster/homebrew-package.sh --tests" 11 | metadata: 12 | name: "Tests Homebrew macOS AMD64" 13 | description: "Setup a tests Homebrew for macOS/AMD64" 14 | -------------------------------------------------------------------------------- /taskcluster/host-build-dbg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | runtime=$1 6 | 7 | source $(dirname "$0")/tc-tests-utils.sh 8 | 9 | source $(dirname "$0")/tf_tc-vars.sh 10 | 11 | BAZEL_TARGETS=" 12 | //native_client:libstt.so 13 | " 14 | 15 | if [ "${runtime}" = "tflite" ]; then 16 | BAZEL_BUILD_TFLITE="--define=runtime=tflite" 17 | fi; 18 | 19 | BAZEL_BUILD_FLAGS="${BAZEL_BUILD_TFLITE} ${BAZEL_OPT_FLAGS} ${BAZEL_EXTRA_FLAGS}" 20 | 21 | BAZEL_ENV_FLAGS="TF_NEED_CUDA=0" 22 | SYSTEM_TARGET=host 23 | 24 | do_bazel_build "dbg" 25 | 26 | export EXTRA_LOCAL_CFLAGS="-ggdb" 27 | do_deepspeech_binary_build 28 | -------------------------------------------------------------------------------- /taskcluster/ios-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | arch=$1 6 | 7 | source $(dirname "$0")/tc-tests-utils.sh 8 | 9 | source $(dirname "$0")/tf_tc-vars.sh 10 | 11 | BAZEL_TARGETS=" 12 | //native_client:deepspeech_ios 13 | " 14 | 15 | if [ "${arch}" = "--arm64" ]; then 16 | BAZEL_BUILD_FLAGS="${BAZEL_IOS_ARM64_FLAGS}" 17 | else 18 | BAZEL_BUILD_FLAGS="${BAZEL_IOS_X86_64_FLAGS}" 19 | fi 20 | 21 | BAZEL_ENV_FLAGS="TF_NEED_CUDA=0" 22 | 23 | do_bazel_build 24 | 25 | do_deepspeech_ios_framework_build "${arch}" 26 | -------------------------------------------------------------------------------- /taskcluster/kenlm_darwin-amd64-cpu-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: generic_tc_caching-darwin-opt-base.tyml 3 | cache: 4 | artifact_url: ${system.kenlm.darwin_amd64_cpu.url} 5 | artifact_namespace: ${system.kenlm.darwin_amd64_cpu.namespace} 6 | scripts: 7 | setup: "taskcluster/kenlm_tc-setup.sh --macos-amd64" 8 | build: "taskcluster/kenlm_tc-build.sh --macos-amd64" 9 | package: "taskcluster/kenlm_tc-package.sh" 10 | workerType: ${macOS.dsBuild} 11 | metadata: 12 | name: "KenLM macOS AMD64 CPU" 13 | description: "Building KenLM for macOS/AMD64, CPU only, optimized version" 14 | -------------------------------------------------------------------------------- /taskcluster/kenlm_multistrap_arm64_buster.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | arch=arm64 3 | noauth=true 4 | unpack=true 5 | debootstrap=Debian 6 | aptsources=Debian 7 | cleanup=true 8 | 9 | [Debian] 10 | packages=libc6 libc6-dev libstdc++-7-dev linux-libc-dev libboost-dev zlib1g-dev libbz2-dev liblzma-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev libboost-test-dev 11 | source=http://deb.debian.org/debian 12 | keyring=debian-archive-keyring 13 | components=main 14 | suite=buster 15 | -------------------------------------------------------------------------------- /taskcluster/kenlm_multistrap_rpi3_buster.conf: -------------------------------------------------------------------------------- 1 | [General] 2 | arch=armhf 3 | noauth=true 4 | unpack=true 5 | debootstrap=Raspbian 6 | aptsources=Raspbian 7 | cleanup=true 8 | 9 | [Raspbian] 10 | packages=libc6 libc6-dev libffi-dev libstdc++-6-dev linux-libc-dev libboost-dev zlib1g-dev libbz2-dev liblzma-dev libboost-program-options-dev libboost-system-dev libboost-thread-dev libboost-test-dev 11 | source=http://raspbian.raspberrypi.org/raspbian/ 12 | keyring=raspbian-archive-keyring 13 | components=main 14 | suite=buster 15 | -------------------------------------------------------------------------------- /taskcluster/kenlm_tc-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname $0)/tc-all-vars.sh 6 | 7 | mkdir -p ${TASKCLUSTER_ARTIFACTS} || true 8 | 9 | cd ${DS_ROOT_TASK}/DeepSpeech/ds/kenlm/build/bin/ && \ 10 | tar \ 11 | -czf ${TASKCLUSTER_ARTIFACTS}/kenlm.tar.gz \ 12 | build_binary${PLATFORM_EXE_SUFFIX} \ 13 | filter${PLATFORM_EXE_SUFFIX} \ 14 | lmplz${PLATFORM_EXE_SUFFIX} 15 | -------------------------------------------------------------------------------- /taskcluster/kenlm_win-amd64-cpu-opt.yml.DISABLED: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: generic_tc_caching-win-opt-base.tyml 3 | cache: 4 | artifact_url: ${system.kenlm.win_amd64_cpu.url} 5 | artifact_namespace: ${system.kenlm.win_amd64_cpu.namespace} 6 | scripts: 7 | setup: "taskcluster/kenlm_tc-setup.sh --windows-amd64" 8 | build: "taskcluster/kenlm_tc-build.sh --windows-amd64" 9 | package: "taskcluster/kenlm_tc-package.sh" 10 | metadata: 11 | name: "KenLM Windows AMD64 CPU" 12 | description: "Building KenLM for Windows/AMD64, CPU only, optimized version" 13 | -------------------------------------------------------------------------------- /taskcluster/node-build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | package_option=$1 6 | 7 | source $(dirname "$0")/tc-tests-utils.sh 8 | 9 | source $(dirname "$0")/tf_tc-vars.sh 10 | 11 | do_deepspeech_npm_package "${package_option}" 12 | -------------------------------------------------------------------------------- /taskcluster/node-gyp-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | mkdir -p ${TASKCLUSTER_ARTIFACTS} || true 8 | 9 | cd $DS_ROOT_TASK/node-gyp-cache/ && tar -czf ${TASKCLUSTER_ARTIFACTS}/node-gyp-cache.tar.gz . 10 | -------------------------------------------------------------------------------- /taskcluster/node-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | mkdir -p ${TASKCLUSTER_ARTIFACTS} || true 8 | 9 | # NodeJS package 10 | cp ${DS_ROOT_TASK}/DeepSpeech/ds/native_client/javascript/deepspeech-*.tgz ${TASKCLUSTER_ARTIFACTS}/ 11 | -------------------------------------------------------------------------------- /taskcluster/pyenv-darwin-amd64.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: generic_tc_caching-darwin-opt-base.tyml 3 | cache: 4 | artifact_url: ${system.pyenv.osx.url} 5 | artifact_namespace: ${system.pyenv.osx.namespace} 6 | workerType: ${macOS.dsBuild} 7 | scripts: 8 | setup: "taskcluster/tc-true.sh" 9 | build: "taskcluster/pyenv-build.sh" 10 | package: "taskcluster/pyenv-package.sh" 11 | metadata: 12 | name: "Builds Pyenv macOS AMD64" 13 | description: "Setup a builds Pyenv for macOS/AMD64" 14 | -------------------------------------------------------------------------------- /taskcluster/pyenv-package.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | cd ${PYENV_ROOT}/ && $TAR -czf $TASKCLUSTER_ARTIFACTS/pyenv.tar.gz . 8 | -------------------------------------------------------------------------------- /taskcluster/pyenv-win-amd64.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: generic_tc_caching-win-opt-base.tyml 3 | cache: 4 | artifact_url: "${system.pyenv.win.url}" 5 | artifact_namespace: "${system.pyenv.win.namespace}" 6 | scripts: 7 | setup: "taskcluster/tc-true.sh" 8 | build: "taskcluster/pyenv-build.sh" 9 | package: "taskcluster/pyenv-package.sh" 10 | metadata: 11 | name: "Builds Pyenv Windows AMD64" 12 | description: "Setup a builds Pyenv for Windows/AMD64" 13 | -------------------------------------------------------------------------------- /taskcluster/rpi3-build-dbg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | source $(dirname "$0")/tf_tc-vars.sh 8 | 9 | BAZEL_TARGETS=" 10 | //native_client:libstt.so 11 | " 12 | 13 | BAZEL_BUILD_FLAGS="${BAZEL_ARM_FLAGS} ${BAZEL_EXTRA_FLAGS}" 14 | BAZEL_ENV_FLAGS="TF_NEED_CUDA=0" 15 | SYSTEM_TARGET=rpi3 16 | SYSTEM_RASPBIAN=/tmp/multistrap-raspbian-buster 17 | 18 | maybe_install_xldd 19 | 20 | do_bazel_build "dbg" 21 | 22 | export EXTRA_LOCAL_CFLAGS="-ggdb" 23 | do_deepspeech_binary_build 24 | -------------------------------------------------------------------------------- /taskcluster/scriptworker-task-jcenter.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: simple-task.tyml 3 | dependencies: 4 | # Make sure builds are ready 5 | - "android-java-opt" 6 | allowed: 7 | - "tag" 8 | ref_match: "refs/tags/" 9 | upload_targets: 10 | - "jcenter" 11 | artifacts_deps: 12 | python: [] 13 | cpp: [] 14 | javascript: [] 15 | java_aar: 16 | - "android-java-opt" 17 | nuget: [] 18 | metadata: 19 | name: "DeepSpeech Android lib Packages" 20 | description: "Trigger Uploading of DeepSpeech Android lib to JCenter registry" 21 | -------------------------------------------------------------------------------- /taskcluster/scriptworker-task-readthedocs.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: simple-task.tyml 3 | dependencies: 4 | # Make sure everything else is ready 5 | - "scriptworker-task-github" 6 | allowed: 7 | - "tag" 8 | ref_match: "refs/tags/" 9 | upload_targets: 10 | - "readthedocs" 11 | artifacts_deps: 12 | python: [] 13 | cpp: [] 14 | java_aar: [] 15 | javascript: [] 16 | nuget: [] 17 | metadata: 18 | name: "DeepSpeech ReadTheDocs build & version update" 19 | description: "Trigger building of new version on ReadTheDocs and update default version" 20 | -------------------------------------------------------------------------------- /taskcluster/swig-darwin-amd64.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: generic_tc_caching-darwin-opt-base.tyml 3 | build_or_cache: 4 | repo: "${system.swig.repo}" 5 | sha: "${system.swig.sha1}" 6 | dir: "swig" 7 | cache: 8 | artifact_url: "${system.swig_build.osx.url}" 9 | artifact_namespace: "${system.swig_build.osx.namespace}" 10 | workerType: ${macOS.dsBuild} 11 | scripts: 12 | setup: "taskcluster/tc-true.sh" 13 | build: "taskcluster/build.sh" 14 | package: "taskcluster/package.sh" 15 | metadata: 16 | name: "SWIG macOS AMD64" 17 | description: "Building SWIG for macOS/AMD64" 18 | -------------------------------------------------------------------------------- /taskcluster/tc-cpp-bytes-ds-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | bitrate=$1 8 | set_ldc_sample_filename "${bitrate}" 9 | 10 | download_material "${TASKCLUSTER_TMP_DIR}/ds" 11 | 12 | export PATH=${TASKCLUSTER_TMP_DIR}/ds/:$PATH 13 | 14 | # Bytes output mode with LDC93S1 takes too long to converge so we simply test 15 | # that loading the model won't crash 16 | check_versions 17 | -------------------------------------------------------------------------------- /taskcluster/tc-cpp-ds-tests-prod.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | bitrate=$1 8 | set_ldc_sample_filename "${bitrate}" 9 | 10 | model_source=${DEEPSPEECH_PROD_MODEL} 11 | model_name=$(basename "${model_source}") 12 | 13 | model_source_mmap=${DEEPSPEECH_PROD_MODEL_MMAP} 14 | model_name_mmap=$(basename "${model_source_mmap}") 15 | 16 | download_material "${TASKCLUSTER_TMP_DIR}/ds" 17 | 18 | export PATH=${TASKCLUSTER_TMP_DIR}/ds/:$PATH 19 | 20 | check_versions 21 | 22 | run_prod_inference_tests "${bitrate}" 23 | -------------------------------------------------------------------------------- /taskcluster/tc-cpp-ds-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | bitrate=$1 8 | set_ldc_sample_filename "${bitrate}" 9 | 10 | download_material "${TASKCLUSTER_TMP_DIR}/ds" 11 | 12 | export PATH=${TASKCLUSTER_TMP_DIR}/ds/:$PATH 13 | 14 | check_versions 15 | 16 | run_all_inference_tests 17 | 18 | run_multi_inference_tests 19 | 20 | run_cpp_only_inference_tests 21 | 22 | run_hotword_tests 23 | -------------------------------------------------------------------------------- /taskcluster/tc-cpp_tflite_basic-ds-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | bitrate=$1 8 | set_ldc_sample_filename "${bitrate}" 9 | 10 | model_source=${DEEPSPEECH_TEST_MODEL//.pb/.tflite} 11 | model_name=$(basename "${model_source}") 12 | export DATA_TMP_DIR=${TASKCLUSTER_TMP_DIR} 13 | 14 | download_material "${TASKCLUSTER_TMP_DIR}/ds" 15 | 16 | export PATH=${TASKCLUSTER_TMP_DIR}/ds/:$PATH 17 | 18 | check_versions 19 | 20 | run_tflite_basic_inference_tests 21 | -------------------------------------------------------------------------------- /taskcluster/tc-cppwin-ds-tests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | bitrate=$1 8 | set_ldc_sample_filename "${bitrate}" 9 | 10 | download_material "${TASKCLUSTER_TMP_DIR}/ds" 11 | 12 | export PATH=${TASKCLUSTER_TMP_DIR}/ds/:$PATH 13 | 14 | check_versions 15 | 16 | ensure_cuda_usage "$2" 17 | 18 | run_basic_inference_tests 19 | -------------------------------------------------------------------------------- /taskcluster/tc-decision_reqs.txt: -------------------------------------------------------------------------------- 1 | json-e == 2.3.1 2 | networkx 3 | pyaml 4 | requests 5 | slugid == 1.0.7 6 | -------------------------------------------------------------------------------- /taskcluster/tc-train-unittests.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | source $(dirname "$0")/tc-tests-utils.sh 6 | 7 | extract_python_versions "$1" "pyver" "pyver_pkg" "py_unicode_type" "pyconf" "pyalias" 8 | 9 | mkdir -p ${TASKCLUSTER_ARTIFACTS} || true 10 | 11 | virtualenv_activate "${pyalias}" "deepspeech" 12 | 13 | set -o pipefail 14 | pip install --upgrade pip==19.3.1 setuptools==45.0.0 wheel==0.33.6 | cat 15 | pushd ${HOME}/DeepSpeech/ds 16 | pip install --upgrade . | cat 17 | python -m unittest 18 | popd 19 | set +o pipefail 20 | -------------------------------------------------------------------------------- /taskcluster/tc-true.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | true 3 | -------------------------------------------------------------------------------- /taskcluster/tc-valgrind-cpp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -xe 4 | 5 | kind=$1 6 | 7 | source $(dirname "$0")/tc-tests-utils.sh 8 | 9 | set_ldc_sample_filename "16k" 10 | 11 | download_material "${TASKCLUSTER_TMP_DIR}/ds" 12 | 13 | mkdir -p ${TASKCLUSTER_ARTIFACTS} || true 14 | 15 | export PATH=${TASKCLUSTER_TMP_DIR}/ds/:$PATH 16 | 17 | if [ "${kind}" = "--basic" ]; then 18 | run_valgrind_basic 19 | run_valgrind_stream 20 | fi 21 | 22 | if [ "${kind}" = "--metadata" ]; then 23 | run_valgrind_extended 24 | run_valgrind_extended_stream 25 | fi 26 | -------------------------------------------------------------------------------- /taskcluster/test-cpp-linux-amd64-prod_pbmodel-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-cpp-ds-tests-prod.sh 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU C++ prod tests" 10 | description: "Testing DeepSpeech C++ for Linux/AMD64 on prod model, CPU only, optimized version" 11 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_16k-armbian-arm64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-armbian-opt-base.tyml 3 | dependencies: 4 | - "linux-arm64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-cpp_tflite-ds-tests.sh 16k" 9 | metadata: 10 | name: "DeepSpeech ARMbian ARM64 Cortex-A53 CPU C++ tests (16kHz)" 11 | description: "Testing DeepSpeech C++ for ARMbian ARM64 Cortex-A53, CPU only, optimized version (16kHz)" 12 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_16k-darwin-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-darwin-opt-base.tyml 3 | dependencies: 4 | - "darwin-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | - "homebrew_tests-darwin-amd64" 7 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 8 | args: 9 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-cpp-ds-tests.sh 16k" 10 | metadata: 11 | name: "DeepSpeech OSX AMD64 CPU C++ tests (16kHz)" 12 | description: "Testing DeepSpeech C++ for OSX/AMD64, CPU only, optimized version (16kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_16k-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-cpp-ds-tests.sh 16k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 CPU C++ tests (16kHz)" 12 | description: "Testing DeepSpeech C++ for Linux/AMD64, CPU only, optimized version (16kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_16k-raspbian-rpi3-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-raspbian-opt-base.tyml 3 | dependencies: 4 | - "linux-rpi3-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-cpp_tflite-ds-tests.sh 16k" 9 | metadata: 10 | name: "DeepSpeech Raspbian RPi3/ARMv7 CPU C++ tests (16kHz)" 11 | description: "Testing DeepSpeech C++ for Raspbian RPi3/ARMv7, CPU only, optimized version (16kHz)" 12 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_16k-win-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-cppwin-ds-tests.sh 16k" 9 | metadata: 10 | name: "DeepSpeech Windows AMD64 CPU C++ tests (16kHz)" 11 | description: "Testing DeepSpeech C++ for Windows/AMD64, CPU only, optimized version (16kHz)" 12 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_16k-win-cuda-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-cuda-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-gpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-cppwin-ds-tests.sh 16k cuda" 9 | metadata: 10 | name: "DeepSpeech Windows AMD64 CUDA C++ tests (16kHz)" 11 | description: "Testing DeepSpeech C++ for Windows/AMD64, CUDA, optimized version (16kHz)" 12 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_16k_tflite-darwin-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-darwin-opt-base.tyml 3 | dependencies: 4 | - "darwin-amd64-tflite-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | - "homebrew_tests-darwin-amd64" 7 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 8 | args: 9 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-cpp_tflite_basic-ds-tests.sh 16k" 10 | metadata: 11 | name: "DeepSpeech OSX AMD64 TFlite C++ tests (16kHz)" 12 | description: "Testing DeepSpeech C++ for OSX/AMD64, TFLite, optimized version (16kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_16k_tflite-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-cpp_tflite_basic-ds-tests.sh 16k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 TFLite C++ tests (16kHz)" 12 | description: "Testing DeepSpeech C++ for Linux/AMD64, TFLite, optimized version (16kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_16k_tflite-win-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-tflite-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-cpp_tflite_basic-ds-tests.sh 16k" 9 | metadata: 10 | name: "DeepSpeech Windows AMD64 TFLite C++ tests (16kHz)" 11 | description: "Testing DeepSpeech C++ for Windows/AMD64, TFLite, optimized version (16kHz)" 12 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_8k-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | - "test-training_8k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_8k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-cpp-ds-tests.sh 8k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 CPU C++ tests (8kHz)" 12 | description: "Testing DeepSpeech C++ for Linux/AMD64, CPU only, optimized version (8kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_8k_tflite-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | - "test-training_8k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_8k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-cpp_tflite_basic-ds-tests.sh 8k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 TFLite C++ tests (8kHz)" 12 | description: "Testing DeepSpeech C++ for Linux/AMD64, TFLite, optimized version (8kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-cpp_tflite-linux-amd64-prod-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-cpp_tflite-tests-prod.sh 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 TFLite C++ prod tests" 10 | description: "Testing DeepSpeech C++ for Linux/AMD64 on prod model, TFLite, optimized version" 11 | -------------------------------------------------------------------------------- /taskcluster/test-generate_scorer-darwin-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-darwin-opt-base.tyml 3 | dependencies: 4 | - "darwin-amd64-cpu-opt" 5 | - "kenlm_darwin-amd64-cpu-opt" 6 | args: 7 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-scorer-tests.sh ${system.kenlm.darwin_amd64_cpu.url} 3.6.10:m" 8 | workerType: "${docker.dsTests}" 9 | metadata: 10 | name: "Testing DeepSpeech macOS AMD64 CPU generate scorer" 11 | description: "Generate a DeepSpeech Scorer for macOS/AMD64, CPU only, optimized version" 12 | -------------------------------------------------------------------------------- /taskcluster/test-generate_scorer-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | - "kenlm_linux-amd64-cpu-opt" 6 | args: 7 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-scorer-tests.sh ${system.kenlm.linux_amd64_cpu.url} 3.6.10:m" 8 | workerType: "${docker.dsTests}" 9 | metadata: 10 | name: "Testing DeepSpeech Linux AMD64 CPU generate scorer" 11 | description: "Generate a DeepSpeech Scorer for Linux/AMD64, CPU only, optimized version" 12 | -------------------------------------------------------------------------------- /taskcluster/test-netframework-win-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-netframework-ds-tests.sh 16k" 9 | metadata: 10 | name: "DeepSpeech Windows AMD64 CPU .Net Framework tests" 11 | description: "Testing DeepSpeech .Net Framework for Windows/AMD64, CPU only, optimized version" 12 | -------------------------------------------------------------------------------- /taskcluster/test-netframework-win-cuda-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-cuda-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-gpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-netframework-ds-tests.sh 16k cuda" 9 | metadata: 10 | name: "DeepSpeech Windows AMD64 CUDA .Net Framework tests" 11 | description: "Testing DeepSpeech .Net Framework for Windows/AMD64, CUDA, optimized version" 12 | -------------------------------------------------------------------------------- /taskcluster/test-netframework-win-tflite-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-tflite-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-netframework-ds-tests.sh 16k --tflite" 9 | metadata: 10 | name: "DeepSpeech Windows AMD64 TFLite .Net Framework tests" 11 | description: "Testing DeepSpeech .Net Framework for Windows/AMD64, TFLite, optimized version" 12 | -------------------------------------------------------------------------------- /taskcluster/test-python_35-darwin-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-darwin-opt-base.tyml 3 | dependencies: 4 | - "darwin-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | - "homebrew_tests-darwin-amd64" 7 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 8 | args: 9 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.5.8:m 16k" 10 | metadata: 11 | name: "DeepSpeech OSX AMD64 CPU Python v3.5 tests" 12 | description: "Testing DeepSpeech for OSX/AMD64 on Python v3.5, CPU only, optimized version" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_35-win-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | system_setup: 8 | > 9 | ${system.sox_win} 10 | args: 11 | tests_cmdline: "${system.homedir.win}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.5.4:m 16k" 12 | metadata: 13 | name: "DeepSpeech Windows AMD64 CPU Python v3.5 tests" 14 | description: "Testing DeepSpeech for Windows/AMD64 on Python v3.5, CPU only, optimized version" 15 | -------------------------------------------------------------------------------- /taskcluster/test-python_35_16k-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.5.8:m 16k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 CPU Python v3.5 tests (16kHz)" 12 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.5, CPU only, optimized version (16kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_35_16k-linux-amd64-prod_pbmodel-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests-prod.sh 3.5.8:m 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU Python v3.5 prod tests (16kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.5 on prod model, CPU only, optimized version (16kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_35_8k-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | - "test-training_8k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_8k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.5.8:m 8k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 CPU Python v3.5 tests (8kHz)" 12 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.5, CPU only, optimized version (8kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_35_8k-linux-amd64-prod_pbmodel-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests-prod.sh 3.5.8:m 8k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU Python v3.5 prod tests (8kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.5 on prod model, CPU only, optimized version (8kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_35_tflite_16k-linux-amd64-prod-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python_tflite-tests-prod.sh 3.5.8:m 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 TFLite Python v3.5 prod tests (16kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.5 on prod model, TFLite, optimized version (16kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_35_tflite_8k-linux-amd64-prod-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python_tflite-tests-prod.sh 3.5.8:m 8k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 TFLite Python v3.5 prod tests (8kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.5 on prod model, TFLite, optimized version (8kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_36-darwin-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-darwin-opt-base.tyml 3 | dependencies: 4 | - "darwin-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | - "homebrew_tests-darwin-amd64" 7 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 8 | args: 9 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.6.10:m 16k" 10 | metadata: 11 | name: "DeepSpeech OSX AMD64 CPU Python v3.6 tests" 12 | description: "Testing DeepSpeech for OSX/AMD64 on Python v3.6.10:m, CPU only, optimized version" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_36-win-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | system_setup: 8 | > 9 | ${system.sox_win} 10 | args: 11 | tests_cmdline: "${system.homedir.win}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.6.8:m 16k" 12 | metadata: 13 | name: "DeepSpeech Windows AMD64 CPU Python v3.6 tests" 14 | description: "Testing DeepSpeech for Windows/AMD64 on Python v3.6, CPU only, optimized version" 15 | -------------------------------------------------------------------------------- /taskcluster/test-python_36_16k-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.6.10:m 16k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 CPU Python v3.6 tests (16kHz)" 12 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.6, CPU only, optimized version (16kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_36_16k-linux-amd64-prod_pbmodel-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests-prod.sh 3.6.10:m 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU Python v3.6 prod tests (16kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.6 on prod model, CPU only, optimized version (16kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_36_8k-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | - "test-training_8k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_8k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.6.10:m 8k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 CPU Python v3.6 tests (8kHz)" 12 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.6, CPU only, optimized version (8kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_36_8k-linux-amd64-prod_pbmodel-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests-prod.sh 3.6.10:m 8k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU Python v3.6 prod tests (8kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.6 on prod model, CPU only, optimized version (8kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_36_tflite_16k-linux-amd64-prod-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python_tflite-tests-prod.sh 3.6.10:m 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 TFLite Python v3.6 prod tests (16kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.6 on prod model, TFLite, optimized version (16kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_36_tflite_8k-linux-amd64-prod-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python_tflite-tests-prod.sh 3.6.10:m 8k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 TFLite Python v3.6 prod tests (8kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.6 on prod model, TFLite, optimized version (8kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_37-darwin-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-darwin-opt-base.tyml 3 | dependencies: 4 | - "darwin-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | - "homebrew_tests-darwin-amd64" 7 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 8 | args: 9 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.7.6:m 16k" 10 | metadata: 11 | name: "DeepSpeech OSX AMD64 CPU Python v3.7 tests" 12 | description: "Testing DeepSpeech for OSX/AMD64 on Python v3.7.6:m, CPU only, optimized version" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_37-win-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | system_setup: 8 | > 9 | ${system.sox_win} 10 | args: 11 | tests_cmdline: "${system.homedir.win}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.7.6:m 16k" 12 | metadata: 13 | name: "DeepSpeech Windows AMD64 CPU Python v3.7 tests" 14 | description: "Testing DeepSpeech for Windows/AMD64 on Python v3.7, CPU only, optimized version" 15 | -------------------------------------------------------------------------------- /taskcluster/test-python_37_16k-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.7.6:m 16k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 CPU Python v3.7 tests (16kHz)" 12 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.7, CPU only, optimized version (16kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_37_16k-linux-amd64-prod_pbmodel-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests-prod.sh 3.7.6:m 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU Python v3.7 prod tests (16kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.7 on prod model, CPU only, optimized version (16kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_37_8k-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | - "test-training_8k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_8k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.7.6:m 8k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 CPU Python v3.7 tests (8kHz)" 12 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.7, CPU only, optimized version (8kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_37_8k-linux-amd64-prod_pbmodel-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests-prod.sh 3.7.6:m 8k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU Python v3.7 prod tests (8kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.7 on prod model, CPU only, optimized version (8kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_37_tflite_16k-linux-amd64-prod-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python_tflite-tests-prod.sh 3.7.6:m 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 TFLite Python v3.7 prod tests (16kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.7 on prod model, TFLite, optimized version (16kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_37_tflite_8k-linux-amd64-prod-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python_tflite-tests-prod.sh 3.7.6:m 8k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 TFLite Python v3.7 prod tests (8kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.7 on prod model, TFLite, optimized version (8kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_38-darwin-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-darwin-opt-base.tyml 3 | dependencies: 4 | - "darwin-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | - "homebrew_tests-darwin-amd64" 7 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 8 | args: 9 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.8.1: 16k" 10 | metadata: 11 | name: "DeepSpeech OSX AMD64 CPU Python v3.8 tests" 12 | description: "Testing DeepSpeech for OSX/AMD64 on Python v3.8.1:m, CPU only, optimized version" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_38-win-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | system_setup: 8 | > 9 | ${system.sox_win} 10 | args: 11 | tests_cmdline: "${system.homedir.win}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.8.1: 16k" 12 | metadata: 13 | name: "DeepSpeech Windows AMD64 CPU Python v3.8 tests" 14 | description: "Testing DeepSpeech for Windows/AMD64 on Python v3.8, CPU only, optimized version" 15 | -------------------------------------------------------------------------------- /taskcluster/test-python_38-win-cuda-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-cuda-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-gpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | system_setup: 8 | > 9 | ${system.sox_win} 10 | args: 11 | tests_cmdline: "${system.homedir.win}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.8.1: 16k cuda" 12 | metadata: 13 | name: "DeepSpeech Windows AMD64 CUDA Python v3.8 tests" 14 | description: "Testing DeepSpeech for Windows/AMD64 on Python v3.8, CUDA, optimized version" 15 | -------------------------------------------------------------------------------- /taskcluster/test-python_38_16k-linux-amd64-prod_pbmodel-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests-prod.sh 3.8.1: 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU Python v3.8 prod tests (16kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.8 on prod model, CPU only, optimized version (16kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_38_8k-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | - "test-training_8k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_8k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.8.1: 8k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 CPU Python v3.8 tests (8kHz)" 12 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.8, CPU only, optimized version (8kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_38_8k-linux-amd64-prod_pbmodel-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests-prod.sh 3.8.1: 8k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU Python v3.8 prod tests (8kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.8 on prod model, CPU only, optimized version (8kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_38_tflite_16k-linux-amd64-prod-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python_tflite-tests-prod.sh 3.8.1: 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 TFLite Python v3.8 prod tests (16kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.8 on prod model, TFLite, optimized version (16kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_38_tflite_8k-linux-amd64-prod-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python_tflite-tests-prod.sh 3.8.1: 8k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 TFLite Python v3.8 prod tests (8kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.8 on prod model, TFLite, optimized version (8kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_39-darwin-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-darwin-opt-base.tyml 3 | dependencies: 4 | - "darwin-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | - "homebrew_tests-darwin-amd64" 7 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 8 | args: 9 | tests_cmdline: "$TASKCLUSTER_TASK_DIR/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.9.0: 16k" 10 | metadata: 11 | name: "DeepSpeech OSX AMD64 CPU Python v3.9 tests" 12 | description: "Testing DeepSpeech for OSX/AMD64 on Python v3.9.0:m, CPU only, optimized version" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_39-win-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-win-opt-base.tyml 3 | dependencies: 4 | - "win-amd64-cpu-opt" 5 | - "test-training_16k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_16k-linux-amd64-py36m-opt" 7 | system_setup: 8 | > 9 | ${system.sox_win} 10 | args: 11 | tests_cmdline: "${system.homedir.win}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.9.0: 16k" 12 | metadata: 13 | name: "DeepSpeech Windows AMD64 CPU Python v3.9 tests" 14 | description: "Testing DeepSpeech for Windows/AMD64 on Python v3.9, CPU only, optimized version" 15 | -------------------------------------------------------------------------------- /taskcluster/test-python_39_16k-linux-amd64-prod_pbmodel-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests-prod.sh 3.9.0: 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU Python v3.9 prod tests (16kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.9 on prod model, CPU only, optimized version (16kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_39_8k-linux-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | - "test-training_8k-linux-amd64-py36m-opt" 6 | test_model_task: "test-training_8k-linux-amd64-py36m-opt" 7 | args: 8 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests.sh 3.9.0: 8k" 9 | workerType: "${docker.dsTests}" 10 | metadata: 11 | name: "DeepSpeech Linux AMD64 CPU Python v3.9 tests (8kHz)" 12 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.9, CPU only, optimized version (8kHz)" 13 | -------------------------------------------------------------------------------- /taskcluster/test-python_39_8k-linux-amd64-prod_pbmodel-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-cpu-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python-tests-prod.sh 3.9.0: 8k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU Python v3.9 prod tests (8kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.9 on prod model, CPU only, optimized version (8kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_39_tflite_16k-linux-amd64-prod-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python_tflite-tests-prod.sh 3.9.0: 16k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 TFLite Python v3.9 prod tests (16kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.9 on prod model, TFLite, optimized version (16kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-python_39_tflite_8k-linux-amd64-prod-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-tflite-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-python_tflite-tests-prod.sh 3.9.0: 8k" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 TFLite Python v3.9 prod tests (8kHz)" 10 | description: "Testing DeepSpeech for Linux/AMD64 on Python v3.9 on prod model, TFLite, optimized version (8kHz)" 11 | -------------------------------------------------------------------------------- /taskcluster/test-singleshotinference-linux-amd64-py36m-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-ctc-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-single-shot-inference.sh 3.6.10:m" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU single-shot inference Py3.6" 10 | description: "Single-shot inference a DeepSpeech LDC93S1 checkpoint for Linux/AMD64 using upstream TensorFlow Python 3.6, CPU only, optimized version" 11 | -------------------------------------------------------------------------------- /taskcluster/test-transfer-linux-amd64-py36m-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: test-linux-opt-base.tyml 3 | dependencies: 4 | - "linux-amd64-ctc-opt" 5 | args: 6 | tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-transfer-tests.sh 3.6.10:m" 7 | workerType: "${docker.dsTests}" 8 | metadata: 9 | name: "DeepSpeech Linux AMD64 CPU transfer learning Py3.6" 10 | description: "Training a DeepSpeech LDC93S1 model with transfer learning for Linux/AMD64 16kHz Python 3.6, CPU only, optimized version" 11 | -------------------------------------------------------------------------------- /taskcluster/tf_darwin-amd64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: generic_tc_caching-darwin-opt-base.tyml 3 | cache: 4 | artifact_url: ${system.tensorflow.darwin_amd64.url} 5 | artifact_namespace: ${system.tensorflow.darwin_amd64.namespace} 6 | workerType: ${macOS.tfBuild} 7 | scripts: 8 | setup: "taskcluster/tf_tc-setup.sh" 9 | build: "taskcluster/tf_tc-build.sh --darwin-cpu" 10 | package: "taskcluster/tf_tc-package.sh" 11 | maxRunTime: 28800 12 | metadata: 13 | name: "TensorFlow OSX AMD64 CPU" 14 | description: "Building TensorFlow for OSX AMD64, CPU only, optimized version" 15 | -------------------------------------------------------------------------------- /taskcluster/tf_ios-arm64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: generic_tc_caching-darwin-opt-base.tyml 3 | cache: 4 | artifact_url: ${system.tensorflow.ios_arm64.url} 5 | artifact_namespace: ${system.tensorflow.ios_arm64.namespace} 6 | workerType: ${macOS.tfBuild} 7 | scripts: 8 | setup: "taskcluster/tf_tc-setup.sh" 9 | build: "taskcluster/tf_tc-build.sh --ios-arm64" 10 | package: "taskcluster/tf_tc-package.sh" 11 | maxRunTime: 28800 12 | metadata: 13 | name: "TensorFlow iOS ARM64 TFLite" 14 | description: "Building TensorFlow for iOS ARM64, TFLite, optimized version" 15 | -------------------------------------------------------------------------------- /taskcluster/tf_ios-x86_64-opt.yml: -------------------------------------------------------------------------------- 1 | build: 2 | template_file: generic_tc_caching-darwin-opt-base.tyml 3 | cache: 4 | artifact_url: ${system.tensorflow.ios_x86_64.url} 5 | artifact_namespace: ${system.tensorflow.ios_x86_64.namespace} 6 | workerType: ${macOS.tfBuild} 7 | scripts: 8 | setup: "taskcluster/tf_tc-setup.sh" 9 | build: "taskcluster/tf_tc-build.sh --ios-x86_64" 10 | package: "taskcluster/tf_tc-package.sh" 11 | maxRunTime: 28800 12 | metadata: 13 | name: "TensorFlow iOS x86_64 TFLite" 14 | description: "Building TensorFlow for iOS x86_64, TFLite, optimized version" 15 | -------------------------------------------------------------------------------- /taskcluster/tf_tc-pip.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -ex 4 | 5 | # Taken from https://www.tensorflow.org/install/source 6 | # Only future is needed for our builds, as we don't build the Python package 7 | pip install -U --user future==0.17.1 8 | -------------------------------------------------------------------------------- /taskcluster/worker.cyml: -------------------------------------------------------------------------------- 1 | taskcluster: 2 | schedulerId: taskcluster-github 3 | docker: 4 | provisionerId: proj-deepspeech 5 | workerTypeKvm: kvm 6 | workerTypeWin: win 7 | workerTypeCuda: win-gpu 8 | dockerrpi3: 9 | provisionerId: proj-deepspeech 10 | workerType: ds-rpi3 11 | dockerarm64: 12 | provisionerId: proj-deepspeech 13 | workerType: ds-lepotato 14 | generic: 15 | provisionerId: proj-deepspeech 16 | workerType: ds-macos-light 17 | script: 18 | provisionerId: proj-deepspeech 19 | workerType: ds-scriptworker 20 | -------------------------------------------------------------------------------- /tensorflow_tflite_runtime.supp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/tensorflow_tflite_runtime.supp -------------------------------------------------------------------------------- /tests/Example.ogg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/tests/Example.ogg -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/tests/__init__.py -------------------------------------------------------------------------------- /tests/test_data/alphabet_macos.txt: -------------------------------------------------------------------------------- 1 | a b c 2 | -------------------------------------------------------------------------------- /tests/test_data/alphabet_unix.txt: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | -------------------------------------------------------------------------------- /tests/test_data/alphabet_windows.txt: -------------------------------------------------------------------------------- 1 | a 2 | b 3 | c 4 | -------------------------------------------------------------------------------- /tests/test_data/validate_locale_fra.py: -------------------------------------------------------------------------------- 1 | def validate_label(label): 2 | return label 3 | -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | from __future__ import absolute_import, division, print_function 4 | 5 | if __name__ == "__main__": 6 | print( 7 | "Using the top level train.py script is deprecated and will be removed " 8 | "in a future release. Instead use: python -m coqui_stt_training.train" 9 | ) 10 | try: 11 | from coqui_stt_training import train as stt_train 12 | except ImportError: 13 | print("Training package is not installed. See training documentation.") 14 | raise 15 | 16 | stt_train.main() 17 | -------------------------------------------------------------------------------- /training/coqui_stt_training/GRAPH_VERSION: -------------------------------------------------------------------------------- 1 | 6 2 | -------------------------------------------------------------------------------- /training/coqui_stt_training/VERSION: -------------------------------------------------------------------------------- 1 | 1.4.0 2 | -------------------------------------------------------------------------------- /training/coqui_stt_training/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/training/coqui_stt_training/__init__.py -------------------------------------------------------------------------------- /training/coqui_stt_training/util/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/coqui-ai/STT/a562b940501937c0dd1d16e248dc15dc59089626/training/coqui_stt_training/util/__init__.py -------------------------------------------------------------------------------- /training/coqui_stt_training/util/gpu.py: -------------------------------------------------------------------------------- 1 | from tensorflow.python.client import device_lib 2 | 3 | 4 | def get_available_gpus(config): 5 | r""" 6 | Returns the number of GPUs available on this system. 7 | """ 8 | local_device_protos = device_lib.list_local_devices(session_config=config) 9 | return [x.name for x in local_device_protos if x.device_type == "GPU"] 10 | --------------------------------------------------------------------------------