Package org.tensorflow.framework
Interface Summary.AudioOrBuilder
-
- All Superinterfaces:
org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Summary.Audio,Summary.Audio.Builder
- Enclosing class:
- Summary
public static interface Summary.AudioOrBuilder extends org.nd4j.shade.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetContentType()string content_type = 5;org.nd4j.shade.protobuf.ByteStringgetContentTypeBytes()string content_type = 5;org.nd4j.shade.protobuf.ByteStringgetEncodedAudioString()Encoded audio data and its associated RFC 2045 content type (e.g.longgetLengthFrames()Length of the audio in frames (samples per channel).longgetNumChannels()Number of channels of audio.floatgetSampleRate()Sample rate of the audio in Hz.-
Methods inherited from interface org.nd4j.shade.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getSampleRate
float getSampleRate()
Sample rate of the audio in Hz.
float sample_rate = 1;- Returns:
- The sampleRate.
-
getNumChannels
long getNumChannels()
Number of channels of audio.
int64 num_channels = 2;- Returns:
- The numChannels.
-
getLengthFrames
long getLengthFrames()
Length of the audio in frames (samples per channel).
int64 length_frames = 3;- Returns:
- The lengthFrames.
-
getEncodedAudioString
org.nd4j.shade.protobuf.ByteString getEncodedAudioString()
Encoded audio data and its associated RFC 2045 content type (e.g. "audio/wav").
bytes encoded_audio_string = 4;- Returns:
- The encodedAudioString.
-
getContentType
String getContentType()
string content_type = 5;- Returns:
- The contentType.
-
getContentTypeBytes
org.nd4j.shade.protobuf.ByteString getContentTypeBytes()
string content_type = 5;- Returns:
- The bytes for contentType.
-
-