Update a recording
This endpoint updates a recording for a particular voice.
HTTP Request
PUT https://app.resemble.ai/api/v2/voices/<voice_uuid>/recordings/<recording_uuid>
URL Parameters | Type | Description |
---|---|---|
recording_uuid | string | UUID of the recording to update |
voice_uuid | string | UUID of the voice to which the recording belongs |
Multipart Form Body | Type | Description |
---|---|---|
emotion | string | Emotion of the recording |
is_active | boolean | If false, the recording is not used to train the voice model |
name | string | Name of the recording |
text | string | Transcript of the recording |
fill | (optional) boolean | Defaulted to false. If true, the recording will be used for Resemble Fill. Please see Using Resemble Fill Through The API for detailed instructions. |
note
You cannot upload a new file for a recording. Instead, try deleting the recording you wish to replace and creating an entirely new one!
HTTP Response
{
"success": true,
"item": {
"uuid": <string>,
"name": <string>,
"text": <string>,
"emotion": <string>,
"is_active": <boolean>,
"audio_src": Optional<string>,
"created_at": <UTC string>,
"updated_at": <UTC string>,
}
}
Examples
NodeJS
1
2
3
4
5
6
7
8
9
10
import { Resemble } from '@resemble/node'
Resemble.setApiKey('YOUR_API_TOKEN')
await Resemble.v2.recordings.update(voiceUuid, {
emotion: 'happy',
is_active: false,
name: 'happy_sample',
text: 'Hey, this is a happy sample!'
})
Try it out
API Key:
Voice UUID:
Recording UUID:
Multipart Body:
Emotion:
Name:
Text:
Is Active:
Fill: