Prerequisites
- You have an API key. If not, you can get one by contacting us.
- You have python installed on your machine along with the
requests
library
Mix and match available faces and voices
In any generation request, you can specify aface
and voice
instead of an avatar
name. You can use any face with any voice. Here’s an example:
Python
Use a custom face
To use a custom face, you first need to create an image resource of the face. If you’re not sure how to do it, follow the steps here and note theresource_id
.
Python
When you specify a
resource_id
for face
, Verbalia will automatically
detect the face in the image and initialize it as an avatar. Just make sure
that the resource is of type image
or video
and it contains a well-framed
face in it.Use a custom voice
To use a custom voice, you first need to create an audio resource of a sample recording of the voice. If you’re not sure how to do it, follow the steps here and note theresource_id
.
Python
When you specify a
resource_id
for voice
, Verbalia will automatically
clone the voice and use it in the generation. Just make sure that the resource
is of type audio
or video
and it contains a clear voice recording of at
least 1 minute with minimal background noise.