Get a custom voice
curl --request GET \
--url https://api.opper.ai/v3/audio/voices/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opper.ai/v3/audio/voices/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opper.ai/v3/audio/voices/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"created": 123,
"id": "<string>",
"object": "<string>",
"provider": "<string>",
"expires_at": 123,
"languages": [
"<string>"
],
"name": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}Audio
Get Voice
Get one of the project’s custom voices by id.
GET
/
v3
/
audio
/
voices
/
{id}
Get a custom voice
curl --request GET \
--url https://api.opper.ai/v3/audio/voices/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.opper.ai/v3/audio/voices/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.opper.ai/v3/audio/voices/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"created": 123,
"id": "<string>",
"object": "<string>",
"provider": "<string>",
"expires_at": 123,
"languages": [
"<string>"
],
"name": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": "<unknown>"
},
"meta": {}
}Authorizations
API key authentication. Pass your API key as a Bearer token.
Path Parameters
Voice id (voice_…)