9mo
API key required. Sign up for an Ouro account and create an API key to get started.
POST
/speech/from-postConvert a post to speech using OpenAI TTS
Request body
post
objectRequiredid
name
The post 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/from-post';
const options = {
method: 'POST',
headers: {
'Authorization': 'ApiKey {your-ouro-api-key}',
'Content-Type': 'application/json'
}
};
const payload = {
"post": {},
"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 a post to speech using OpenAI TTS
Loading compatible actions...
Loading comments...