RAHB-REALTORS-Association / chat2gpt

Chat²GPT is a ChatGPT (and DALL·E 2/3, and ElevenLabs) chat bot for Google Chat. 🤖💬
https://chat2gpt.oncornerstone.app
MIT License
11 stars 1 forks source link

Split out ElevenLabs functions #73

Closed justinh-rahb closed 1 year ago

justinh-rahb commented 1 year ago

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:

Types of changes

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

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!