-
Notifications
You must be signed in to change notification settings - Fork 11
extend Audio & Models API's #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/** Generates audio from the input text. | ||
* | ||
* [[https://platform.openai.com/docs/api-reference/audio/createSpeech]] | ||
* | ||
* @param requestBody | ||
* Request body that will be used to create a speech. | ||
* | ||
* @return | ||
* The audio file content. | ||
*/ | ||
def createSpeech(requestBody: SpeechRequestBody): Request[Either[OpenAIException, InputStream]] = | ||
client.createSpeechAsInputStream(requestBody) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure does it make any sense to put here this method, as this is just delegation to client method, which doesn't do any further action.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it doesn't as this extension is about streaming, and there's no streaming here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(well, no ox-streaming, just regular Java InputStream)
e516d8f
to
82d87e4
Compare
No description provided.