Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- Errors
- UnsupportedPlsLanguageException
- InvalidSsmlException
- InvalidSampleRateException
- MaxLexiconsNumberExceededException
- TextLengthExceededException
- MaxLexemeLengthExceededException
- InvalidLexiconException
- ServiceFailureException
- UnsupportedPlsAlphabetException
- InvalidNextTokenException
- LexiconSizeExceededException
- LexiconNotFoundException
- Waiters
- Operations
- Types
Amazon Polly is a web service that makes it easy to synthesize speech from text.
The Amazon Polly service provides API operations for synthesizing high-quality speech from plain text and Speech Synthesis Markup Language (SSML), along with managing pronunciations lexicons that enable you to get the best results for your application domain.
- polly :: Service
- _UnsupportedPlsLanguageException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidSsmlException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidSampleRateException :: AsError a => Getting (First ServiceError) a ServiceError
- _MaxLexiconsNumberExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _TextLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _MaxLexemeLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidLexiconException :: AsError a => Getting (First ServiceError) a ServiceError
- _ServiceFailureException :: AsError a => Getting (First ServiceError) a ServiceError
- _UnsupportedPlsAlphabetException :: AsError a => Getting (First ServiceError) a ServiceError
- _InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError
- _LexiconSizeExceededException :: AsError a => Getting (First ServiceError) a ServiceError
- _LexiconNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError
- module Network.AWS.Polly.GetLexicon
- module Network.AWS.Polly.DescribeVoices
- module Network.AWS.Polly.ListLexicons
- module Network.AWS.Polly.SynthesizeSpeech
- module Network.AWS.Polly.PutLexicon
- module Network.AWS.Polly.DeleteLexicon
- data Gender
- data LanguageCode
- data OutputFormat
- data TextType
- data VoiceId
- = Amy
- | Astrid
- | Brian
- | Carla
- | Carmen
- | Celine
- | Chantal
- | Conchita
- | Cristiano
- | Dora
- | Emma
- | Enrique
- | Ewa
- | Filiz
- | Geraint
- | Giorgio
- | Gwyneth
- | Hans
- | Ines
- | Ivy
- | Jacek
- | Jan
- | Joanna
- | Joey
- | Justin
- | Karl
- | Kendra
- | Kimberly
- | Liv
- | Lotte
- | Mads
- | Maja
- | Marlene
- | Mathieu
- | Maxim
- | Miguel
- | Mizuki
- | Naja
- | Nicole
- | Penelope
- | Raveena
- | Ricardo
- | Ruben
- | Russell
- | Salli
- | Tatyana
- | Vitoria
- data Lexicon
- lexicon :: Lexicon
- lContent :: Lens' Lexicon (Maybe Text)
- lName :: Lens' Lexicon (Maybe Text)
- data LexiconAttributes
- lexiconAttributes :: LexiconAttributes
- laLanguageCode :: Lens' LexiconAttributes (Maybe LanguageCode)
- laSize :: Lens' LexiconAttributes (Maybe Int)
- laLexemesCount :: Lens' LexiconAttributes (Maybe Int)
- laLexiconARN :: Lens' LexiconAttributes (Maybe Text)
- laAlphabet :: Lens' LexiconAttributes (Maybe Text)
- laLastModified :: Lens' LexiconAttributes (Maybe UTCTime)
- data LexiconDescription
- lexiconDescription :: LexiconDescription
- ldAttributes :: Lens' LexiconDescription (Maybe LexiconAttributes)
- ldName :: Lens' LexiconDescription (Maybe Text)
- data Voice
- voice :: Voice
- vLanguageCode :: Lens' Voice (Maybe LanguageCode)
- vLanguageName :: Lens' Voice (Maybe Text)
- vGender :: Lens' Voice (Maybe Gender)
- vName :: Lens' Voice (Maybe Text)
- vId :: Lens' Voice (Maybe VoiceId)
Service Configuration
Errors
Error matchers are designed for use with the functions provided by
Control.Exception.Lens.
This allows catching (and rethrowing) service specific errors returned
by Polly
.
UnsupportedPlsLanguageException
_UnsupportedPlsLanguageException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The language specified in the lexicon is unsupported. For a list of supported languages, see Lexicon Attributes .
InvalidSsmlException
_InvalidSsmlException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, and then try again.
InvalidSampleRateException
_InvalidSampleRateException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The specified sample rate is not valid.
MaxLexiconsNumberExceededException
_MaxLexiconsNumberExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The maximum number of lexicons would be exceeded by this operation.
TextLengthExceededException
_TextLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The value of the Text parameter is longer than the accepted limits. The limit for input text is a maximum of 3000 characters total, of which no more than 1500 can be billed characters. SSML tags are not counted as billed characters.
MaxLexemeLengthExceededException
_MaxLexemeLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The maximum size of the lexeme would be exceeded by this operation.
InvalidLexiconException
_InvalidLexiconException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is spelled correctly, and then try again.
ServiceFailureException
_ServiceFailureException :: AsError a => Getting (First ServiceError) a ServiceError Source #
An unknown condition has caused a service failure.
UnsupportedPlsAlphabetException
_UnsupportedPlsAlphabetException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The alphabet specified by the lexicon is not a supported alphabet. Valid values are x-sampa
and ipa
.
InvalidNextTokenException
_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The NextToken is invalid. Verify that it's spelled correctly, and then try again.
LexiconSizeExceededException
_LexiconSizeExceededException :: AsError a => Getting (First ServiceError) a ServiceError Source #
The maximum size of the specified lexicon would be exceeded by this operation.
LexiconNotFoundException
_LexiconNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError Source #
Amazon Polly can't find the specified lexicon. This could be caused by a lexicon that is missing, its name is misspelled or specifying a lexicon that is in a different region.
Verify that the lexicon exists, is in the region (see ListLexicons
) and that you spelled its name is spelled correctly. Then try again.
Waiters
Waiters poll by repeatedly sending a request until some remote success condition
configured by the Wait
specification is fulfilled. The Wait
specification
determines how many attempts should be made, in addition to delay and retry strategies.
Operations
Some AWS operations return results that are incomplete and require subsequent
requests in order to obtain the entire result set. The process of sending
subsequent requests to continue where a previous request left off is called
pagination. For example, the ListObjects
operation of Amazon S3 returns up to
1000 objects at a time, and you must send subsequent requests with the
appropriate Marker in order to retrieve the next page of results.
Operations that have an AWSPager
instance can transparently perform subsequent
requests, correctly setting Markers and other request facets to iterate through
the entire result set of a truncated API operation. Operations which support
this have an additional note in the documentation.
Many operations have the ability to filter results on the server side. See the individual operation parameters for details.
GetLexicon
module Network.AWS.Polly.GetLexicon
DescribeVoices
ListLexicons
SynthesizeSpeech
PutLexicon
module Network.AWS.Polly.PutLexicon
DeleteLexicon
Types
Gender
LanguageCode
data LanguageCode Source #
CyGb | |
DaDk | |
DeDe | |
EnAu | |
EnGb | |
EnGbWls | |
EnIn | |
EnUs | |
EsEs | |
EsUs | |
FrCa | |
FrFr | |
IsIs | |
ItIt | |
JaJp | |
NbNo | |
NlNl | |
PlPl | |
PtBr | |
PtPt | |
RoRo | |
RuRu | |
SvSe | |
TrTr |
OutputFormat
data OutputFormat Source #
TextType
VoiceId
Lexicon
Provides lexicon name and lexicon content in string format. For more information, see Pronunciation Lexicon Specification (PLS) Version 1.0 .
See: lexicon
smart constructor.
lContent :: Lens' Lexicon (Maybe Text) Source #
Lexicon content in string format. The content of a lexicon must be in PLS format.
LexiconAttributes
data LexiconAttributes Source #
Contains metadata describing the lexicon such as the number of lexemes, language code, and so on. For more information, see Managing Lexicons .
See: lexiconAttributes
smart constructor.
lexiconAttributes :: LexiconAttributes Source #
Creates a value of LexiconAttributes
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
laLanguageCode
- Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.laSize
- Total size of the lexicon, in characters.laLexemesCount
- Number of lexemes in the lexicon.laLexiconARN
- Amazon Resource Name (ARN) of the lexicon.laAlphabet
- Phonetic alphabet used in the lexicon. Valid values areipa
andx-sampa
.laLastModified
- Date lexicon was last modified (a timestamp value).
laLanguageCode :: Lens' LexiconAttributes (Maybe LanguageCode) Source #
Language code that the lexicon applies to. A lexicon with a language code such as "en" would be applied to all English languages (en-GB, en-US, en-AUS, en-WLS, and so on.
laLexemesCount :: Lens' LexiconAttributes (Maybe Int) Source #
Number of lexemes in the lexicon.
laLexiconARN :: Lens' LexiconAttributes (Maybe Text) Source #
Amazon Resource Name (ARN) of the lexicon.
laAlphabet :: Lens' LexiconAttributes (Maybe Text) Source #
Phonetic alphabet used in the lexicon. Valid values are ipa
and x-sampa
.
laLastModified :: Lens' LexiconAttributes (Maybe UTCTime) Source #
Date lexicon was last modified (a timestamp value).
LexiconDescription
data LexiconDescription Source #
Describes the content of the lexicon.
See: lexiconDescription
smart constructor.
lexiconDescription :: LexiconDescription Source #
Creates a value of LexiconDescription
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ldAttributes
- Provides lexicon metadata.ldName
- Name of the lexicon.
ldAttributes :: Lens' LexiconDescription (Maybe LexiconAttributes) Source #
Provides lexicon metadata.
Voice
Description of the voice.
See: voice
smart constructor.
Creates a value of Voice
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
vLanguageCode
- Language code of the voice.vLanguageName
- Human readable name of the language in English.vGender
- Gender of the voice.vName
- Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.vId
- Amazon Polly assigned voice ID. This is the ID that you specify when calling theSynthesizeSpeech
operation.
vLanguageCode :: Lens' Voice (Maybe LanguageCode) Source #
Language code of the voice.