Speech Recognition on iMX8M Plus

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Speech Recognition on iMX8M Plus

70 Views
A_Guerin
Contributor I

Hello,

I am currently working on Speech Recognition on Embedded system and the iMX8M Plus seems to be a fine option with its NPU. In "i.MX 8M Plus Applications Processor Datasheet for Industrial Products" it is mentionned that the NPU could be use to accelerate the inference and do so :

"Neutral Processing Unit (NPU) 2.3 TOP/s Neural Network performance
• Keyword detect, noise reduction, beamforming
• Speech recognition (i.e. Deep Speech 2)
• Image recognition (i.e. ResNet-50)"

 

However, I cannot seem to make it work, nor can I find an example on the topic.

Has anyone already worked on this solution ? How can I use the NPU to accelerate the inférence ? I am currently using tflite as follows :

"import tflite_runtime.interpreter as tflite

...

interpreter = tflite.Interpreter(model_path=args.model_file, experimental_delegates=ext_delegate, num_threads=args.num_threads)
interpreter.allocate_tensors()
input_details = interpreter.get_input_details()
output_details = interpreter.get_output_details()
interpreter.set_tensor(input_details[0]['index'], audio_data)
interpreter.invoke()
output_data = interpreter.get_tensor(output_details[0]['index'])
"
But it does not seem to work since evrytime i ad /usr/lib/libvx_delegate.so
 I have this error/warning log : Loading model from ./deepspeech-0.9.3-models.tflite
WARNING: Fallback unsupported op 32 to TfLite
WARNING: Fallback unsupported op 32 to TfLite
WARNING: dynamic shape in not support in reshape.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: hybrid data type is not supported in fullyconnected.
ERROR: String input is not supported
ERROR: String input is not supported
Model loaded
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
0 Kudos
Reply
1 Reply

55 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

Voice Intelligent Technology (VIT) library and voice control software package is delivered via the MCUXpresso SDK or Linux BSP.

When you choose SDK library, you need choose VoiceSpot and VoiceSeeker.

Untitled.png

For VIT User Guide, you can find it in the next link. Also, please refer below website and download Low Power Voice UI Demo.pdf

Best regards.

0 Kudos
Reply