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

@@ -24,6 +24,7 @@ This directory contains examples for the JAVA API of sherpa-onnx.
./run-non-streaming-decode-file-nemo.sh
```
## Non-Streaming text-to-speech
```bash
@@ -32,6 +33,12 @@ This directory contains examples for the JAVA API of sherpa-onnx.
./run-non-streaming-tts-vits-zh.sh
```
## Non-Streaming text-to-speech (Play as it is generating)
```bash
./run-non-streaming-tts-piper-en-with-callback.sh
```
## Spoken language identification
```bash