Using Teachable Machine to make a Audio model for Python
@setter43,
For Simple audio recognition and Audio classification, there are pre-built models available on the official tensorflow.org. 
The model demonstrates how to preprocess audio files in the WAV format and build and train a basic [automatic speech recognition](https://en.wikipedia.org/wiki/Speech_recognition) (ASR) model for recognizing ten different words.

Also I tried to execute the demonstrated code for the Audio recognition which was executed successfully. Kindly find the gist of it [here](https://colab.research.google.com/gist/tilakrayal/11522da06ccca7071762085b7d3d007c/untitled1039.ipynb) and the reference.

https://www.tensorflow.org/tutorials/audio/simple_audio
https://www.tensorflow.org/lite/examples/audio_classification/overview#get_started

Thank you!
 I want to use my own Audio classification AI model that I build using Teachable Machine. I run into a number of issues when trying to adapt the model.py in the git project keyword-spotting.

I can get the model working.
Then I try to point the program to my own AI and it fails.

`mendel@yellow-jet:~/newtest/project-keyword-spotter$ python3 run_model.py --model_file soundclassifier_with_metadata.tflite
Traceback (most recent call last):
  File "run_model.py", line 60, in <module>
    main()
  File "run_model.py", line 50, in main
    interpreter = model.make_interpreter(args.model_file)
  File "/home/mendel/newtest/project-keyword-spotter/model.py", line 211, in make_interpreter
    {'device': device[0]} if device else {})
  File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 351, in __init__
    experimental_preserve_all_tensors))
ValueError: Could not open 'soundclassifier_with_metadata.tflite'.
mendel@yellow-jet:~/newtest/project-keyword-spotter$
` @setter43,
Could you please confirm whether you are using this teachable machine official link to make an audio model.
https://teachablemachine.withgoogle.com/train/audio


The pre trained lite models in TF hub provide metadata. However, you can add metadata given a tflite model using [TFLIte meta data writer API](https://www.tensorflow.org/lite/models/convert/metadata_writer_tutorial).

Please find the overview of adding metada [here](https://www.tensorflow.org/lite/models/convert/metadata) along with the examples.

And also were you able to get the tflite file, if yes could you provide the code which you are using to test which helps to analyse.

Thank you! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. @setter43 
Teachable Machine with Google gives you the option to download your model after it has been trained
See for TensorFlow Keras 
Click on it
It would generate a zip file with the name converted_keras
There would be 2 files in it:
1) 1 would be your trained model in .h5 format
2) 1 would be a simple text file with labels

https://teachablemachine.withgoogle.com/train/audio
Once check for your dataset, it's source and how you are uploading it to be trained
My recommendation would be to create the dataset on your own I am using Teachable Machine for my audio model. I don't have the option to export in .h5 for audio. Just .js or .tflite. tflite would be compatible with the google coral I am working with. But the sample app Git link just leads to an error and it's hard to find an example where I can take my AI model and just plug and play.
![image](https://user-images.githubusercontent.com/49942725/228797393-af98c7b0-2e74-4cbd-8ec5-18feb5cff7db.png)

 Hi @setter43 

Sorry for the delayed response.

Under the hood Teachable Machine uses [Tensorflow.js](https://www.tensorflow.org/js), a library for machine learning in Javascript, to train and run the models you make in your web browser as given [here](https://github.com/googlecreativelab/teachablemachine-community#what-is-this-repository-for). The option to download `.h5` file might not be available yet.

Could you please to this issue in 
[teachablemachine-community](https://github.com/googlecreativelab/teachablemachine-community) repo for faster resolution?

Thanks. This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59985">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/59985">No</a>

I have been trying to make an AI model that will listen to user input. Depending on the user's input/command the program will carry out functions etc.

I am trying to use a model I have trained from the teachable machine, but the model is not in a format that can be used in Python. From what I have seen Python requires a .h5. However, TFLite.js is only available to export/download in. When I try to use this in my program I get hit with errors.

What steps can I take to import an Audio model for a Python system?