Clone with Voices

Overview

There are two different ways you can manage voices with the Deeptune API.

  1. Use Deeptune’s inbuilt voices to upload and manage voices.
  2. Manage voices yourself (eg in your own DB) and clone with generate_from_prompt.
This tutorial will cover #1: using Deeptune’s inbuilt voices

Voices

You can also store and manage voices inside of Deeptune.

1# Get all available voices
2voices = client.voices.list()
3print(voices)
4
5# Get a specific voices
6voice = client.voices.get(voice_id="d770a0d0-d7b0-4e52-962f-1a41d252a5f6")
7print(voice)
8
9# Create a new cloned voice
10voice = client.voices.create(
11 name="Cool Name",
12 file=open("./Michael.wav", "rb")
13)
14print(voice)
15
16# Update an existing voice
17voice = client.voices.update(
18 voice.id,
19 name="Updated Name",
20 file=open("./Michael.wav", "rb"),
21)
22
23# Delete an existing voice
24client.voices.delete(voice.id)