For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DocumentationAPI ReferenceClient LibrariesChangelog
DocumentationAPI ReferenceClient LibrariesChangelog
  • Introduction
    • Introduction
  • Getting Started
    • Quickstart
    • Models
    • Authentication
    • HTTP Streaming
  • Text to Speech
    • How to TTS
    • LLM to TTS
    • Voice Models & Languages
  • Voice Cloning
    • Types of Cloning
    • Voice Clone via UI
    • How to Voice Clone
    • Delete Cloned Voice
    • Professional Voice Cloning
  • Integrations
    • LiveKit
    • Plivo
    • Vonage
  • Product
    • Projects
  • Best Practices
    • Voice Cloning Best Practices
    • PVC Best Practices
    • TTS Best Practices
LogoLogo
Voice AgentsModels
Voice AgentsModels
On this page
  • Requirements
  • Setup
  • Install our SDK
  • Delete your Voice
  • Synchronously
  • Asynchronously
  • Parameters
Voice Cloning

How to delete your Voice Clone using Python SDK

||View as Markdown|
Was this page helpful?
Previous

How to create an Instant Voice Clone using Python SDK

Next

How to Create a Professional Voice Clone

Built with

In this tutorial, you will learn how to use the Smallest AI platform to delete your voice clone. By the end of this tutorial, you will be able to clone your voice using our API.

You can access the source code for the Python SDK on our GitHub repository.

Requirements

Before you begin, ensure you have the following:

  • Python (3.9 or higher) installed on your machine.
  • An API key from the Smallest AI platform (sign up here).

Setup

Install our SDK

$pip install smallestai

Set your API key as an environment variable.

$export SMALLEST_API_KEY=YOUR_API_KEY

Delete your Voice

The Smallest AI SDK allows you to delete your cloned voice. This feature is available both synchronously and asynchronously, making it flexible for different use cases. Below are examples of how to use this functionality.

Synchronously

python
1from smallestai.waves import WavesClient
2
3def main():
4 client = WavesClient(api_key="SMALLEST_API_KEY")
5 res = client.delete_voice(voice_id="voice_id")
6 print(res)
7
8if __name__ == "__main__":
9 main()

Asynchronously

python
1import asyncio
2from smallestai.waves import AsyncWavesClient
3
4async def main():
5 client = AsyncWavesClient(api_key="SMALLEST_API_KEY")
6 res = await client.delete_voice(voice_id="voice_id")
7 print(res)
8
9if __name__ == "__main__":
10 asyncio.run(main())

Parameters

  • api_key: Your API key (can be set via SMALLEST_API_KEY environment variable).
  • voice_id: Unique Voice ID of the voice to be deleted.

If you have any questions or run into any issues, our community is here to help!

  • Join our Discord server to connect with other developers and get real-time support.
  • Reach out to our team via email: support@smallest.ai.