Speech Library

Overview

Speech Library provides a very 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:

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:

asr_pipeline.png

Speech Library API

The Speech Library API was designed to be very simple. It consists of just a few routines which:

The flow is described below:

speech_library_api.png

Please refer to: <INSTALL_DIR>/data_processing/audio/speech_recognition/include/speech_library.h to learn more details about the API.

A great example on how to use the API is the source code of offline speech recognition demo.

Running 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 be looked for libraries.

You can update the LD_LIBRARY_PATH with paths to the directories in the Inference Engine installation directory where the libraries reside.

Please check run_demo.sh of offline and live speech recognition demos to learn how the LD_LIBRARY_PATH environment parameter can be set.