Modifier and Type | Method and Description |
---|---|
AudioSpectrogram |
audioSpectrogram(Operand<Float> input,
Long windowSize,
Long stride,
AudioSpectrogram.Options... options)
Builds an
AudioSpectrogram operation |
DecodeWav |
decodeWav(Operand<String> contents,
DecodeWav.Options... options)
Builds an
DecodeWav operation |
EncodeWav |
encodeWav(Operand<Float> audio,
Operand<Integer> sampleRate)
Builds an
EncodeWav operation |
Mfcc |
mfcc(Operand<Float> spectrogram,
Operand<Integer> sampleRate,
Mfcc.Options... options)
Builds an
Mfcc operation |
public DecodeWav decodeWav(Operand<String> contents, DecodeWav.Options... options)
DecodeWav
operationcontents
- The WAV-encoded audio, usually from a file.options
- carries optional attributes valuesDecodeWav
public EncodeWav encodeWav(Operand<Float> audio, Operand<Integer> sampleRate)
EncodeWav
operationaudio
- 2-D with shape `[length, channels]`.sampleRate
- Scalar containing the sample frequency.EncodeWav
public AudioSpectrogram audioSpectrogram(Operand<Float> input, Long windowSize, Long stride, AudioSpectrogram.Options... options)
AudioSpectrogram
operationinput
- Float representation of audio data.windowSize
- How wide the input window is in samples. For the highest efficiencystride
- How widely apart the center of adjacent sample windows should be.options
- carries optional attributes valuesAudioSpectrogram
public Mfcc mfcc(Operand<Float> spectrogram, Operand<Integer> sampleRate, Mfcc.Options... options)
Mfcc
operationspectrogram
- Typically produced by the Spectrogram op, with magnitude_squaredsampleRate
- How many samples per second the source audio used.options
- carries optional attributes valuesMfcc
Copyright © 2022. All rights reserved.