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:
lib
folder: Intel® Feature Extraction library and Intel® Speech Decodersrc
folderinclude
folder. The library API is in the file speech_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
.
The implementation of speech recognition pipeline used in demo applications is based on classic HMM/DNN approach.
The pipeline consists of the following stages:
The Speech Library API consists of simple routines:
The flow is described below:
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.
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.