Favorite a public voice
curl --request PUT \
--url https://gengen.farm/api/gengen/v1/audio/voices/{voiceId}/favorite \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/audio/voices/{voiceId}/favorite"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/audio/voices/{voiceId}/favorite', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"isFavorite": true
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Find and manage voices
Favorite a public voice
Save one shared favorite for this workspace. Repeat safely with the same voice ID.
PUT
/
audio
/
voices
/
{voiceId}
/
favorite
Favorite a public voice
curl --request PUT \
--url https://gengen.farm/api/gengen/v1/audio/voices/{voiceId}/favorite \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/audio/voices/{voiceId}/favorite"
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, headers=headers)
print(response.text)const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/audio/voices/{voiceId}/favorite', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"isFavorite": true
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Save a public voice for every API key in the workspace. Send the ID in the path with an empty body. Repeating the request returns
{"isFavorite":true} and uses no private voice slots.