openai-1.0.0: Servant bindings to OpenAI
Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenAI.V1.Audio.Transcriptions

Description

/v1/audio/transcriptions

To simplify things, this only supports the verbose_json response format and also only supports the segment granularity

Synopsis

Main types

data CreateTranscription Source #

Request body for /v1/audio/transcriptions

Instances

Instances details
Generic CreateTranscription Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

Associated Types

type Rep CreateTranscription :: Type -> Type #

Show CreateTranscription Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

ToMultipart Tmp CreateTranscription Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

type Rep CreateTranscription Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

type Rep CreateTranscription = D1 ('MetaData "CreateTranscription" "OpenAI.V1.Audio.Transcriptions" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "CreateTranscription" 'PrefixI 'True) ((S1 ('MetaSel ('Just "file") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "model") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Model)) :*: (S1 ('MetaSel ('Just "language") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "prompt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "temperature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double))))))

data TranscriptionObject Source #

Represents a verbose json transcription response returned by model, based on the provided input.

Constructors

TranscriptionObject 

Instances

Instances details
FromJSON TranscriptionObject Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

Generic TranscriptionObject Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

Associated Types

type Rep TranscriptionObject :: Type -> Type #

Show TranscriptionObject Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

type Rep TranscriptionObject Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

type Rep TranscriptionObject = D1 ('MetaData "TranscriptionObject" "OpenAI.V1.Audio.Transcriptions" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "TranscriptionObject" 'PrefixI 'True) ((S1 ('MetaSel ('Just "language") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double))) :*: (S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "segments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Vector Segment)))))

Other types

data Segment Source #

Segment of the transcribed text and its corresponding details

Instances

Instances details
FromJSON Segment Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

Generic Segment Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

Associated Types

type Rep Segment :: Type -> Type #

Methods

from :: Segment -> Rep Segment x #

to :: Rep Segment x -> Segment #

Show Segment Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

type Rep Segment Source # 
Instance details

Defined in OpenAI.V1.Audio.Transcriptions

Servant