Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Load and run tensorflow simple audio recognition demo

Hi All,

I want to load and run tensorflow simple audio recognition demo (.pb or .pbtxt) file using opencv dnn module. I know we can load tensorflow model (.pb file) with following command:

 cvNet = cv2.dnn.readNetFromTensorflow('speech_recognition_graph.pb')

But I don't know how I can give audio .wav file as input to this model. Can anyone know how I can generate BLOB data from an audio file? Or is there any other way to run above model?

For More Info: https://www.tensorflow.org/tutorials/sequences/audio_recognition

Note: I only have OpenCV python package and do not have straight forward tensorflow python package.

Load and run tensorflow simple audio recognition demo

Hi All,

I want to load and run tensorflow simple audio recognition demo (.pb or .pbtxt) file using opencv dnn module. I know we can load tensorflow model (.pb file) with following command:

 cvNet = cv2.dnn.readNetFromTensorflow('speech_recognition_graph.pb')

But I don't know how I can give audio .wav file as input to this model. Can anyone know how I can generate BLOB data from an audio file? Or is there any other way to run above model?

For More Info: https://www.tensorflow.org/tutorials/sequences/audio_recognition

Note: I only have OpenCV python package and do not have straight forward tensorflow python package.

C:\fakepath\conv.jpg

Load and run tensorflow simple audio recognition demo

Hi All,

I want to load and run tensorflow simple audio recognition demo (.pb or .pbtxt) file using opencv dnn module. I know we can load tensorflow model (.pb file) with following command:

 cvNet = cv2.dnn.readNetFromTensorflow('speech_recognition_graph.pb')

But I don't know how I can give audio .wav file as input to this model. Can anyone know how I can generate BLOB data from an audio file? Or is there any other way to run above model?

For More Info: https://www.tensorflow.org/tutorials/sequences/audio_recognition

Note: I only have OpenCV python package and do not have straight forward tensorflow python package.

Sample .pbtxt file : C:\fakepath\conv.jpg

Sample Python code to run audio demo : C:\fakepath\tensorflow_audio_run_example.png