TensorAudio.TensorAudioFormat

公共静态抽象类 TensorAudio.TensorAudioFormat

对一些常量进行封装,这些常量用于描述传入音频样本的格式(即声道数量和采样率)。默认情况下,渠道设置为 1。

嵌套类

类别 TensorAudio.TensorAudioFormat.Builder TensorAudio.TensorAudioFormat 的构建器

公共构造函数

公共方法

static TensorAudio.TensorAudioFormat.Builder
静态 TensorAudio.TensorAudioFormat
create(AudioFormat 格式)
根据 Android AudioFormat 类创建 TensorAudio.TensorAudioFormat 实例。
abstract int
abstract int

继承的方法

公共构造函数

public TensorAudioFormat ()

公共方法

public static TensorAudio.TensorAudioFormat.Builder builder ()

public static TensorAudio.TensorAudioFormat create (AudioFormat 格式)

根据 Android AudioFormat 类创建 TensorAudio.TensorAudioFormat 实例。

参数
格式

public abstract int getChannels ()

public abstract int getSampleRate ()