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

Split out ElevenLabs functions #73

Merged
merged 1 commit into from
Aug 22, 2023
Merged

Conversation

justinh-rahb
Copy link
Collaborator

@justinh-rahb justinh-rahb commented Aug 22, 2023

Summary

Extracted ElevenLabs-specific functions from main.py into a dedicated utility module elevenlabs.py.

Description

To further enhance code modularity and clarity, functions related to ElevenLabs, including voice data retrieval and text-to-speech processing, have been separated from the main application code (main.py) and placed in their own utility module (elevenlabs.py). This restructuring ensures that each module focuses on a specific domain, making the codebase more maintainable and organized.

Related Issue(s)

#47

Motivation and Context

With the expanding functionalities of our application, having a modular structure is crucial. Segregating ElevenLabs specific logic:

  • Facilitates easier debugging and testing of ElevenLabs related features.
  • Reduces the complexity of main.py, making it more readable.
  • Adheres to good coding practices, ensuring that each module/file has a clear and distinct responsibility.

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

  • New feature (non-breaking change which adds functionality)

Checklist:

Go over all the following points, and put an x in all the boxes that apply. If you're unsure about any of these, don't hesitate to ask. We're here to help!

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.

@justinh-rahb justinh-rahb added the enhancement New feature or request label Aug 22, 2023
@justinh-rahb justinh-rahb self-assigned this Aug 22, 2023
@justinh-rahb justinh-rahb linked an issue Aug 22, 2023 that may be closed by this pull request
@justinh-rahb justinh-rahb merged commit 847d8ed into master Aug 22, 2023
3 checks passed
@justinh-rahb justinh-rahb deleted the modularize-elevenlabs branch August 22, 2023 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Refactor] Modularize main.py
1 participant