tensorflow/lite/g3doc/api_docs/python/tflite_model_maker/audio_classifier.md
page_type: reference description: APIs to train an audio classification model.
<link rel="stylesheet" href="/site-assets/css/style.css"> <!-- DO NOT EDIT! Automatically generated file. --> <div itemscope itemtype="http://developers.google.com/ReferenceObject"> <meta itemprop="name" content="tflite_model_maker.audio_classifier" /> <meta itemprop="path" content="Stable" /> </div>View source on GitHub
APIs to train an audio classification model.
<a href="https://colab.research.google.com/github/googlecodelabs/odml-pathways/blob/main/audio_classification/colab/model_maker_audio_colab.ipynb">https://colab.research.google.com/github/googlecodelabs/odml-pathways/blob/main/audio_classification/colab/model_maker_audio_colab.ipynb</a>
<a href="https://github.com/tensorflow/examples/blob/master/tensorflow_examples/lite/model_maker/demo/audio_classification_demo.py">https://github.com/tensorflow/examples/blob/master/tensorflow_examples/lite/model_maker/demo/audio_classification_demo.py</a>
class AudioClassifier: Audio classifier for training/inference and exporing.
class BrowserFftSpec: Model good at detecting speech commands, using Browser FFT spectrum.
class DataLoader: DataLoader for audio tasks.
class YamNetSpec: Model good at detecting environmental sounds, using YAMNet embedding.
create(...): Loads data and retrains the model.