Skip to content
Open
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
4 changes: 3 additions & 1 deletion eleven_labs.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ def __init__(self):

# Convert text to speech, then save it to file. Returns the file path
def text_to_audio(self, input_text, voice="Doug VO Only", save_as_wave=True, subdirectory=""):
#Fix the TTS reading "asterisk" or "underscore" or "hashtag" aloud
temp_text = input_text.replace("*", "").replace("#", "").replace("_", "")
audio_saved = generate(
text=input_text,
text=temp_text,
voice=voice,
model="eleven_monolingual_v1"
)
Expand Down