Skip to content

OpenAI.AudioTranslation.CreateRaw

Andrew Lambert edited this page Jul 7, 2023 · 2 revisions

Method signatures

 Shared Function CreateRaw(Request As OpenAI.Request) As String
 Shared Function CreateRaw(AudioFile As FolderItem, ResponseFormat As String, Prompt As String = "", FileMIMEType As String = "") As String

Parameters

CreateRaw(OpenAI.Request)

Name Type Comment
Request Request An OpenAI request object.

CreateRaw(FolderItem, String, String, String, String)

Name Type Comment
AudioFile FolderItem The media file to translate into English.
ResponseFormat String The output format of the translation. One of: "json", "text", "srt", "verbose_json", or "vtt".
Prompt String Optional. A prompt to hint the AI about how to interpret the AudioFile.
FileMIMEType String Optional. Specifies the MIMEtype of the AudioFile.

Return value

Returns the raw response as a String. The format depends on the ResponseFormat specified by the request.

See also

Clone this wiki locally