Skip to content

OpenAI.AudioTranscription

Andrew Lambert edited this page Jul 14, 2024 · 6 revisions

OpenAI.AudioTranscription

Class Declaration

 Protected Class AudioTranscription
 Inherits OpenAI.Response

Remarks

This class represents an API audio transcription response. Refer to the OpenAI documentation on the /v1/audio/transcriptions endpoint for further details.

Example

This example uploads a file for transcription:

 OpenAI.APIKey = "YOUR API KEY"
 Dim file As FolderItem = SpecialFolder.Desktop.Child("speech.mp3")
 Dim reply As OpenAI.Response = OpenAI.AudioTranscription.Create(file)
 Dim transcript As String = reply.GetResult()

This example requests the output in raw SRT (subtitles file) format.

 OpenAI.APIKey = "YOUR API KEY"
 Dim file As FolderItem = SpecialFolder.Desktop.Child("speech.mp3")
 Dim transcript As String = OpenAI.AudioTranscription.CreateRaw(file, "srt")

Methods

Properties

Shared methods

Shared properties

Clone this wiki locally