Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
/v1/audio/speech
Synopsis
- data CreateSpeech = CreateSpeech {}
- _CreateSpeech :: CreateSpeech
- data Voice
- data Format
- data ContentType = ContentType
- type API = "speech" :> (ReqBody '[JSON] CreateSpeech :> Post '[ContentType] ByteString)
Main types
data CreateSpeech Source #
Request body for /v1/audio/speech
Instances
_CreateSpeech :: CreateSpeech Source #
Default CreateSpeech
Other types
The voice to use when generating the audio
Previews of the voices are available in the Text to speech guide.
Instances
ToJSON Voice Source # | |
Bounded Voice Source # | |
Enum Voice Source # | |
Defined in OpenAI.V1.Audio.Speech | |
Generic Voice Source # | |
Show Voice Source # | |
type Rep Voice Source # | |
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)))) |
The format to audio in
Instances
ToJSON Format Source # | |
Bounded Format Source # | |
Enum Format Source # | |
Defined in OpenAI.V1.Audio.Speech | |
Generic Format Source # | |
Show Format Source # | |
type Rep Format Source # | |
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
data ContentType Source #
Content type
Instances
Accept ContentType Source # | |
Defined in OpenAI.V1.Audio.Speech contentType :: Proxy ContentType -> MediaType # | |
MimeUnrender ContentType ByteString Source # | |
Defined in OpenAI.V1.Audio.Speech mimeUnrender :: Proxy ContentType -> ByteString -> Either String ByteString # mimeUnrenderWithType :: Proxy ContentType -> MediaType -> ByteString -> Either String ByteString # |
type API = "speech" :> (ReqBody '[JSON] CreateSpeech :> Post '[ContentType] ByteString) Source #
Servant API