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 ReferenceSelf HostModel CardsClient LibrariesIntegrationsDeveloper ToolsChangelog
DocumentationAPI ReferenceSelf HostModel CardsClient LibrariesIntegrationsDeveloper ToolsChangelog
  • Getting Started
    • Introduction
    • Models
    • Authentication
  • Text to Speech (Lightning)
    • Quickstart
    • Overview
    • Sync & Async
    • Streaming
    • Pronunciation Dictionaries
    • Voices & Languages
    • HTTP vs Streaming vs WebSockets
  • Speech to Text (Pulse)
    • Quickstart
    • Overview
  • LLM (Electron)
    • Quickstart
    • Overview
    • Chat Completions
    • Streaming
    • Tool / Function Calling
    • Prefix Caching
    • Supported Parameters
    • Migrate from OpenAI
    • Best Practices
  • Cookbooks
    • Speech to Text
    • Text to Speech
    • Voice Agent (Electron + Pulse + Lightning)
  • Voice Cloning
    • Instant Clone (UI)
    • Instant Clone (API)
    • Instant Clone (Python SDK)
    • Delete Cloned Voice
  • Best Practices
    • Voice Cloning Best Practices
    • TTS Best Practices
  • Troubleshooting
    • Error reference
LogoLogo
Voice AgentsModels
Voice AgentsModels
On this page
  • Requirements
  • Setup
  • Install our SDK
  • Delete your Voice
  • Synchronously
  • Asynchronously
  • Parameters
Voice Cloning

Delete a Voice Clone

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

Instant Voice Clone (Python SDK)

Next

Voice Cloning Best Practices

Built with

Delete a previously created voice clone via the Python SDK.

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

The smallestai Python SDK is being updated. If the SDK example below doesn’t work, call the underlying delete-voice REST endpoint directly (see the API reference under Waves → API Reference). Streaming synthesis via WavesStreamingTTS is unaffected.

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.

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.