Skip to content

fix client generate elevenlabs #29

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions tts_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())


Expand All @@ -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',
Expand Down