File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/audio Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 4545 * <pre>
4646 * val tensor = TensorAudio.create(format, modelInputLength)
4747 * tensor.load(newData)
48- * interpreter.run(tensor.getFloatBuffer (), outputBuffer);
48+ * interpreter.run(tensor.getTensorBuffer (), outputBuffer);
4949 * </pre>
5050 *
5151 * <p>Another sample usage with {@link AudioRecord}
5454 * val tensor = TensorAudio.create(format, modelInputLength)
5555 * Timer().scheduleAtFixedRate(delay, period) {
5656 * tensor.load(audioRecord)
57- * interpreter.run(tensor.getFloatBuffer (), outputBuffer)
57+ * interpreter.run(tensor.getTensorBuffer (), outputBuffer)
5858 * }
5959 * </pre>
6060 */
@@ -250,7 +250,7 @@ public int load(AudioRecord record) {
250250
251251 /**
252252 * Returns a float {@link TensorBuffer} holding all the available audio samples in {@link
253- * AudioFormat#ENCODING_PCM_16BIT } i.e. values are in the range of [-1, 1].
253+ * AudioFormat#ENCODING_PCM_FLOAT } i.e. values are in the range of [-1, 1].
254254 */
255255 public TensorBuffer getTensorBuffer () {
256256 ByteBuffer byteBuffer = buffer .getBuffer ();
You can’t perform that action at this time.
0 commit comments