Skip to content

Commit

Permalink
fix: return voice object from clone
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioschneider committed May 27, 2023
1 parent ba8b177 commit 58006e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elevenlabs/api/voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def from_clone(cls, voice_clone: VoiceClone) -> Voice:
if e.http_error.status == "can_not_use_instant_voice_cloning":
raise UnauthorizedVoiceCloningError(e.http_error)
raise
return voice_id
return cls.from_id(voice_id)

@classmethod
def from_design(cls, voice_design: VoiceDesign):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name="elevenlabs",
packages=find_packages(exclude=[]),
version="0.2.15",
version="0.2.16",
description="The official elevenlabs python package.",
long_description_content_type="text/markdown",
author="Elevenlabs",
Expand Down

0 comments on commit 58006e2

Please sign in to comment.