Add TTS example for Java API. (#1176)
It plays the generated audio as it is still generating.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package com.k2fsa.sherpa.onnx;
|
||||
|
||||
@FunctionalInterface
|
||||
public interface OfflineTtsCallback {
|
||||
Integer invoke(float[] samples);
|
||||
}
|
||||
Reference in New Issue
Block a user