Hi there,
I added an action “ConvertTextToSpeech” to a GPT I created.
This action use the following JSON schema that seems correct (the server URL is correct but I cannot include link in the forum)
{
“openapi”: “2020-12-31”,
“info”: {
“title”: “Convert Text to Speech Action”,
“description”: “Converts text into speech using OpenAI’s Text-to-Speech capacity.”,
“version”: “v1.0.0”
},
“servers”: [
{
“url”: “CANNOT ADD THE LINK”
}
],
“paths”: {
“/audio/speech”: {
“post”: {
“summary”: “Convert text to speech”,
“operationId”: “ConvertTextToSpeech”,
“requestBody”: {
“required”: true,
“content”: {
“application/json”: {
“schema”: {
“type”: “object”,
“properties”: {
“input”: {
“type”: “string”,
“description”: “The text to be converted into speech”
},
“voice”: {
“type”: “string”,
“description”: “The voice model to use (e.g., fable)”
},
“model”: {
“type”: “string”,
“description”: “The specific TTS model to use (e.g., tts-1)”
}
},
“required”: [“input”, “model”,“voice”],
“example”: {
“input”: “Bonjour, je suis votre assistant GPT”,
“voice”: “fable”,
“model”: “tts-1”
}
}
}
}
},
“responses”: {
“200”: {
“description”: “Successful response”,
“content”: {
“audio/mpeg”: {
“schema”: {
“type”: “string”,
“format”: “binary”,
“description”: “The generated speech audio in MP3 format”
}
}
}
},
“400”: {
“description”: “Bad request”,
“content”: {
“application/json”: {
“schema”: {
“type”: “object”,
“properties”: {
“error”: {
“type”: “string”,
“description”: “Description of the error”
}
}
}
}
}
}
}
}
}
}
}
When I test the action, the call seems OK but the response received is null
[debug] Calling HTTP endpoint
{ “domain”: “API OPEN AI”, “method”: “post”, “path”: “CANNOT ADD LINK”, “operation”: “ConvertTextToSpeech”, “operation_hash”: “50a0151c2dc51f31431651a873ca036c387c7c4b”, “is_consequential”: true, “params”: { “input”: “Hello, this is a test of the text-to-speech conversion.”, “voice”: “fable”, “model”: “tts-1” } }
[debug] Calling HTTP endpoint
{ “domain”: “API OPEN AI”, “method”: “post”, “path”: “CANNOT ADD LINK”, “operation”: “ConvertTextToSpeech”, “operation_hash”: “50a0151c2dc51f31431651a873ca036c387c7c4b”, “is_consequential”: true, “params”: { “input”: “Hello, this is a test of the text-to-speech conversion.”, “voice”: “fable”, “model”: “tts-1” } }
[debug] Response received
{}
I don’t know why, any help will be appreciated!
Many thanks,
JP