const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'John Smith',
language: 'en',
description: 'An old American male voice with a slight hoarseness in his throat. Perfect for news.',
labels: '{"language": "en", "accent": "en-US", "gender": "male", "age": "middle-aged"}'
})
};
fetch('https://api.threetone.in/v1/voices/pvc/{voice_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));