Add TTS example for Java API. (#1176)

It plays the generated audio as it is still generating.
This commit is contained in:
Fangjun Kuang
2024-07-28 12:07:19 +08:00
committed by GitHub
parent 4e6aeff07e
commit 1f8e575133
6 changed files with 262 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
package com.k2fsa.sherpa.onnx;
@FunctionalInterface
public interface OfflineTtsCallback {
Integer invoke(float[] samples);
}