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

When USE_CACHE enabled, /tts_stream fails when cache hits #58

Open
IguteChung opened this issue Feb 16, 2024 · 0 comments
Open

When USE_CACHE enabled, /tts_stream fails when cache hits #58

IguteChung opened this issue Feb 16, 2024 · 0 comments

Comments

@IguteChung
Copy link

/tts_stream uses generator to return a StreamingResponse,

but in the XTTS.process_tts_to_file, it returns the whole result if cache hit

if cached_result is not None:
      logger.info("Using cached result.")
      return cached_result  # Return the path to the cached result.

should returns a generator if stream=True.

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

No branches or pull requests

1 participant