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

Support including TTS conditionally. #699

Merged
merged 5 commits into from
Mar 26, 2024

Conversation

csukuangfj
Copy link
Collaborator

@csukuangfj csukuangfj commented Mar 25, 2024

Fixes #498

Closes #500

If you only want the ASR functions of sherpa-onnx, you can set

-DSHERPA_ONNX_ENABLE_TTS=OFF

while building sherpa-onnx.

Note it is useful for developers who want to integrate sherpa-onnx in their projects using only the C API.

The generated libraries don't depend on TTS-related stuff, e.g., no dependencies on espeak-ng.

Note that even if the c-api.h still contains TTS-related declarations, it won't cause any compilation errors as long
as you don't call those TTS-related functions in your projects. Or you can safely delete them if you want.

CC @rkjaran

@csukuangfj csukuangfj merged commit 4e040c5 into k2-fsa:master Mar 26, 2024
218 of 223 checks passed
@csukuangfj csukuangfj deleted the conditional-tts branch March 26, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Conditional inclusion of TTS
1 participant