openvino/samples/python/speech_sample
Maciej Smyk 95accde9df
[DOCS] README files for Samples + name update for Get Started for master (#21157)
2023-11-21 13:20:25 +01:00
..
README.md [DOCS] README files for Samples + name update for Get Started for master (#21157) 2023-11-21 13:20:25 +01:00
arg_parser.py [EISW-89824] [master] Rename VPUX to NPU (#19004) 2023-08-10 00:20:07 +04:00
file_options.py Updated copyright headers (#15124) 2023-01-16 11:02:17 +04:00
speech_sample.py [Docs][PyOV] update python snippets (#19367) 2023-09-13 21:05:24 +02:00
utils.py Updated copyright headers (#15124) 2023-01-16 11:02:17 +04:00

README.md

Automatic Speech Recognition Python Sample

NOTE: This sample is being deprecated and will no longer be maintained after OpenVINO 2023.2 (LTS). The main reason for it is the outdated state of the sample and its extensive usage of GNA, which is not going to be supported by OpenVINO beyond 2023.2.

This sample demonstrates how to do a Synchronous Inference of acoustic model based on Kaldi* neural models and speech feature vectors.

The sample works with Kaldi ARK or Numpy* uncompressed NPZ files, so it does not cover an end-to-end speech recognition scenario (speech to text), requiring additional preprocessing (feature extraction) to get a feature vector from a speech signal, as well as postprocessing (decoding) to produce text from scores.

For more detailed information on how this sample works, check the dedicated article

Requirements

Options Values
Validated Models Acoustic model based on Kaldi* neural models (see
Model Preparation section)
Model Format OpenVINO™ toolkit Intermediate Representation (.xml + .bin)
Supported devices See Execution Modes
section below and List Supported Devices
Other language realization C++

Automatic Speech Recognition Python sample application demonstrates how to use the following Python API in applications:

Feature API Description
Import/Export Model openvino.runtime.Core.import_model,
openvino.runtime.CompiledModel.export_model The GNA plugin supports loading and saving of the GNA-optimized model
Model Operations openvino.runtime.Model.add_outputs ,
openvino.runtime.set_batch,
openvino.runtime.CompiledModel.inputs,
openvino.runtime.CompiledModel.outputs,
openvino.runtime.ConstOutput.any_name Managing of model: configure batch_size, input and output tensors
Synchronous Infer openvino.runtime.CompiledModel.create_infer_request,
openvino.runtime.InferRequest.infer Do synchronous inference
InferRequest Operations openvino.runtime.InferRequest.get_input_tensor,
openvino.runtime.InferRequest.model_outputs,
openvino.runtime.InferRequest.model_inputs, Get info about model using infer request API
InferRequest Operations openvino.runtime.InferRequest.query_state,
openvino.runtime.VariableState.reset Gets and resets CompiledModel state control
Profiling openvino.runtime.InferRequest.profiling_info,
openvino.runtime.ProfilingInfo.real_time Get infer request profiling info

Basic OpenVINO™ Runtime API is covered by Hello Classification Python* Sample.