Skip to content

Commit ff7da70

Browse files
wangtzxunkai55
authored andcommitted
Audio Task Lib: Fix typos in the comments.
PiperOrigin-RevId: 373898759
1 parent de6ad5c commit ff7da70

File tree

1 file changed

+3
-3
lines changed
  • tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/audio

1 file changed

+3
-3
lines changed

tensorflow_lite_support/java/src/java/org/tensorflow/lite/support/audio/TensorAudio.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
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}
@@ -54,7 +54,7 @@
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();

0 commit comments

Comments
 (0)