Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play generated audio as it is generating. #457

Merged
merged 10 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/cmake_extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def build_extension(self, ext: setuptools.extension.Extension):
binaries += ["sherpa-onnx-vad-microphone"]
binaries += ["sherpa-onnx-vad-microphone-offline-asr"]
binaries += ["sherpa-onnx-offline-tts"]
binaries += ["sherpa-onnx-offline-tts-play"]

if is_windows():
binaries += ["kaldi-native-fbank-core.dll"]
Expand Down
4 changes: 4 additions & 0 deletions cmake/espeak-ng-for-piper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ function(download_espeak_ng_for_piper)
set(espeak_ng_URL2 "")
set(espeak_ng_HASH "SHA256=8a48251e6926133dd91fcf6cb210c7c2e290a9b578d269446e2d32d710b0dfa0")

set(BUILD_ESPEAK_NG_TESTS OFF CACHE BOOL "" FORCE)
set(USE_ASYNC OFF CACHE BOOL "" FORCE)
set(USE_MBROLA OFF CACHE BOOL "" FORCE)
set(USE_LIBSONIC OFF CACHE BOOL "" FORCE)
Expand Down Expand Up @@ -106,10 +107,12 @@ function(download_espeak_ng_for_piper)
if(SHERPA_ONNX_ENABLE_PYTHON AND WIN32)
install(TARGETS
espeak-ng
ucd
DESTINATION ..)
else()
install(TARGETS
espeak-ng
ucd
DESTINATION lib)
endif()

Expand All @@ -120,6 +123,7 @@ function(download_espeak_ng_for_piper)
if(WIN32 AND BUILD_SHARED_LIBS)
install(TARGETS
espeak-ng
ucd
DESTINATION bin)
endif()
endfunction()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
sherpa-onnx-fst.lib;
kaldi-native-fbank-core.lib;
onnxruntime.lib;
piper_phonemize.lib;
espeak-ng.lib;
ucd.lib;
</SherpaOnnxLibraries>
</PropertyGroup>
<ItemDefinitionGroup>
Expand Down
3 changes: 3 additions & 0 deletions mfc-examples/NonStreamingTextToSpeech/sherpa-onnx-deps.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
sherpa-onnx-fst.lib;
kaldi-native-fbank-core.lib;
onnxruntime.lib;
piper_phonemize.lib;
espeak-ng.lib;
ucd.lib;
</SherpaOnnxLibraries>
</PropertyGroup>
<ItemDefinitionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
sherpa-onnx-fst.lib;
kaldi-native-fbank-core.lib;
onnxruntime.lib;
piper_phonemize.lib;
espeak-ng.lib;
ucd.lib;
</SherpaOnnxLibraries>
</PropertyGroup>
<ItemDefinitionGroup>
Expand Down
Loading
Loading