简体   繁体   中英

Predict speech recognition model with an sample input

I had trained a speech recognition model with TensorFlow. got a checkpoint named "model.ckpt-1300.meta". Now I want to predict the result with a sample.wav file. Can anyone help?

There are different ways to use the saved checkpoint to build a model and perform a prediction; one of them can be as follow:

  • You can use an Estimator with model_fn being the original model function, and warm start the model using the saved checkpoint.
  • Then you can creating a custom input function to feed your sample.wav file into the Estimator and run the Estimator to provide predictions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM