diff --git a/README.md b/README.md index 8f87c8a..af6ef00 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,32 @@ Go to the "Billing" tab towards the left of the screen. Start a payment plan whe 7. Follow the steps listed in Using GPT-VCC +### MacOs (Intel chip based) + +1. Install pip3 + +Pip is typically installed with Python on macOS. If you need to install or upgrade pip, you can do so using: + + python3 -m ensurepip --upgrade + +2. Download this repo either via the releases, git cloning the repo, or pressing the code button towards the upper right and pressing "Download ZIP". + +3. Extract files, move into directory, open requirements.txt, and delete pyaudio==0.2.13 from file. Make it look like it was never there, preserving the original formatting. + +4. Download pyaudio with apt as follows: + + brew install portaudio + +5. Download espeak with apt as follows (needed for interface communication): + + brew install espeak + +6. Download other requirements with pip as follows: + + pip3 install -r requirements.txt --upgrade + +7. Follow the steps listed in Using GPT-VCC + # Using GPT-VCC diff --git a/tts_functions.py b/tts_functions.py index 9d94e1f..454ccb7 100644 --- a/tts_functions.py +++ b/tts_functions.py @@ -8,7 +8,7 @@ from langdetect import detect from general_functions import * import json -from elevenlabs import generate, play, save +from elevenlabs import client, play, save gtts_languages = set(gtts.lang.tts_langs().keys()) @@ -18,7 +18,7 @@ def robospeak(text: str): engine.runAndWait() def tts11Multi(key: str, text: str, path: str, voice_id: str = 'EXAVITQu4vr4xnSDxMaL'): - audio = generate( + audio = client.generate( text=text, voice=voice_id, model='eleven_multilingual_v1',