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

Add CMake option to disable/enable TTS support #500

Closed
wants to merge 2 commits into from

Conversation

rkjaran
Copy link

@rkjaran rkjaran commented Dec 21, 2023

The PR adds a CMake option SHERPA_ONNX_ENABLE_TTS which is ON by default to
control whether to compile TTS support.

Closes #498

@rkjaran rkjaran force-pushed the conditional-compilation-tts branch from df9db5d to f37b2d1 Compare December 21, 2023 14:36
@rkjaran rkjaran force-pushed the conditional-compilation-tts branch from f37b2d1 to b0b444a Compare December 21, 2023 14:37
@@ -600,6 +600,8 @@ SHERPA_ONNX_API void SherpaOnnxDestroySpeechSegment(
SHERPA_ONNX_API void SherpaOnnxVoiceActivityDetectorReset(
SherpaOnnxVoiceActivityDetector *p);

#if defined(SHERPA_ONNX_ENABLE_TTS)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should probably invert this, so as to not break the examples.

)

if(SHERPA_ONNX_ENABLE_TTS)
list(APPEND sources
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about to build a separate library for tts, e.g., libsherpa-onnx-core-tts.so?

If you only want to use the ASR part, then you don't need to link with libsherpa-onnx-core-tts.so.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. That makes more sense.

@rkjaran rkjaran deleted the conditional-compilation-tts branch May 17, 2024 16:34
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
2 participants