tflite_support.metadata_writers.metadata_info.InputAudioTensorMd
A container for the input audio tensor metadata information.
Inherits From: TensorMd
View aliases
Main aliases
tflite_support.metadata_writers.audio_classifier.metadata_info.InputAudioTensorMd
, tflite_support.metadata_writers.audio_classifier.metadata_writer.metadata_info.InputAudioTensorMd
, tflite_support.metadata_writers.bert_nl_classifier.metadata_info.InputAudioTensorMd
, tflite_support.metadata_writers.bert_nl_classifier.metadata_writer.metadata_info.InputAudioTensorMd
, tflite_support.metadata_writers.image_classifier.metadata_info.InputAudioTensorMd
, tflite_support.metadata_writers.image_classifier.metadata_writer.metadata_info.InputAudioTensorMd
, tflite_support.metadata_writers.image_segmenter.metadata_info.InputAudioTensorMd
, tflite_support.metadata_writers.image_segmenter.metadata_writer.metadata_info.InputAudioTensorMd
, tflite_support.metadata_writers.nl_classifier.metadata_info.InputAudioTensorMd
, tflite_support.metadata_writers.nl_classifier.metadata_writer.metadata_info.InputAudioTensorMd
, tflite_support.metadata_writers.object_detector.metadata_info.InputAudioTensorMd
, tflite_support.metadata_writers.object_detector.metadata_writer.metadata_info.InputAudioTensorMd
tflite_support.metadata_writers.metadata_info.InputAudioTensorMd(
name: Optional[str] = None,
description: Optional[str] = None,
sample_rate: int = 0,
channels: int = 0
)
Args |
name
|
name of the tensor.
|
description
|
description of what the tensor is.
|
sample_rate
|
the sample rate in Hz when the audio was captured.
|
channels
|
the channel count of the audio.
|
Attributes |
sample_rate
|
the sample rate in Hz when the audio was captured.
|
channels
|
the channel count of the audio.
|
Methods
View source
create_metadata() -> tflite_support.metadata_schema_py_generated.TensorMetadataT
Creates the input audio metadata based on the information.
Returns |
A Flatbuffers Python object of the input audio metadata.
|
Raises |
ValueError
|
if any value of sample_rate, channels is negative.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-11-04 UTC.