9mo
API key required. Sign up for an Ouro account and create an API key to get started.
POST
/speech/generateConvert text to speech using OpenAI TTS
Request body
text
stringRequiredThe text to convert to speech
model
stringDefaults to tts-1tts-1tts-1-hdThe TTS model to use
voice
stringDefaults to alloyalloyashcoralechofableonyxnovasageshimmerThe voice to use for the speech
const url = 'https://api.ouro.foundation/routes/mmoderwell/speech/generate';
const options = {
method: 'POST',
headers: {
'Authorization': 'ApiKey {your-ouro-api-key}',
'Content-Type': 'application/json'
}
};
const payload = {
"text": "example_string",
"model": "tts-1",
"voice": "alloy"
};
options.body = JSON.stringify(payload);
fetch(url, options)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));Convert text to speech using OpenAI TTS
Loading compatible actions...
Loading comments...