* Doc Migration from Gitlab (#1289) * doc migration * fix * Update FakeQuantize_1.md * Update performance_benchmarks.md * Updates graphs for FPGA * Update performance_benchmarks.md * Change DL Workbench structure (#1) * Changed DL Workbench structure * Fixed tags * fixes * Update ie_docs.xml * Update performance_benchmarks_faq.md * Fixes in DL Workbench layout * Fixes for CVS-31290 * [DL Workbench] Minor correction * Fix for CVS-30955 * Added nGraph deprecation notice as requested by Zoe * fix broken links in api doxy layouts * CVS-31131 fixes * Additional fixes * Fixed POT TOC * Update PAC_Configure.md PAC DCP 1.2.1 install guide. * Update inference_engine_intro.md * fix broken link * Update opset.md * fix * added opset4 to layout * added new opsets to layout, set labels for them * Update VisionAcceleratorFPGA_Configure.md Updated from 2020.3 to 2020.4 Co-authored-by: domi2000 <domi2000@users.noreply.github.com>
2.8 KiB
Speech Library
Overview
Speech Library provides an easy way to work with the end-to-end speech recognition pipeline. The software stack is created to minimize effort required to build speech-enabled applications. Speech Library wraps all of the processing blocks and exposes a simple API. The library takes care of proper initialization and data passing between all the components in the pipeline.
Speech Library contains:
- Two core binary libraries in the
libfolder: Intel® Feature Extraction library and Intel® Speech Decoder - Speech library source code in the
srcfolder - Speech library header files in the
includefolder. The library API is in the filespeech_library.h.
To compile the libraries, please run a .bat/.sh file in the root folder of speech libraries and demos, or run the demonstration script <INSTALL_DIR>/deployment_tools/demo/speech_recogintion.bat/sh.
Architecture
The implementation of speech recognition pipeline used in demo applications is based on classic HMM/DNN approach.
The pipeline consists of the following stages:
- Mel-frequency cepstral coefficients (MFCC) feature extraction: the input audio signal or waveform is processed by Intel® Feature Extraction library to create a series of MFCC features
- Neural acoustic scoring: the OpenVINO ™ Inference Engine transcribes the extracted features into a sequence of phonemes using a neural acoustic model
- Language model decoding: the Intel® Speech Decoder turns the phonemes into text hypothesis. The decoding graph takes into account the grammar of the data, as well as the distribution and probabilities of contiguous specific words (n-grams)
Speech Library API
The Speech Library API consists of simple routines:
- Build recognizer pipeline
- Provide audio samples for processing
- Inform about new stable recognition result
See <INSTALL_DIR>/data_processing/audio/speech_recognition/include/speech_library.h for details about the API.
A great example on how to use the API is the source code of offline speech recognition demo.
Run Your Application
Before running compiled binary files, make sure your application can find the Inference Engine, Speech, Decoder, and Feature Extraction libraries.
On Linux* operating systems, including Ubuntu*, the LD_LIBRARY_PATH environment variable is usually used to specify directories to search libraries in.
You can update the LD_LIBRARY_PATH with paths to the directories in the Inference Engine installation directory where the libraries are placed.
Please check run_demo.sh of offline and live speech recognition demos to learn how the LD_LIBRARY_PATH environment parameter can be set.

