Skip to content

Commit

Permalink
SDK regeneration
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Mar 4, 2024
1 parent 40757a2 commit f0fc696
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/elevenlabs/voices/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,7 @@ def get(
raise ApiError(status_code=_response.status_code, body=_response.text)
raise ApiError(status_code=_response.status_code, body=_response_json)

def delete_v_1_voices(
self, voice_id: str, *, request_options: typing.Optional[RequestOptions] = None
) -> typing.Any:
def delete(self, voice_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> typing.Any:
"""
Deletes a voice by its ID.
Expand All @@ -247,7 +245,7 @@ def delete_v_1_voices(
client = ElevenLabs(
api_key="YOUR_API_KEY",
)
client.voices.delete_v_1_voices(
client.voices.delete(
voice_id="voice_id",
)
"""
Expand Down Expand Up @@ -679,9 +677,7 @@ async def get(
raise ApiError(status_code=_response.status_code, body=_response.text)
raise ApiError(status_code=_response.status_code, body=_response_json)

async def delete_v_1_voices(
self, voice_id: str, *, request_options: typing.Optional[RequestOptions] = None
) -> typing.Any:
async def delete(self, voice_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> typing.Any:
"""
Deletes a voice by its ID.
Expand All @@ -695,7 +691,7 @@ async def delete_v_1_voices(
client = AsyncElevenLabs(
api_key="YOUR_API_KEY",
)
await client.voices.delete_v_1_voices(
await client.voices.delete(
voice_id="voice_id",
)
"""
Expand Down

0 comments on commit f0fc696

Please sign in to comment.