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

OpenAI.V1.Audio.Speech

Description

/v1/audio/speech
Synopsis

Main types

data CreateSpeech Source #

Request body for /v1/audio/speech

Instances

Instances details
ToJSON CreateSpeech Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Generic CreateSpeech Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Associated Types

type Rep CreateSpeech :: Type -> Type #

Show CreateSpeech Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

type Rep CreateSpeech Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Other types

data Voice Source #

The voice to use when generating the audio

Previews of the voices are available in the Text to speech guide.

Constructors

Alloy 
Echo 
Fable 
Onyx 
Nova 
Shimmer 

Instances

Instances details
ToJSON Voice Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Bounded Voice Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Enum Voice Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Generic Voice Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Associated Types

type Rep Voice :: Type -> Type #

Methods

from :: Voice -> Rep Voice x #

to :: Rep Voice x -> Voice #

Show Voice Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Methods

showsPrec :: Int -> Voice -> ShowS #

show :: Voice -> String #

showList :: [Voice] -> ShowS #

type Rep Voice Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

type Rep Voice = D1 ('MetaData "Voice" "OpenAI.V1.Audio.Speech" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) ((C1 ('MetaCons "Alloy" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Echo" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Fable" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "Onyx" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Nova" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Shimmer" 'PrefixI 'False) (U1 :: Type -> Type))))

data Format Source #

The format to audio in

Constructors

MP3 
Opus 
AAC 
FLAC 
WAV 
PCM 

Instances

Instances details
ToJSON Format Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Bounded Format Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Enum Format Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Generic Format Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

Associated Types

type Rep Format :: Type -> Type #

Methods

from :: Format -> Rep Format x #

to :: Rep Format x -> Format #

Show Format Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

type Rep Format Source # 
Instance details

Defined in OpenAI.V1.Audio.Speech

type Rep Format = D1 ('MetaData "Format" "OpenAI.V1.Audio.Speech" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) ((C1 ('MetaCons "MP3" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Opus" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "AAC" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "FLAC" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "WAV" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "PCM" 'PrefixI 'False) (U1 :: Type -> Type))))

Servant

type API = "speech" :> (ReqBody '[JSON] CreateSpeech :> Post '[ContentType] ByteString) Source #

Servant API