create static method

TensorAudioFormat create(
  1. int channelCount,
  2. int sampleRate
)

Implementation

static TensorAudioFormat create(int channelCount, int sampleRate) {
  checkArgument(channelCount > 0,
      message: "Number of channels should be greater than 0");
  checkArgument(
      sampleRate > 0, message: "Sample rate should be greater than 0");
  return TensorAudioFormat._(channelCount, sampleRate);
}