View source on GitHub |
Class that performs classification on audio.
tflite_support.task.audio.AudioClassifier(
options: tflite_support.task.audio.AudioClassifierOptions
,
classifier: _CppAudioClassifier
) -> None
Attributes | |
---|---|
required_audio_format
|
Gets the required audio format for the model. |
required_input_buffer_size
|
Gets the required input buffer size for the model. |
Methods
classify
classify(
audio: tflite_support.task.audio.TensorAudio
) -> tflite_support.task.processor.ClassificationResult
Performs classification on the provided TensorAudio.
Args | |
---|---|
audio
|
Tensor audio, used to ext |