amazonka-polly (empty) → 1.4.5
raw patch · 32 files changed
+2622/−0 lines, 32 filesdep +amazonka-coredep +amazonka-pollydep +amazonka-testsetup-changed
Dependencies added: amazonka-core, amazonka-polly, amazonka-test, base, bytestring, tasty, tasty-hunit, text, time, unordered-containers
Files
- LICENSE +367/−0
- README.md +45/−0
- Setup.hs +2/−0
- amazonka-polly.cabal +86/−0
- fixture/DeleteLexicon.yaml +10/−0
- fixture/DeleteLexiconResponse.proto +0/−0
- fixture/DescribeVoices.yaml +10/−0
- fixture/DescribeVoicesResponse.proto +0/−0
- fixture/GetLexicon.yaml +10/−0
- fixture/GetLexiconResponse.proto +0/−0
- fixture/ListLexicons.yaml +10/−0
- fixture/ListLexiconsResponse.proto +0/−0
- fixture/PutLexicon.yaml +10/−0
- fixture/PutLexiconResponse.proto +0/−0
- fixture/SynthesizeSpeech.yaml +10/−0
- fixture/SynthesizeSpeechResponse.proto +0/−0
- gen/Network/AWS/Polly.hs +173/−0
- gen/Network/AWS/Polly/DeleteLexicon.hs +114/−0
- gen/Network/AWS/Polly/DescribeVoices.hs +150/−0
- gen/Network/AWS/Polly/GetLexicon.hs +132/−0
- gen/Network/AWS/Polly/ListLexicons.hs +131/−0
- gen/Network/AWS/Polly/PutLexicon.hs +128/−0
- gen/Network/AWS/Polly/SynthesizeSpeech.hs +199/−0
- gen/Network/AWS/Polly/Types.hs +204/−0
- gen/Network/AWS/Polly/Types/Product.hs +260/−0
- gen/Network/AWS/Polly/Types/Sum.hs +360/−0
- gen/Network/AWS/Polly/Waiters.hs +21/−0
- src/.gitkeep +0/−0
- test/Main.hs +21/−0
- test/Test/AWS/Gen/Polly.hs +140/−0
- test/Test/AWS/Polly.hs +20/−0
- test/Test/AWS/Polly/Internal.hs +9/−0
+ LICENSE view
@@ -0,0 +1,367 @@+Mozilla Public License Version 2.0+==================================++1. Definitions+--------------++1.1. "Contributor"+ means each individual or legal entity that creates, contributes to+ the creation of, or owns Covered Software.++1.2. "Contributor Version"+ means the combination of the Contributions of others (if any) used+ by a Contributor and that particular Contributor's Contribution.++1.3. "Contribution"+ means Covered Software of a particular Contributor.++1.4. "Covered Software"+ means Source Code Form to which the initial Contributor has attached+ the notice in Exhibit A, the Executable Form of such Source Code+ Form, and Modifications of such Source Code Form, in each case+ including portions thereof.++1.5. "Incompatible With Secondary Licenses"+ means++ (a) that the initial Contributor has attached the notice described+ in Exhibit B to the Covered Software; or++ (b) that the Covered Software was made available under the terms of+ version 1.1 or earlier of the License, but not also under the+ terms of a Secondary License.++1.6. "Executable Form"+ means any form of the work other than Source Code Form.++1.7. "Larger Work"+ means a work that combines Covered Software with other material, in+ a separate file or files, that is not Covered Software.++1.8. "License"+ means this document.++1.9. "Licensable"+ means having the right to grant, to the maximum extent possible,+ whether at the time of the initial grant or subsequently, any and+ all of the rights conveyed by this License.++1.10. "Modifications"+ means any of the following:++ (a) any file in Source Code Form that results from an addition to,+ deletion from, or modification of the contents of Covered+ Software; or++ (b) any new file in Source Code Form that contains any Covered+ Software.++1.11. "Patent Claims" of a Contributor+ means any patent claim(s), including without limitation, method,+ process, and apparatus claims, in any patent Licensable by such+ Contributor that would be infringed, but for the grant of the+ License, by the making, using, selling, offering for sale, having+ made, import, or transfer of either its Contributions or its+ Contributor Version.++1.12. "Secondary License"+ means either the GNU General Public License, Version 2.0, the GNU+ Lesser General Public License, Version 2.1, the GNU Affero General+ Public License, Version 3.0, or any later versions of those+ licenses.++1.13. "Source Code Form"+ means the form of the work preferred for making modifications.++1.14. "You" (or "Your")+ means an individual or a legal entity exercising rights under this+ License. For legal entities, "You" includes any entity that+ controls, is controlled by, or is under common control with You. For+ purposes of this definition, "control" means (a) the power, direct+ or indirect, to cause the direction or management of such entity,+ whether by contract or otherwise, or (b) ownership of more than+ fifty percent (50%) of the outstanding shares or beneficial+ ownership of such entity.++2. License Grants and Conditions+--------------------------------++2.1. Grants++Each Contributor hereby grants You a world-wide, royalty-free,+non-exclusive license:++(a) under intellectual property rights (other than patent or trademark)+ Licensable by such Contributor to use, reproduce, make available,+ modify, display, perform, distribute, and otherwise exploit its+ Contributions, either on an unmodified basis, with Modifications, or+ as part of a Larger Work; and++(b) under Patent Claims of such Contributor to make, use, sell, offer+ for sale, have made, import, and otherwise transfer either its+ Contributions or its Contributor Version.++2.2. Effective Date++The licenses granted in Section 2.1 with respect to any Contribution+become effective for each Contribution on the date the Contributor first+distributes such Contribution.++2.3. Limitations on Grant Scope++The licenses granted in this Section 2 are the only rights granted under+this License. No additional rights or licenses will be implied from the+distribution or licensing of Covered Software under this License.+Notwithstanding Section 2.1(b) above, no patent license is granted by a+Contributor:++(a) for any code that a Contributor has removed from Covered Software;+ or++(b) for infringements caused by: (i) Your and any other third party's+ modifications of Covered Software, or (ii) the combination of its+ Contributions with other software (except as part of its Contributor+ Version); or++(c) under Patent Claims infringed by Covered Software in the absence of+ its Contributions.++This License does not grant any rights in the trademarks, service marks,+or logos of any Contributor (except as may be necessary to comply with+the notice requirements in Section 3.4).++2.4. Subsequent Licenses++No Contributor makes additional grants as a result of Your choice to+distribute the Covered Software under a subsequent version of this+License (see Section 10.2) or under the terms of a Secondary License (if+permitted under the terms of Section 3.3).++2.5. Representation++Each Contributor represents that the Contributor believes its+Contributions are its original creation(s) or it has sufficient rights+to grant the rights to its Contributions conveyed by this License.++2.6. Fair Use++This License is not intended to limit any rights You have under+applicable copyright doctrines of fair use, fair dealing, or other+equivalents.++2.7. Conditions++Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted+in Section 2.1.++3. Responsibilities+-------------------++3.1. Distribution of Source Form++All distribution of Covered Software in Source Code Form, including any+Modifications that You create or to which You contribute, must be under+the terms of this License. You must inform recipients that the Source+Code Form of the Covered Software is governed by the terms of this+License, and how they can obtain a copy of this License. You may not+attempt to alter or restrict the recipients' rights in the Source Code+Form.++3.2. Distribution of Executable Form++If You distribute Covered Software in Executable Form then:++(a) such Covered Software must also be made available in Source Code+ Form, as described in Section 3.1, and You must inform recipients of+ the Executable Form how they can obtain a copy of such Source Code+ Form by reasonable means in a timely manner, at a charge no more+ than the cost of distribution to the recipient; and++(b) You may distribute such Executable Form under the terms of this+ License, or sublicense it under different terms, provided that the+ license for the Executable Form does not attempt to limit or alter+ the recipients' rights in the Source Code Form under this License.++3.3. Distribution of a Larger Work++You may create and distribute a Larger Work under terms of Your choice,+provided that You also comply with the requirements of this License for+the Covered Software. If the Larger Work is a combination of Covered+Software with a work governed by one or more Secondary Licenses, and the+Covered Software is not Incompatible With Secondary Licenses, this+License permits You to additionally distribute such Covered Software+under the terms of such Secondary License(s), so that the recipient of+the Larger Work may, at their option, further distribute the Covered+Software under the terms of either this License or such Secondary+License(s).++3.4. Notices++You may not remove or alter the substance of any license notices+(including copyright notices, patent notices, disclaimers of warranty,+or limitations of liability) contained within the Source Code Form of+the Covered Software, except that You may alter any license notices to+the extent required to remedy known factual inaccuracies.++3.5. Application of Additional Terms++You may choose to offer, and to charge a fee for, warranty, support,+indemnity or liability obligations to one or more recipients of Covered+Software. However, You may do so only on Your own behalf, and not on+behalf of any Contributor. You must make it absolutely clear that any+such warranty, support, indemnity, or liability obligation is offered by+You alone, and You hereby agree to indemnify every Contributor for any+liability incurred by such Contributor as a result of warranty, support,+indemnity or liability terms You offer. You may include additional+disclaimers of warranty and limitations of liability specific to any+jurisdiction.++4. Inability to Comply Due to Statute or Regulation+---------------------------------------------------++If it is impossible for You to comply with any of the terms of this+License with respect to some or all of the Covered Software due to+statute, judicial order, or regulation then You must: (a) comply with+the terms of this License to the maximum extent possible; and (b)+describe the limitations and the code they affect. Such description must+be placed in a text file included with all distributions of the Covered+Software under this License. Except to the extent prohibited by statute+or regulation, such description must be sufficiently detailed for a+recipient of ordinary skill to be able to understand it.++5. Termination+--------------++5.1. The rights granted under this License will terminate automatically+if You fail to comply with any of its terms. However, if You become+compliant, then the rights granted under this License from a particular+Contributor are reinstated (a) provisionally, unless and until such+Contributor explicitly and finally terminates Your grants, and (b) on an+ongoing basis, if such Contributor fails to notify You of the+non-compliance by some reasonable means prior to 60 days after You have+come back into compliance. Moreover, Your grants from a particular+Contributor are reinstated on an ongoing basis if such Contributor+notifies You of the non-compliance by some reasonable means, this is the+first time You have received notice of non-compliance with this License+from such Contributor, and You become compliant prior to 30 days after+Your receipt of the notice.++5.2. If You initiate litigation against any entity by asserting a patent+infringement claim (excluding declaratory judgment actions,+counter-claims, and cross-claims) alleging that a Contributor Version+directly or indirectly infringes any patent, then the rights granted to+You by any and all Contributors for the Covered Software under Section+2.1 of this License shall terminate.++5.3. In the event of termination under Sections 5.1 or 5.2 above, all+end user license agreements (excluding distributors and resellers) which+have been validly granted by You or Your distributors under this License+prior to termination shall survive termination.++************************************************************************+* *+* 6. Disclaimer of Warranty *+* ------------------------- *+* *+* Covered Software is provided under this License on an "as is" *+* basis, without warranty of any kind, either expressed, implied, or *+* statutory, including, without limitation, warranties that the *+* Covered Software is free of defects, merchantable, fit for a *+* particular purpose or non-infringing. The entire risk as to the *+* quality and performance of the Covered Software is with You. *+* Should any Covered Software prove defective in any respect, You *+* (not any Contributor) assume the cost of any necessary servicing, *+* repair, or correction. This disclaimer of warranty constitutes an *+* essential part of this License. No use of any Covered Software is *+* authorized under this License except under this disclaimer. *+* *+************************************************************************++************************************************************************+* *+* 7. Limitation of Liability *+* -------------------------- *+* *+* Under no circumstances and under no legal theory, whether tort *+* (including negligence), contract, or otherwise, shall any *+* Contributor, or anyone who distributes Covered Software as *+* permitted above, be liable to You for any direct, indirect, *+* special, incidental, or consequential damages of any character *+* including, without limitation, damages for lost profits, loss of *+* goodwill, work stoppage, computer failure or malfunction, or any *+* and all other commercial damages or losses, even if such party *+* shall have been informed of the possibility of such damages. This *+* limitation of liability shall not apply to liability for death or *+* personal injury resulting from such party's negligence to the *+* extent applicable law prohibits such limitation. Some *+* jurisdictions do not allow the exclusion or limitation of *+* incidental or consequential damages, so this exclusion and *+* limitation may not apply to You. *+* *+************************************************************************++8. Litigation+-------------++Any litigation relating to this License may be brought only in the+courts of a jurisdiction where the defendant maintains its principal+place of business and such litigation shall be governed by laws of that+jurisdiction, without reference to its conflict-of-law provisions.+Nothing in this Section shall prevent a party's ability to bring+cross-claims or counter-claims.++9. Miscellaneous+----------------++This License represents the complete agreement concerning the subject+matter hereof. If any provision of this License is held to be+unenforceable, such provision shall be reformed only to the extent+necessary to make it enforceable. Any law or regulation which provides+that the language of a contract shall be construed against the drafter+shall not be used to construe this License against a Contributor.++10. Versions of the License+---------------------------++10.1. New Versions++Mozilla Foundation is the license steward. Except as provided in Section+10.3, no one other than the license steward has the right to modify or+publish new versions of this License. Each version will be given a+distinguishing version number.++10.2. Effect of New Versions++You may distribute the Covered Software under the terms of the version+of the License under which You originally received the Covered Software,+or under the terms of any subsequent version published by the license+steward.++10.3. Modified Versions++If you create software not governed by this License, and you want to+create a new license for such software, you may create and use a+modified version of this License if you rename the license and remove+any references to the name of the license steward (except to note that+such modified license differs from this License).++10.4. Distributing Source Code Form that is Incompatible With Secondary+Licenses++If You choose to distribute Source Code Form that is Incompatible With+Secondary Licenses under the terms of this version of the License, the+notice described in Exhibit B of this License must be attached.++Exhibit A - Source Code Form License Notice+-------------------------------------------++ This Source Code Form is subject to the terms of the Mozilla Public+ License, v. 2.0. If a copy of the MPL was not distributed with this+ file, You can obtain one at http://mozilla.org/MPL/2.0/.++If it is not possible or desirable to put the notice in a particular+file, then You may include the notice in a location (such as a LICENSE+file in a relevant directory) where a recipient would be likely to look+for such a notice.++You may add additional accurate notices of copyright ownership.
+ README.md view
@@ -0,0 +1,45 @@+# Amazon Polly SDK++* [Version](#version)+* [Description](#description)+* [Contribute](#contribute)+* [Licence](#licence)+++## Version++`1.4.5`+++## Description++Documentation is available via [Hackage](http://hackage.haskell.org/package/amazonka-polly)+and the [AWS API Reference](https://aws.amazon.com/documentation/).++The types from this library are intended to be used with [amazonka](http://hackage.haskell.org/package/amazonka),+which provides mechanisms for specifying AuthN/AuthZ information, sending requests,+and receiving responses.++Lenses are used for constructing and manipulating types,+due to the depth of nesting of AWS types and transparency regarding+de/serialisation into more palatable Haskell values.+The provided lenses should be compatible with any of the major lens libraries+[lens](http://hackage.haskell.org/package/lens) or [lens-family-core](http://hackage.haskell.org/package/lens-family-core).++See [Network.AWS.Polly](http://hackage.haskell.org/package/amazonka-polly/docs/Network-AWS-Polly.html)+or [the AWS documentation](https://aws.amazon.com/documentation/) to get started.+++## Contribute++For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/brendanhay/amazonka/issues).++> _Note:_ this library is an auto-generated Haskell package. Please see `amazonka-gen` for more information.+++## Licence++`amazonka-polly` is released under the [Mozilla Public License Version 2.0](http://www.mozilla.org/MPL/).++Parts of the code are derived from AWS service descriptions, licensed under Apache 2.0.+Source files subject to this contain an additional licensing clause in their header.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ amazonka-polly.cabal view
@@ -0,0 +1,86 @@+name: amazonka-polly+version: 1.4.5+synopsis: Amazon Polly SDK.+homepage: https://github.com/brendanhay/amazonka+bug-reports: https://github.com/brendanhay/amazonka/issues+license: OtherLicense+license-file: LICENSE+author: Brendan Hay+maintainer: Brendan Hay <brendan.g.hay@gmail.com>+copyright: Copyright (c) 2013-2016 Brendan Hay+category: Network, AWS, Cloud, Distributed Computing+build-type: Simple+cabal-version: >= 1.10+extra-source-files: README.md fixture/*.yaml fixture/*.proto src/.gitkeep+description:+ The types from this library are intended to be used with+ <http://hackage.haskell.org/package/amazonka amazonka>, which provides+ mechanisms for specifying AuthN/AuthZ information, sending requests,+ and receiving responses.+ .+ Lenses are used for constructing and manipulating types,+ due to the depth of nesting of AWS types and transparency regarding+ de/serialisation into more palatable Haskell values.+ The provided lenses should be compatible with any of the major lens libraries+ such as <http://hackage.haskell.org/package/lens lens> or+ <http://hackage.haskell.org/package/lens-family-core lens-family-core>.+ .+ See "Network.AWS.Polly" or <https://aws.amazon.com/documentation/ the AWS documentation>+ to get started.++source-repository head+ type: git+ location: git://github.com/brendanhay/amazonka.git++library+ default-language: Haskell2010+ hs-source-dirs: src gen++ ghc-options: -Wall++ exposed-modules:+ Network.AWS.Polly+ , Network.AWS.Polly.DeleteLexicon+ , Network.AWS.Polly.DescribeVoices+ , Network.AWS.Polly.GetLexicon+ , Network.AWS.Polly.ListLexicons+ , Network.AWS.Polly.PutLexicon+ , Network.AWS.Polly.SynthesizeSpeech+ , Network.AWS.Polly.Types+ , Network.AWS.Polly.Waiters++ other-modules:+ Network.AWS.Polly.Types.Product+ , Network.AWS.Polly.Types.Sum++ build-depends:+ amazonka-core == 1.4.5.*+ , base >= 4.7 && < 5++test-suite amazonka-polly-test+ type: exitcode-stdio-1.0+ default-language: Haskell2010+ hs-source-dirs: test+ main-is: Main.hs++ ghc-options: -Wall -threaded++ -- This section is encoded by the template and any modules added by+ -- hand outside these namespaces will not correctly be added to the+ -- distribution package.+ other-modules:+ Test.AWS.Polly+ , Test.AWS.Gen.Polly+ , Test.AWS.Polly.Internal++ build-depends:+ amazonka-core == 1.4.5.*+ , amazonka-test == 1.4.5.*+ , amazonka-polly == 1.4.5.*+ , base+ , bytestring+ , tasty+ , tasty-hunit+ , text+ , time+ , unordered-containers
+ fixture/DeleteLexicon.yaml view
@@ -0,0 +1,10 @@+---+method: DELETE+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/polly/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: polly.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DeleteLexiconResponse.proto view
+ fixture/DescribeVoices.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/polly/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: polly.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/DescribeVoicesResponse.proto view
+ fixture/GetLexicon.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/polly/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: polly.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/GetLexiconResponse.proto view
+ fixture/ListLexicons.yaml view
@@ -0,0 +1,10 @@+---+method: GET+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/polly/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: polly.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/ListLexiconsResponse.proto view
+ fixture/PutLexicon.yaml view
@@ -0,0 +1,10 @@+---+method: PUT+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/polly/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: polly.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/PutLexiconResponse.proto view
+ fixture/SynthesizeSpeech.yaml view
@@ -0,0 +1,10 @@+---+method: POST+headers:+ Authorization: AWS4-HMAC-SHA256 Credential=access/20091028/us-east-1/polly/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=?+ Host: polly.us-east-1.amazonaws.com+ Content-Type: application/x-www-form-urlencoded; charset=utf-8+ X-Amz-Content-SHA256: abcdef+ X-Amz-Date: 20091028T223200Z+body:+ ''
+ fixture/SynthesizeSpeechResponse.proto view
+ gen/Network/AWS/Polly.hs view
@@ -0,0 +1,173 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.Polly+-- 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)+--+-- 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.+--+module Network.AWS.Polly+ (+ -- * Service Configuration+ polly++ -- * Errors+ -- $errors++ -- ** UnsupportedPlsLanguageException+ , _UnsupportedPlsLanguageException++ -- ** InvalidSsmlException+ , _InvalidSsmlException++ -- ** InvalidSampleRateException+ , _InvalidSampleRateException++ -- ** MaxLexiconsNumberExceededException+ , _MaxLexiconsNumberExceededException++ -- ** TextLengthExceededException+ , _TextLengthExceededException++ -- ** MaxLexemeLengthExceededException+ , _MaxLexemeLengthExceededException++ -- ** InvalidLexiconException+ , _InvalidLexiconException++ -- ** ServiceFailureException+ , _ServiceFailureException++ -- ** UnsupportedPlsAlphabetException+ , _UnsupportedPlsAlphabetException++ -- ** InvalidNextTokenException+ , _InvalidNextTokenException++ -- ** LexiconSizeExceededException+ , _LexiconSizeExceededException++ -- ** LexiconNotFoundException+ , _LexiconNotFoundException++ -- * Waiters+ -- $waiters++ -- * Operations+ -- $operations++ -- ** GetLexicon+ , module Network.AWS.Polly.GetLexicon++ -- ** DescribeVoices+ , module Network.AWS.Polly.DescribeVoices++ -- ** ListLexicons+ , module Network.AWS.Polly.ListLexicons++ -- ** SynthesizeSpeech+ , module Network.AWS.Polly.SynthesizeSpeech++ -- ** PutLexicon+ , module Network.AWS.Polly.PutLexicon++ -- ** DeleteLexicon+ , module Network.AWS.Polly.DeleteLexicon++ -- * Types++ -- ** Gender+ , Gender (..)++ -- ** LanguageCode+ , LanguageCode (..)++ -- ** OutputFormat+ , OutputFormat (..)++ -- ** TextType+ , TextType (..)++ -- ** VoiceId+ , VoiceId (..)++ -- ** Lexicon+ , Lexicon+ , lexicon+ , lContent+ , lName++ -- ** LexiconAttributes+ , LexiconAttributes+ , lexiconAttributes+ , laLanguageCode+ , laSize+ , laLexemesCount+ , laLexiconARN+ , laAlphabet+ , laLastModified++ -- ** LexiconDescription+ , LexiconDescription+ , lexiconDescription+ , ldAttributes+ , ldName++ -- ** Voice+ , Voice+ , voice+ , vLanguageCode+ , vLanguageName+ , vGender+ , vName+ , vId+ ) where++import Network.AWS.Polly.DeleteLexicon+import Network.AWS.Polly.DescribeVoices+import Network.AWS.Polly.GetLexicon+import Network.AWS.Polly.ListLexicons+import Network.AWS.Polly.PutLexicon+import Network.AWS.Polly.SynthesizeSpeech+import Network.AWS.Polly.Types+import Network.AWS.Polly.Waiters++{- $errors+Error matchers are designed for use with the functions provided by+<http://hackage.haskell.org/package/lens/docs/Control-Exception-Lens.html Control.Exception.Lens>.+This allows catching (and rethrowing) service specific errors returned+by 'Polly'.+-}++{- $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.+-}++{- $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.+-}
+ gen/Network/AWS/Polly/DeleteLexicon.hs view
@@ -0,0 +1,114 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.Polly.DeleteLexicon+-- 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)+--+-- Deletes the specified pronunciation lexicon stored in an AWS Region. A lexicon which has been deleted is not available for speech synthesis, nor is it possible to retrieve it using either the @GetLexicon@ or @ListLexicon@ APIs.+--+--+-- For more information, see <http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html Managing Lexicons> .+--+module Network.AWS.Polly.DeleteLexicon+ (+ -- * Creating a Request+ deleteLexicon+ , DeleteLexicon+ -- * Request Lenses+ , dlName++ -- * Destructuring the Response+ , deleteLexiconResponse+ , DeleteLexiconResponse+ -- * Response Lenses+ , dlrsResponseStatus+ ) where++import Network.AWS.Lens+import Network.AWS.Polly.Types+import Network.AWS.Polly.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'deleteLexicon' smart constructor.+newtype DeleteLexicon = DeleteLexicon'+ { _dlName :: Sensitive Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DeleteLexicon' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dlName' - The name of the lexicon to delete. Must be an existing lexicon in the region.+deleteLexicon+ :: Text -- ^ 'dlName'+ -> DeleteLexicon+deleteLexicon pName_ =+ DeleteLexicon'+ { _dlName = _Sensitive # pName_+ }++-- | The name of the lexicon to delete. Must be an existing lexicon in the region.+dlName :: Lens' DeleteLexicon Text+dlName = lens _dlName (\ s a -> s{_dlName = a}) . _Sensitive;++instance AWSRequest DeleteLexicon where+ type Rs DeleteLexicon = DeleteLexiconResponse+ request = delete polly+ response+ = receiveEmpty+ (\ s h x ->+ DeleteLexiconResponse' <$> (pure (fromEnum s)))++instance Hashable DeleteLexicon++instance NFData DeleteLexicon++instance ToHeaders DeleteLexicon where+ toHeaders = const mempty++instance ToPath DeleteLexicon where+ toPath DeleteLexicon'{..}+ = mconcat ["/v1/lexicons/", toBS _dlName]++instance ToQuery DeleteLexicon where+ toQuery = const mempty++-- | /See:/ 'deleteLexiconResponse' smart constructor.+newtype DeleteLexiconResponse = DeleteLexiconResponse'+ { _dlrsResponseStatus :: Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DeleteLexiconResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dlrsResponseStatus' - -- | The response status code.+deleteLexiconResponse+ :: Int -- ^ 'dlrsResponseStatus'+ -> DeleteLexiconResponse+deleteLexiconResponse pResponseStatus_ =+ DeleteLexiconResponse'+ { _dlrsResponseStatus = pResponseStatus_+ }++-- | -- | The response status code.+dlrsResponseStatus :: Lens' DeleteLexiconResponse Int+dlrsResponseStatus = lens _dlrsResponseStatus (\ s a -> s{_dlrsResponseStatus = a});++instance NFData DeleteLexiconResponse
+ gen/Network/AWS/Polly/DescribeVoices.hs view
@@ -0,0 +1,150 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.Polly.DescribeVoices+-- 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)+--+-- Returns the list of voices that are available for use when requesting speech synthesis. Each voice speaks a specified language, is either male or female, and is identified by an ID, which is the ASCII version of the voice name.+--+--+-- When synthesizing speech ( @SynthesizeSpeech@ ), you provide the voice ID for the voice you want from the list of voices returned by @DescribeVoices@ .+--+-- For example, you want your news reader application to read news in a specific language, but giving a user the option to choose the voice. Using the @DescribeVoices@ operation you can provide the user with a list of available voices to select from.+--+-- You can optionally specify a language code to filter the available voices. For example, if you specify @en-US@ , the operation returns a list of all available US English voices.+--+-- This operation requires permissions to perform the @polly:DescribeVoices@ action.+--+module Network.AWS.Polly.DescribeVoices+ (+ -- * Creating a Request+ describeVoices+ , DescribeVoices+ -- * Request Lenses+ , dvLanguageCode+ , dvNextToken++ -- * Destructuring the Response+ , describeVoicesResponse+ , DescribeVoicesResponse+ -- * Response Lenses+ , dvrsNextToken+ , dvrsVoices+ , dvrsResponseStatus+ ) where++import Network.AWS.Lens+import Network.AWS.Polly.Types+import Network.AWS.Polly.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'describeVoices' smart constructor.+data DescribeVoices = DescribeVoices'+ { _dvLanguageCode :: !(Maybe LanguageCode)+ , _dvNextToken :: !(Maybe Text)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeVoices' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dvLanguageCode' - The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.+--+-- * 'dvNextToken' - An opaque pagination token returned from the previous @DescribeVoices@ operation. If present, this indicates where to continue the listing.+describeVoices+ :: DescribeVoices+describeVoices =+ DescribeVoices'+ { _dvLanguageCode = Nothing+ , _dvNextToken = Nothing+ }++-- | The language identification tag (ISO 639 code for the language name-ISO 3166 country code) for filtering the list of voices returned. If you don't specify this optional parameter, all available voices are returned.+dvLanguageCode :: Lens' DescribeVoices (Maybe LanguageCode)+dvLanguageCode = lens _dvLanguageCode (\ s a -> s{_dvLanguageCode = a});++-- | An opaque pagination token returned from the previous @DescribeVoices@ operation. If present, this indicates where to continue the listing.+dvNextToken :: Lens' DescribeVoices (Maybe Text)+dvNextToken = lens _dvNextToken (\ s a -> s{_dvNextToken = a});++instance AWSRequest DescribeVoices where+ type Rs DescribeVoices = DescribeVoicesResponse+ request = get polly+ response+ = receiveJSON+ (\ s h x ->+ DescribeVoicesResponse' <$>+ (x .?> "NextToken") <*> (x .?> "Voices" .!@ mempty)+ <*> (pure (fromEnum s)))++instance Hashable DescribeVoices++instance NFData DescribeVoices++instance ToHeaders DescribeVoices where+ toHeaders = const mempty++instance ToPath DescribeVoices where+ toPath = const "/v1/voices"++instance ToQuery DescribeVoices where+ toQuery DescribeVoices'{..}+ = mconcat+ ["LanguageCode" =: _dvLanguageCode,+ "NextToken" =: _dvNextToken]++-- | /See:/ 'describeVoicesResponse' smart constructor.+data DescribeVoicesResponse = DescribeVoicesResponse'+ { _dvrsNextToken :: !(Maybe Text)+ , _dvrsVoices :: !(Maybe [Voice])+ , _dvrsResponseStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'DescribeVoicesResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'dvrsNextToken' - The pagination token to use in the next request to continue the listing of voices. @NextToken@ is returned only if the response is truncated.+--+-- * 'dvrsVoices' - A list of voices with their properties.+--+-- * 'dvrsResponseStatus' - -- | The response status code.+describeVoicesResponse+ :: Int -- ^ 'dvrsResponseStatus'+ -> DescribeVoicesResponse+describeVoicesResponse pResponseStatus_ =+ DescribeVoicesResponse'+ { _dvrsNextToken = Nothing+ , _dvrsVoices = Nothing+ , _dvrsResponseStatus = pResponseStatus_+ }++-- | The pagination token to use in the next request to continue the listing of voices. @NextToken@ is returned only if the response is truncated.+dvrsNextToken :: Lens' DescribeVoicesResponse (Maybe Text)+dvrsNextToken = lens _dvrsNextToken (\ s a -> s{_dvrsNextToken = a});++-- | A list of voices with their properties.+dvrsVoices :: Lens' DescribeVoicesResponse [Voice]+dvrsVoices = lens _dvrsVoices (\ s a -> s{_dvrsVoices = a}) . _Default . _Coerce;++-- | -- | The response status code.+dvrsResponseStatus :: Lens' DescribeVoicesResponse Int+dvrsResponseStatus = lens _dvrsResponseStatus (\ s a -> s{_dvrsResponseStatus = a});++instance NFData DescribeVoicesResponse
+ gen/Network/AWS/Polly/GetLexicon.hs view
@@ -0,0 +1,132 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.Polly.GetLexicon+-- 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)+--+-- Returns the content of the specified pronunciation lexicon stored in an AWS Region. For more information, see <http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html Managing Lexicons> .+--+--+module Network.AWS.Polly.GetLexicon+ (+ -- * Creating a Request+ getLexicon+ , GetLexicon+ -- * Request Lenses+ , glName++ -- * Destructuring the Response+ , getLexiconResponse+ , GetLexiconResponse+ -- * Response Lenses+ , glrsLexiconAttributes+ , glrsLexicon+ , glrsResponseStatus+ ) where++import Network.AWS.Lens+import Network.AWS.Polly.Types+import Network.AWS.Polly.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'getLexicon' smart constructor.+newtype GetLexicon = GetLexicon'+ { _glName :: Sensitive Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'GetLexicon' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'glName' - Name of the lexicon.+getLexicon+ :: Text -- ^ 'glName'+ -> GetLexicon+getLexicon pName_ =+ GetLexicon'+ { _glName = _Sensitive # pName_+ }++-- | Name of the lexicon.+glName :: Lens' GetLexicon Text+glName = lens _glName (\ s a -> s{_glName = a}) . _Sensitive;++instance AWSRequest GetLexicon where+ type Rs GetLexicon = GetLexiconResponse+ request = get polly+ response+ = receiveJSON+ (\ s h x ->+ GetLexiconResponse' <$>+ (x .?> "LexiconAttributes") <*> (x .?> "Lexicon") <*>+ (pure (fromEnum s)))++instance Hashable GetLexicon++instance NFData GetLexicon++instance ToHeaders GetLexicon where+ toHeaders = const mempty++instance ToPath GetLexicon where+ toPath GetLexicon'{..}+ = mconcat ["/v1/lexicons/", toBS _glName]++instance ToQuery GetLexicon where+ toQuery = const mempty++-- | /See:/ 'getLexiconResponse' smart constructor.+data GetLexiconResponse = GetLexiconResponse'+ { _glrsLexiconAttributes :: !(Maybe LexiconAttributes)+ , _glrsLexicon :: !(Maybe Lexicon)+ , _glrsResponseStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'GetLexiconResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'glrsLexiconAttributes' - Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.+--+-- * 'glrsLexicon' - Lexicon object that provides name and the string content of the lexicon.+--+-- * 'glrsResponseStatus' - -- | The response status code.+getLexiconResponse+ :: Int -- ^ 'glrsResponseStatus'+ -> GetLexiconResponse+getLexiconResponse pResponseStatus_ =+ GetLexiconResponse'+ { _glrsLexiconAttributes = Nothing+ , _glrsLexicon = Nothing+ , _glrsResponseStatus = pResponseStatus_+ }++-- | Metadata of the lexicon, including phonetic alphabetic used, language code, lexicon ARN, number of lexemes defined in the lexicon, and size of lexicon in bytes.+glrsLexiconAttributes :: Lens' GetLexiconResponse (Maybe LexiconAttributes)+glrsLexiconAttributes = lens _glrsLexiconAttributes (\ s a -> s{_glrsLexiconAttributes = a});++-- | Lexicon object that provides name and the string content of the lexicon.+glrsLexicon :: Lens' GetLexiconResponse (Maybe Lexicon)+glrsLexicon = lens _glrsLexicon (\ s a -> s{_glrsLexicon = a});++-- | -- | The response status code.+glrsResponseStatus :: Lens' GetLexiconResponse Int+glrsResponseStatus = lens _glrsResponseStatus (\ s a -> s{_glrsResponseStatus = a});++instance NFData GetLexiconResponse
+ gen/Network/AWS/Polly/ListLexicons.hs view
@@ -0,0 +1,131 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.Polly.ListLexicons+-- 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)+--+-- Returns a list of pronunciation lexicons stored in an AWS Region. For more information, see <http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html Managing Lexicons> .+--+--+module Network.AWS.Polly.ListLexicons+ (+ -- * Creating a Request+ listLexicons+ , ListLexicons+ -- * Request Lenses+ , llNextToken++ -- * Destructuring the Response+ , listLexiconsResponse+ , ListLexiconsResponse+ -- * Response Lenses+ , llrsLexicons+ , llrsNextToken+ , llrsResponseStatus+ ) where++import Network.AWS.Lens+import Network.AWS.Polly.Types+import Network.AWS.Polly.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'listLexicons' smart constructor.+newtype ListLexicons = ListLexicons'+ { _llNextToken :: Maybe Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ListLexicons' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'llNextToken' - An opaque pagination token returned from previous @ListLexicons@ operation. If present, indicates where to continue the list of lexicons.+listLexicons+ :: ListLexicons+listLexicons =+ ListLexicons'+ { _llNextToken = Nothing+ }++-- | An opaque pagination token returned from previous @ListLexicons@ operation. If present, indicates where to continue the list of lexicons.+llNextToken :: Lens' ListLexicons (Maybe Text)+llNextToken = lens _llNextToken (\ s a -> s{_llNextToken = a});++instance AWSRequest ListLexicons where+ type Rs ListLexicons = ListLexiconsResponse+ request = get polly+ response+ = receiveJSON+ (\ s h x ->+ ListLexiconsResponse' <$>+ (x .?> "Lexicons" .!@ mempty) <*> (x .?> "NextToken")+ <*> (pure (fromEnum s)))++instance Hashable ListLexicons++instance NFData ListLexicons++instance ToHeaders ListLexicons where+ toHeaders = const mempty++instance ToPath ListLexicons where+ toPath = const "/v1/lexicons"++instance ToQuery ListLexicons where+ toQuery ListLexicons'{..}+ = mconcat ["NextToken" =: _llNextToken]++-- | /See:/ 'listLexiconsResponse' smart constructor.+data ListLexiconsResponse = ListLexiconsResponse'+ { _llrsLexicons :: !(Maybe [LexiconDescription])+ , _llrsNextToken :: !(Maybe Text)+ , _llrsResponseStatus :: !Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'ListLexiconsResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'llrsLexicons' - A list of lexicon names and attributes.+--+-- * 'llrsNextToken' - The pagination token to use in the next request to continue the listing of lexicons. @NextToken@ is returned only if the response is truncated.+--+-- * 'llrsResponseStatus' - -- | The response status code.+listLexiconsResponse+ :: Int -- ^ 'llrsResponseStatus'+ -> ListLexiconsResponse+listLexiconsResponse pResponseStatus_ =+ ListLexiconsResponse'+ { _llrsLexicons = Nothing+ , _llrsNextToken = Nothing+ , _llrsResponseStatus = pResponseStatus_+ }++-- | A list of lexicon names and attributes.+llrsLexicons :: Lens' ListLexiconsResponse [LexiconDescription]+llrsLexicons = lens _llrsLexicons (\ s a -> s{_llrsLexicons = a}) . _Default . _Coerce;++-- | The pagination token to use in the next request to continue the listing of lexicons. @NextToken@ is returned only if the response is truncated.+llrsNextToken :: Lens' ListLexiconsResponse (Maybe Text)+llrsNextToken = lens _llrsNextToken (\ s a -> s{_llrsNextToken = a});++-- | -- | The response status code.+llrsResponseStatus :: Lens' ListLexiconsResponse Int+llrsResponseStatus = lens _llrsResponseStatus (\ s a -> s{_llrsResponseStatus = a});++instance NFData ListLexiconsResponse
+ gen/Network/AWS/Polly/PutLexicon.hs view
@@ -0,0 +1,128 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.Polly.PutLexicon+-- 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)+--+-- Stores a pronunciation lexicon in an AWS Region. If a lexicon with the same name already exists in the region, it is overwritten by the new lexicon. Lexicon operations have eventual consistency, therefore, it might take some time before the lexicon is available to the SynthesizeSpeech operation.+--+--+-- For more information, see <http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html Managing Lexicons> .+--+module Network.AWS.Polly.PutLexicon+ (+ -- * Creating a Request+ putLexicon+ , PutLexicon+ -- * Request Lenses+ , plName+ , plContent++ -- * Destructuring the Response+ , putLexiconResponse+ , PutLexiconResponse+ -- * Response Lenses+ , plrsResponseStatus+ ) where++import Network.AWS.Lens+import Network.AWS.Polly.Types+import Network.AWS.Polly.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'putLexicon' smart constructor.+data PutLexicon = PutLexicon'+ { _plName :: !(Sensitive Text)+ , _plContent :: !Text+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'PutLexicon' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'plName' - Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.+--+-- * 'plContent' - Content of the PLS lexicon as string data.+putLexicon+ :: Text -- ^ 'plName'+ -> Text -- ^ 'plContent'+ -> PutLexicon+putLexicon pName_ pContent_ =+ PutLexicon'+ { _plName = _Sensitive # pName_+ , _plContent = pContent_+ }++-- | Name of the lexicon. The name must follow the regular express format [0-9A-Za-z]{1,20}. That is, the name is a case-sensitive alphanumeric string up to 20 characters long.+plName :: Lens' PutLexicon Text+plName = lens _plName (\ s a -> s{_plName = a}) . _Sensitive;++-- | Content of the PLS lexicon as string data.+plContent :: Lens' PutLexicon Text+plContent = lens _plContent (\ s a -> s{_plContent = a});++instance AWSRequest PutLexicon where+ type Rs PutLexicon = PutLexiconResponse+ request = putJSON polly+ response+ = receiveEmpty+ (\ s h x ->+ PutLexiconResponse' <$> (pure (fromEnum s)))++instance Hashable PutLexicon++instance NFData PutLexicon++instance ToHeaders PutLexicon where+ toHeaders = const mempty++instance ToJSON PutLexicon where+ toJSON PutLexicon'{..}+ = object (catMaybes [Just ("Content" .= _plContent)])++instance ToPath PutLexicon where+ toPath PutLexicon'{..}+ = mconcat ["/v1/lexicons/", toBS _plName]++instance ToQuery PutLexicon where+ toQuery = const mempty++-- | /See:/ 'putLexiconResponse' smart constructor.+newtype PutLexiconResponse = PutLexiconResponse'+ { _plrsResponseStatus :: Int+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'PutLexiconResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'plrsResponseStatus' - -- | The response status code.+putLexiconResponse+ :: Int -- ^ 'plrsResponseStatus'+ -> PutLexiconResponse+putLexiconResponse pResponseStatus_ =+ PutLexiconResponse'+ { _plrsResponseStatus = pResponseStatus_+ }++-- | -- | The response status code.+plrsResponseStatus :: Lens' PutLexiconResponse Int+plrsResponseStatus = lens _plrsResponseStatus (\ s a -> s{_plrsResponseStatus = a});++instance NFData PutLexiconResponse
+ gen/Network/AWS/Polly/SynthesizeSpeech.hs view
@@ -0,0 +1,199 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.Polly.SynthesizeSpeech+-- 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)+--+-- Synthesizes UTF-8 input, plain text or SSML, to a stream of bytes. SSML input must be valid, well-formed SSML. Some alphabets might not be available with all the voices (for example, Cyrillic might not be read at all by English voices) unless phoneme mapping is used. For more information, see <http://docs.aws.amazon.com/polly/latest/dg/how-text-to-speech-works.html How it Works> .+--+--+module Network.AWS.Polly.SynthesizeSpeech+ (+ -- * Creating a Request+ synthesizeSpeech+ , SynthesizeSpeech+ -- * Request Lenses+ , ssSampleRate+ , ssTextType+ , ssLexiconNames+ , ssOutputFormat+ , ssText+ , ssVoiceId++ -- * Destructuring the Response+ , synthesizeSpeechResponse+ , SynthesizeSpeechResponse+ -- * Response Lenses+ , ssrsRequestCharacters+ , ssrsContentType+ , ssrsResponseStatus+ , ssrsAudioStream+ ) where++import Network.AWS.Lens+import Network.AWS.Polly.Types+import Network.AWS.Polly.Types.Product+import Network.AWS.Prelude+import Network.AWS.Request+import Network.AWS.Response++-- | /See:/ 'synthesizeSpeech' smart constructor.+data SynthesizeSpeech = SynthesizeSpeech'+ { _ssSampleRate :: !(Maybe Text)+ , _ssTextType :: !(Maybe TextType)+ , _ssLexiconNames :: !(Maybe [Sensitive Text])+ , _ssOutputFormat :: !OutputFormat+ , _ssText :: !Text+ , _ssVoiceId :: !VoiceId+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'SynthesizeSpeech' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ssSampleRate' - The audio frequency specified in Hz. The valid values for @mp3@ and @ogg_vorbis@ are "8000", "16000", and "22050". The default value is "22050". Valid values for @pcm@ are "8000" and "16000" The default value is "16000".+--+-- * 'ssTextType' - Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see <http://docs.aws.amazon.com/polly/latest/dg/ssml.html Using SSML> .+--+-- * 'ssLexiconNames' - List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons are applied only if the language of the lexicon is the same as the language of the voice. For information about storing lexicons, see <http://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html PutLexicon> .+--+-- * 'ssOutputFormat' - The audio format in which the resulting stream will be encoded.+--+-- * 'ssText' - Input text to synthesize. If you specify @ssml@ as the @TextType@ , follow the SSML format for the input text.+--+-- * 'ssVoiceId' - Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the <http://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html DescribeVoices> operation.+synthesizeSpeech+ :: OutputFormat -- ^ 'ssOutputFormat'+ -> Text -- ^ 'ssText'+ -> VoiceId -- ^ 'ssVoiceId'+ -> SynthesizeSpeech+synthesizeSpeech pOutputFormat_ pText_ pVoiceId_ =+ SynthesizeSpeech'+ { _ssSampleRate = Nothing+ , _ssTextType = Nothing+ , _ssLexiconNames = Nothing+ , _ssOutputFormat = pOutputFormat_+ , _ssText = pText_+ , _ssVoiceId = pVoiceId_+ }++-- | The audio frequency specified in Hz. The valid values for @mp3@ and @ogg_vorbis@ are "8000", "16000", and "22050". The default value is "22050". Valid values for @pcm@ are "8000" and "16000" The default value is "16000".+ssSampleRate :: Lens' SynthesizeSpeech (Maybe Text)+ssSampleRate = lens _ssSampleRate (\ s a -> s{_ssSampleRate = a});++-- | Specifies whether the input text is plain text or SSML. The default value is plain text. For more information, see <http://docs.aws.amazon.com/polly/latest/dg/ssml.html Using SSML> .+ssTextType :: Lens' SynthesizeSpeech (Maybe TextType)+ssTextType = lens _ssTextType (\ s a -> s{_ssTextType = a});++-- | List of one or more pronunciation lexicon names you want the service to apply during synthesis. Lexicons are applied only if the language of the lexicon is the same as the language of the voice. For information about storing lexicons, see <http://docs.aws.amazon.com/polly/latest/dg/API_PutLexicon.html PutLexicon> .+ssLexiconNames :: Lens' SynthesizeSpeech [Text]+ssLexiconNames = lens _ssLexiconNames (\ s a -> s{_ssLexiconNames = a}) . _Default . _Coerce;++-- | The audio format in which the resulting stream will be encoded.+ssOutputFormat :: Lens' SynthesizeSpeech OutputFormat+ssOutputFormat = lens _ssOutputFormat (\ s a -> s{_ssOutputFormat = a});++-- | Input text to synthesize. If you specify @ssml@ as the @TextType@ , follow the SSML format for the input text.+ssText :: Lens' SynthesizeSpeech Text+ssText = lens _ssText (\ s a -> s{_ssText = a});++-- | Voice ID to use for the synthesis. You can get a list of available voice IDs by calling the <http://docs.aws.amazon.com/polly/latest/dg/API_DescribeVoices.html DescribeVoices> operation.+ssVoiceId :: Lens' SynthesizeSpeech VoiceId+ssVoiceId = lens _ssVoiceId (\ s a -> s{_ssVoiceId = a});++instance AWSRequest SynthesizeSpeech where+ type Rs SynthesizeSpeech = SynthesizeSpeechResponse+ request = postJSON polly+ response+ = receiveBody+ (\ s h x ->+ SynthesizeSpeechResponse' <$>+ (h .#? "x-amzn-RequestCharacters") <*>+ (h .#? "Content-Type")+ <*> (pure (fromEnum s))+ <*> (pure x))++instance Hashable SynthesizeSpeech++instance NFData SynthesizeSpeech++instance ToHeaders SynthesizeSpeech where+ toHeaders = const mempty++instance ToJSON SynthesizeSpeech where+ toJSON SynthesizeSpeech'{..}+ = object+ (catMaybes+ [("SampleRate" .=) <$> _ssSampleRate,+ ("TextType" .=) <$> _ssTextType,+ ("LexiconNames" .=) <$> _ssLexiconNames,+ Just ("OutputFormat" .= _ssOutputFormat),+ Just ("Text" .= _ssText),+ Just ("VoiceId" .= _ssVoiceId)])++instance ToPath SynthesizeSpeech where+ toPath = const "/v1/speech"++instance ToQuery SynthesizeSpeech where+ toQuery = const mempty++-- | /See:/ 'synthesizeSpeechResponse' smart constructor.+data SynthesizeSpeechResponse = SynthesizeSpeechResponse'+ { _ssrsRequestCharacters :: !(Maybe Int)+ , _ssrsContentType :: !(Maybe Text)+ , _ssrsResponseStatus :: !Int+ , _ssrsAudioStream :: !RsBody+ } deriving (Show,Generic)++-- | Creates a value of 'SynthesizeSpeechResponse' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'ssrsRequestCharacters' - Number of characters synthesized.+--+-- * 'ssrsContentType' - Specifies the type audio stream. This should reflect the @OutputFormat@ parameter in your request. * If you request @mp3@ as the @OutputFormat@ , the @ContentType@ returned is audio/mpeg. * If you request @ogg_vorbis@ as the @OutputFormat@ , the @ContentType@ returned is audio/ogg. * If you request @pcm@ as the @OutputFormat@ , the @ContentType@ returned is audio/pcm.+--+-- * 'ssrsResponseStatus' - -- | The response status code.+--+-- * 'ssrsAudioStream' - Stream containing the synthesized speech.+synthesizeSpeechResponse+ :: Int -- ^ 'ssrsResponseStatus'+ -> RsBody -- ^ 'ssrsAudioStream'+ -> SynthesizeSpeechResponse+synthesizeSpeechResponse pResponseStatus_ pAudioStream_ =+ SynthesizeSpeechResponse'+ { _ssrsRequestCharacters = Nothing+ , _ssrsContentType = Nothing+ , _ssrsResponseStatus = pResponseStatus_+ , _ssrsAudioStream = pAudioStream_+ }++-- | Number of characters synthesized.+ssrsRequestCharacters :: Lens' SynthesizeSpeechResponse (Maybe Int)+ssrsRequestCharacters = lens _ssrsRequestCharacters (\ s a -> s{_ssrsRequestCharacters = a});++-- | Specifies the type audio stream. This should reflect the @OutputFormat@ parameter in your request. * If you request @mp3@ as the @OutputFormat@ , the @ContentType@ returned is audio/mpeg. * If you request @ogg_vorbis@ as the @OutputFormat@ , the @ContentType@ returned is audio/ogg. * If you request @pcm@ as the @OutputFormat@ , the @ContentType@ returned is audio/pcm.+ssrsContentType :: Lens' SynthesizeSpeechResponse (Maybe Text)+ssrsContentType = lens _ssrsContentType (\ s a -> s{_ssrsContentType = a});++-- | -- | The response status code.+ssrsResponseStatus :: Lens' SynthesizeSpeechResponse Int+ssrsResponseStatus = lens _ssrsResponseStatus (\ s a -> s{_ssrsResponseStatus = a});++-- | Stream containing the synthesized speech.+ssrsAudioStream :: Lens' SynthesizeSpeechResponse RsBody+ssrsAudioStream = lens _ssrsAudioStream (\ s a -> s{_ssrsAudioStream = a});
+ gen/Network/AWS/Polly/Types.hs view
@@ -0,0 +1,204 @@+{-# LANGUAGE OverloadedStrings #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.Polly.Types+-- 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)+--+module Network.AWS.Polly.Types+ (+ -- * Service Configuration+ polly++ -- * Errors+ , _UnsupportedPlsLanguageException+ , _InvalidSsmlException+ , _InvalidSampleRateException+ , _MaxLexiconsNumberExceededException+ , _TextLengthExceededException+ , _MaxLexemeLengthExceededException+ , _InvalidLexiconException+ , _ServiceFailureException+ , _UnsupportedPlsAlphabetException+ , _InvalidNextTokenException+ , _LexiconSizeExceededException+ , _LexiconNotFoundException++ -- * Gender+ , Gender (..)++ -- * LanguageCode+ , LanguageCode (..)++ -- * OutputFormat+ , OutputFormat (..)++ -- * TextType+ , TextType (..)++ -- * VoiceId+ , VoiceId (..)++ -- * Lexicon+ , Lexicon+ , lexicon+ , lContent+ , lName++ -- * LexiconAttributes+ , LexiconAttributes+ , lexiconAttributes+ , laLanguageCode+ , laSize+ , laLexemesCount+ , laLexiconARN+ , laAlphabet+ , laLastModified++ -- * LexiconDescription+ , LexiconDescription+ , lexiconDescription+ , ldAttributes+ , ldName++ -- * Voice+ , Voice+ , voice+ , vLanguageCode+ , vLanguageName+ , vGender+ , vName+ , vId+ ) where++import Network.AWS.Lens+import Network.AWS.Polly.Types.Product+import Network.AWS.Polly.Types.Sum+import Network.AWS.Prelude+import Network.AWS.Sign.V4++-- | API version @2016-06-10@ of the Amazon Polly SDK configuration.+polly :: Service+polly =+ Service+ { _svcAbbrev = "Polly"+ , _svcSigner = v4+ , _svcPrefix = "polly"+ , _svcVersion = "2016-06-10"+ , _svcEndpoint = defaultEndpoint polly+ , _svcTimeout = Just 70+ , _svcCheck = statusSuccess+ , _svcError = parseJSONError "Polly"+ , _svcRetry = retry+ }+ where+ retry =+ Exponential+ { _retryBase = 5.0e-2+ , _retryGrowth = 2+ , _retryAttempts = 5+ , _retryCheck = check+ }+ check e+ | has (hasStatus 429) e = Just "too_many_requests"+ | has (hasCode "ThrottlingException" . hasStatus 400) e =+ Just "throttling_exception"+ | has (hasCode "Throttling" . hasStatus 400) e = Just "throttling"+ | has (hasStatus 504) e = Just "gateway_timeout"+ | has (hasStatus 502) e = Just "bad_gateway"+ | has (hasStatus 503) e = Just "service_unavailable"+ | has (hasStatus 500) e = Just "general_server_error"+ | has (hasStatus 509) e = Just "limit_exceeded"+ | otherwise = Nothing++-- | The language specified in the lexicon is unsupported. For a list of supported languages, see <http://docs.aws.amazon.com/polly/latest/dg/API_LexiconAttributes.html Lexicon Attributes> .+--+--+_UnsupportedPlsLanguageException :: AsError a => Getting (First ServiceError) a ServiceError+_UnsupportedPlsLanguageException =+ _ServiceError . hasStatus 400 . hasCode "UnsupportedPlsLanguageException"++-- | The SSML you provided is invalid. Verify the SSML syntax, spelling of tags and values, and then try again.+--+--+_InvalidSsmlException :: AsError a => Getting (First ServiceError) a ServiceError+_InvalidSsmlException =+ _ServiceError . hasStatus 400 . hasCode "InvalidSsmlException"++-- | The specified sample rate is not valid.+--+--+_InvalidSampleRateException :: AsError a => Getting (First ServiceError) a ServiceError+_InvalidSampleRateException =+ _ServiceError . hasStatus 400 . hasCode "InvalidSampleRateException"++-- | The maximum number of lexicons would be exceeded by this operation.+--+--+_MaxLexiconsNumberExceededException :: AsError a => Getting (First ServiceError) a ServiceError+_MaxLexiconsNumberExceededException =+ _ServiceError .+ hasStatus 400 . hasCode "MaxLexiconsNumberExceededException"++-- | 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.+--+--+_TextLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError+_TextLengthExceededException =+ _ServiceError . hasStatus 400 . hasCode "TextLengthExceededException"++-- | The maximum size of the lexeme would be exceeded by this operation.+--+--+_MaxLexemeLengthExceededException :: AsError a => Getting (First ServiceError) a ServiceError+_MaxLexemeLengthExceededException =+ _ServiceError . hasStatus 400 . hasCode "MaxLexemeLengthExceededException"++-- | Amazon Polly can't find the specified lexicon. Verify that the lexicon's name is spelled correctly, and then try again.+--+--+_InvalidLexiconException :: AsError a => Getting (First ServiceError) a ServiceError+_InvalidLexiconException =+ _ServiceError . hasStatus 400 . hasCode "InvalidLexiconException"++-- | An unknown condition has caused a service failure.+--+--+_ServiceFailureException :: AsError a => Getting (First ServiceError) a ServiceError+_ServiceFailureException =+ _ServiceError . hasStatus 500 . hasCode "ServiceFailureException"++-- | The alphabet specified by the lexicon is not a supported alphabet. Valid values are @x-sampa@ and @ipa@ .+--+--+_UnsupportedPlsAlphabetException :: AsError a => Getting (First ServiceError) a ServiceError+_UnsupportedPlsAlphabetException =+ _ServiceError . hasStatus 400 . hasCode "UnsupportedPlsAlphabetException"++-- | The NextToken is invalid. Verify that it's spelled correctly, and then try again.+--+--+_InvalidNextTokenException :: AsError a => Getting (First ServiceError) a ServiceError+_InvalidNextTokenException =+ _ServiceError . hasStatus 400 . hasCode "InvalidNextTokenException"++-- | The maximum size of the specified lexicon would be exceeded by this operation.+--+--+_LexiconSizeExceededException :: AsError a => Getting (First ServiceError) a ServiceError+_LexiconSizeExceededException =+ _ServiceError . hasStatus 400 . hasCode "LexiconSizeExceededException"++-- | 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.+--+_LexiconNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError+_LexiconNotFoundException =+ _ServiceError . hasStatus 404 . hasCode "LexiconNotFoundException"
+ gen/Network/AWS/Polly/Types/Product.hs view
@@ -0,0 +1,260 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE RecordWildCards #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.Polly.Types.Product+-- 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)+--+module Network.AWS.Polly.Types.Product where++import Network.AWS.Lens+import Network.AWS.Polly.Types.Sum+import Network.AWS.Prelude++-- | Provides lexicon name and lexicon content in string format. For more information, see <https://www.w3.org/TR/pronunciation-lexicon/ Pronunciation Lexicon Specification (PLS) Version 1.0> .+--+--+--+-- /See:/ 'lexicon' smart constructor.+data Lexicon = Lexicon'+ { _lContent :: !(Maybe Text)+ , _lName :: !(Maybe (Sensitive Text))+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | Creates a value of 'Lexicon' with the minimum fields required to make a request.+--+-- Use one of the following lenses to modify other fields as desired:+--+-- * 'lContent' - Lexicon content in string format. The content of a lexicon must be in PLS format.+--+-- * 'lName' - Name of the lexicon.+lexicon+ :: Lexicon+lexicon =+ Lexicon'+ { _lContent = Nothing+ , _lName = Nothing+ }++-- | Lexicon content in string format. The content of a lexicon must be in PLS format.+lContent :: Lens' Lexicon (Maybe Text)+lContent = lens _lContent (\ s a -> s{_lContent = a});++-- | Name of the lexicon.+lName :: Lens' Lexicon (Maybe Text)+lName = lens _lName (\ s a -> s{_lName = a}) . mapping _Sensitive;++instance FromJSON Lexicon where+ parseJSON+ = withObject "Lexicon"+ (\ x ->+ Lexicon' <$> (x .:? "Content") <*> (x .:? "Name"))++instance Hashable Lexicon++instance NFData Lexicon++-- | Contains metadata describing the lexicon such as the number of lexemes, language code, and so on. For more information, see <http://docs.aws.amazon.com/polly/latest/dg/managing-lexicons.html Managing Lexicons> .+--+--+--+-- /See:/ 'lexiconAttributes' smart constructor.+data LexiconAttributes = LexiconAttributes'+ { _laLanguageCode :: !(Maybe LanguageCode)+ , _laSize :: !(Maybe Int)+ , _laLexemesCount :: !(Maybe Int)+ , _laLexiconARN :: !(Maybe Text)+ , _laAlphabet :: !(Maybe Text)+ , _laLastModified :: !(Maybe POSIX)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | 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 are @ipa@ and @x-sampa@ .+--+-- * 'laLastModified' - Date lexicon was last modified (a timestamp value).+lexiconAttributes+ :: LexiconAttributes+lexiconAttributes =+ LexiconAttributes'+ { _laLanguageCode = Nothing+ , _laSize = Nothing+ , _laLexemesCount = Nothing+ , _laLexiconARN = Nothing+ , _laAlphabet = Nothing+ , _laLastModified = Nothing+ }++-- | 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.+laLanguageCode :: Lens' LexiconAttributes (Maybe LanguageCode)+laLanguageCode = lens _laLanguageCode (\ s a -> s{_laLanguageCode = a});++-- | Total size of the lexicon, in characters.+laSize :: Lens' LexiconAttributes (Maybe Int)+laSize = lens _laSize (\ s a -> s{_laSize = a});++-- | Number of lexemes in the lexicon.+laLexemesCount :: Lens' LexiconAttributes (Maybe Int)+laLexemesCount = lens _laLexemesCount (\ s a -> s{_laLexemesCount = a});++-- | Amazon Resource Name (ARN) of the lexicon.+laLexiconARN :: Lens' LexiconAttributes (Maybe Text)+laLexiconARN = lens _laLexiconARN (\ s a -> s{_laLexiconARN = a});++-- | Phonetic alphabet used in the lexicon. Valid values are @ipa@ and @x-sampa@ .+laAlphabet :: Lens' LexiconAttributes (Maybe Text)+laAlphabet = lens _laAlphabet (\ s a -> s{_laAlphabet = a});++-- | Date lexicon was last modified (a timestamp value).+laLastModified :: Lens' LexiconAttributes (Maybe UTCTime)+laLastModified = lens _laLastModified (\ s a -> s{_laLastModified = a}) . mapping _Time;++instance FromJSON LexiconAttributes where+ parseJSON+ = withObject "LexiconAttributes"+ (\ x ->+ LexiconAttributes' <$>+ (x .:? "LanguageCode") <*> (x .:? "Size") <*>+ (x .:? "LexemesCount")+ <*> (x .:? "LexiconArn")+ <*> (x .:? "Alphabet")+ <*> (x .:? "LastModified"))++instance Hashable LexiconAttributes++instance NFData LexiconAttributes++-- | Describes the content of the lexicon.+--+--+--+-- /See:/ 'lexiconDescription' smart constructor.+data LexiconDescription = LexiconDescription'+ { _ldAttributes :: !(Maybe LexiconAttributes)+ , _ldName :: !(Maybe (Sensitive Text))+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | 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.+lexiconDescription+ :: LexiconDescription+lexiconDescription =+ LexiconDescription'+ { _ldAttributes = Nothing+ , _ldName = Nothing+ }++-- | Provides lexicon metadata.+ldAttributes :: Lens' LexiconDescription (Maybe LexiconAttributes)+ldAttributes = lens _ldAttributes (\ s a -> s{_ldAttributes = a});++-- | Name of the lexicon.+ldName :: Lens' LexiconDescription (Maybe Text)+ldName = lens _ldName (\ s a -> s{_ldName = a}) . mapping _Sensitive;++instance FromJSON LexiconDescription where+ parseJSON+ = withObject "LexiconDescription"+ (\ x ->+ LexiconDescription' <$>+ (x .:? "Attributes") <*> (x .:? "Name"))++instance Hashable LexiconDescription++instance NFData LexiconDescription++-- | Description of the voice.+--+--+--+-- /See:/ 'voice' smart constructor.+data Voice = Voice'+ { _vLanguageCode :: !(Maybe LanguageCode)+ , _vLanguageName :: !(Maybe Text)+ , _vGender :: !(Maybe Gender)+ , _vName :: !(Maybe Text)+ , _vId :: !(Maybe VoiceId)+ } deriving (Eq,Read,Show,Data,Typeable,Generic)++-- | 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 the @SynthesizeSpeech@ operation.+voice+ :: Voice+voice =+ Voice'+ { _vLanguageCode = Nothing+ , _vLanguageName = Nothing+ , _vGender = Nothing+ , _vName = Nothing+ , _vId = Nothing+ }++-- | Language code of the voice.+vLanguageCode :: Lens' Voice (Maybe LanguageCode)+vLanguageCode = lens _vLanguageCode (\ s a -> s{_vLanguageCode = a});++-- | Human readable name of the language in English.+vLanguageName :: Lens' Voice (Maybe Text)+vLanguageName = lens _vLanguageName (\ s a -> s{_vLanguageName = a});++-- | Gender of the voice.+vGender :: Lens' Voice (Maybe Gender)+vGender = lens _vGender (\ s a -> s{_vGender = a});++-- | Name of the voice (for example, Salli, Kendra, etc.). This provides a human readable voice name that you might display in your application.+vName :: Lens' Voice (Maybe Text)+vName = lens _vName (\ s a -> s{_vName = a});++-- | Amazon Polly assigned voice ID. This is the ID that you specify when calling the @SynthesizeSpeech@ operation.+vId :: Lens' Voice (Maybe VoiceId)+vId = lens _vId (\ s a -> s{_vId = a});++instance FromJSON Voice where+ parseJSON+ = withObject "Voice"+ (\ x ->+ Voice' <$>+ (x .:? "LanguageCode") <*> (x .:? "LanguageName") <*>+ (x .:? "Gender")+ <*> (x .:? "Name")+ <*> (x .:? "Id"))++instance Hashable Voice++instance NFData Voice
+ gen/Network/AWS/Polly/Types/Sum.hs view
@@ -0,0 +1,360 @@+{-# LANGUAGE DeriveDataTypeable #-}+{-# LANGUAGE DeriveGeneric #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.Polly.Types.Sum+-- 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)+--+module Network.AWS.Polly.Types.Sum where++import Network.AWS.Prelude++data Gender+ = Female+ | Male+ deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText Gender where+ parser = takeLowerText >>= \case+ "female" -> pure Female+ "male" -> pure Male+ e -> fromTextError $ "Failure parsing Gender from value: '" <> e+ <> "'. Accepted values: female, male"++instance ToText Gender where+ toText = \case+ Female -> "Female"+ Male -> "Male"++instance Hashable Gender+instance NFData Gender+instance ToByteString Gender+instance ToQuery Gender+instance ToHeader Gender++instance FromJSON Gender where+ parseJSON = parseJSONText "Gender"++data LanguageCode+ = CyGb+ | DaDk+ | DeDe+ | EnAu+ | EnGb+ | EnGbWls+ | EnIn+ | EnUs+ | EsEs+ | EsUs+ | FrCa+ | FrFr+ | IsIs+ | ItIt+ | JaJp+ | NbNo+ | NlNl+ | PlPl+ | PtBr+ | PtPt+ | RoRo+ | RuRu+ | SvSe+ | TrTr+ deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText LanguageCode where+ parser = takeLowerText >>= \case+ "cy-gb" -> pure CyGb+ "da-dk" -> pure DaDk+ "de-de" -> pure DeDe+ "en-au" -> pure EnAu+ "en-gb" -> pure EnGb+ "en-gb-wls" -> pure EnGbWls+ "en-in" -> pure EnIn+ "en-us" -> pure EnUs+ "es-es" -> pure EsEs+ "es-us" -> pure EsUs+ "fr-ca" -> pure FrCa+ "fr-fr" -> pure FrFr+ "is-is" -> pure IsIs+ "it-it" -> pure ItIt+ "ja-jp" -> pure JaJp+ "nb-no" -> pure NbNo+ "nl-nl" -> pure NlNl+ "pl-pl" -> pure PlPl+ "pt-br" -> pure PtBr+ "pt-pt" -> pure PtPt+ "ro-ro" -> pure RoRo+ "ru-ru" -> pure RuRu+ "sv-se" -> pure SvSe+ "tr-tr" -> pure TrTr+ e -> fromTextError $ "Failure parsing LanguageCode from value: '" <> e+ <> "'. Accepted values: cy-gb, da-dk, de-de, en-au, en-gb, en-gb-wls, en-in, en-us, es-es, es-us, fr-ca, fr-fr, is-is, it-it, ja-jp, nb-no, nl-nl, pl-pl, pt-br, pt-pt, ro-ro, ru-ru, sv-se, tr-tr"++instance ToText LanguageCode where+ toText = \case+ CyGb -> "cy-GB"+ DaDk -> "da-DK"+ DeDe -> "de-DE"+ EnAu -> "en-AU"+ EnGb -> "en-GB"+ EnGbWls -> "en-GB-WLS"+ EnIn -> "en-IN"+ EnUs -> "en-US"+ EsEs -> "es-ES"+ EsUs -> "es-US"+ FrCa -> "fr-CA"+ FrFr -> "fr-FR"+ IsIs -> "is-IS"+ ItIt -> "it-IT"+ JaJp -> "ja-JP"+ NbNo -> "nb-NO"+ NlNl -> "nl-NL"+ PlPl -> "pl-PL"+ PtBr -> "pt-BR"+ PtPt -> "pt-PT"+ RoRo -> "ro-RO"+ RuRu -> "ru-RU"+ SvSe -> "sv-SE"+ TrTr -> "tr-TR"++instance Hashable LanguageCode+instance NFData LanguageCode+instance ToByteString LanguageCode+instance ToQuery LanguageCode+instance ToHeader LanguageCode++instance ToJSON LanguageCode where+ toJSON = toJSONText++instance FromJSON LanguageCode where+ parseJSON = parseJSONText "LanguageCode"++data OutputFormat+ = MP3+ | OggVorbis+ | Pcm+ deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText OutputFormat where+ parser = takeLowerText >>= \case+ "mp3" -> pure MP3+ "ogg_vorbis" -> pure OggVorbis+ "pcm" -> pure Pcm+ e -> fromTextError $ "Failure parsing OutputFormat from value: '" <> e+ <> "'. Accepted values: mp3, ogg_vorbis, pcm"++instance ToText OutputFormat where+ toText = \case+ MP3 -> "mp3"+ OggVorbis -> "ogg_vorbis"+ Pcm -> "pcm"++instance Hashable OutputFormat+instance NFData OutputFormat+instance ToByteString OutputFormat+instance ToQuery OutputFormat+instance ToHeader OutputFormat++instance ToJSON OutputFormat where+ toJSON = toJSONText++data TextType+ = Ssml+ | Text+ deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText TextType where+ parser = takeLowerText >>= \case+ "ssml" -> pure Ssml+ "text" -> pure Text+ e -> fromTextError $ "Failure parsing TextType from value: '" <> e+ <> "'. Accepted values: ssml, text"++instance ToText TextType where+ toText = \case+ Ssml -> "ssml"+ Text -> "text"++instance Hashable TextType+instance NFData TextType+instance ToByteString TextType+instance ToQuery TextType+instance ToHeader TextType++instance ToJSON TextType where+ toJSON = toJSONText++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+ deriving (Eq,Ord,Read,Show,Enum,Bounded,Data,Typeable,Generic)++instance FromText VoiceId where+ parser = takeLowerText >>= \case+ "amy" -> pure Amy+ "astrid" -> pure Astrid+ "brian" -> pure Brian+ "carla" -> pure Carla+ "carmen" -> pure Carmen+ "celine" -> pure Celine+ "chantal" -> pure Chantal+ "conchita" -> pure Conchita+ "cristiano" -> pure Cristiano+ "dora" -> pure Dora+ "emma" -> pure Emma+ "enrique" -> pure Enrique+ "ewa" -> pure Ewa+ "filiz" -> pure Filiz+ "geraint" -> pure Geraint+ "giorgio" -> pure Giorgio+ "gwyneth" -> pure Gwyneth+ "hans" -> pure Hans+ "ines" -> pure Ines+ "ivy" -> pure Ivy+ "jacek" -> pure Jacek+ "jan" -> pure Jan+ "joanna" -> pure Joanna+ "joey" -> pure Joey+ "justin" -> pure Justin+ "karl" -> pure Karl+ "kendra" -> pure Kendra+ "kimberly" -> pure Kimberly+ "liv" -> pure Liv+ "lotte" -> pure Lotte+ "mads" -> pure Mads+ "maja" -> pure Maja+ "marlene" -> pure Marlene+ "mathieu" -> pure Mathieu+ "maxim" -> pure Maxim+ "miguel" -> pure Miguel+ "mizuki" -> pure Mizuki+ "naja" -> pure Naja+ "nicole" -> pure Nicole+ "penelope" -> pure Penelope+ "raveena" -> pure Raveena+ "ricardo" -> pure Ricardo+ "ruben" -> pure Ruben+ "russell" -> pure Russell+ "salli" -> pure Salli+ "tatyana" -> pure Tatyana+ "vitoria" -> pure Vitoria+ e -> fromTextError $ "Failure parsing VoiceId from value: '" <> e+ <> "'. Accepted values: 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"++instance ToText VoiceId where+ toText = \case+ Amy -> "Amy"+ Astrid -> "Astrid"+ Brian -> "Brian"+ Carla -> "Carla"+ Carmen -> "Carmen"+ Celine -> "Celine"+ Chantal -> "Chantal"+ Conchita -> "Conchita"+ Cristiano -> "Cristiano"+ Dora -> "Dora"+ Emma -> "Emma"+ Enrique -> "Enrique"+ Ewa -> "Ewa"+ Filiz -> "Filiz"+ Geraint -> "Geraint"+ Giorgio -> "Giorgio"+ Gwyneth -> "Gwyneth"+ Hans -> "Hans"+ Ines -> "Ines"+ Ivy -> "Ivy"+ Jacek -> "Jacek"+ Jan -> "Jan"+ Joanna -> "Joanna"+ Joey -> "Joey"+ Justin -> "Justin"+ Karl -> "Karl"+ Kendra -> "Kendra"+ Kimberly -> "Kimberly"+ Liv -> "Liv"+ Lotte -> "Lotte"+ Mads -> "Mads"+ Maja -> "Maja"+ Marlene -> "Marlene"+ Mathieu -> "Mathieu"+ Maxim -> "Maxim"+ Miguel -> "Miguel"+ Mizuki -> "Mizuki"+ Naja -> "Naja"+ Nicole -> "Nicole"+ Penelope -> "Penelope"+ Raveena -> "Raveena"+ Ricardo -> "Ricardo"+ Ruben -> "Ruben"+ Russell -> "Russell"+ Salli -> "Salli"+ Tatyana -> "Tatyana"+ Vitoria -> "Vitoria"++instance Hashable VoiceId+instance NFData VoiceId+instance ToByteString VoiceId+instance ToQuery VoiceId+instance ToHeader VoiceId++instance ToJSON VoiceId where+ toJSON = toJSONText++instance FromJSON VoiceId where+ parseJSON = parseJSONText "VoiceId"
+ gen/Network/AWS/Polly/Waiters.hs view
@@ -0,0 +1,21 @@+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeFamilies #-}++{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Network.AWS.Polly.Waiters+-- 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)+--+module Network.AWS.Polly.Waiters where++import Network.AWS.Lens+import Network.AWS.Polly.Types+import Network.AWS.Prelude+import Network.AWS.Waiter
+ src/.gitkeep view
+ test/Main.hs view
@@ -0,0 +1,21 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}++-- |+-- Module : Main+-- 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)+--+module Main (main) where++import Test.Tasty+import Test.AWS.Polly+import Test.AWS.Polly.Internal++main :: IO ()+main = defaultMain $ testGroup "Polly"+ [ testGroup "tests" tests+ , testGroup "fixtures" fixtures+ ]
+ test/Test/AWS/Gen/Polly.hs view
@@ -0,0 +1,140 @@+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-orphans #-}++-- Derived from AWS service descriptions, licensed under Apache 2.0.++-- |+-- Module : Test.AWS.Gen.Polly+-- 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)+--+module Test.AWS.Gen.Polly where++import Data.Proxy+import Test.AWS.Fixture+import Test.AWS.Prelude+import Test.Tasty+import Network.AWS.Polly+import Test.AWS.Polly.Internal++-- Auto-generated: the actual test selection needs to be manually placed into+-- the top-level so that real test data can be incrementally added.+--+-- This commented snippet is what the entire set should look like:++-- fixtures :: TestTree+-- fixtures =+-- [ testGroup "request"+-- [ requestGetLexicon $+-- getLexicon+--+-- , requestDescribeVoices $+-- describeVoices+--+-- , requestListLexicons $+-- listLexicons+--+-- , requestSynthesizeSpeech $+-- synthesizeSpeech+--+-- , requestPutLexicon $+-- putLexicon+--+-- , requestDeleteLexicon $+-- deleteLexicon+--+-- ]++-- , testGroup "response"+-- [ responseGetLexicon $+-- getLexiconResponse+--+-- , responseDescribeVoices $+-- describeVoicesResponse+--+-- , responseListLexicons $+-- listLexiconsResponse+--+-- , responseSynthesizeSpeech $+-- synthesizeSpeechResponse+--+-- , responsePutLexicon $+-- putLexiconResponse+--+-- , responseDeleteLexicon $+-- deleteLexiconResponse+--+-- ]+-- ]++-- Requests++requestGetLexicon :: GetLexicon -> TestTree+requestGetLexicon = req+ "GetLexicon"+ "fixture/GetLexicon.yaml"++requestDescribeVoices :: DescribeVoices -> TestTree+requestDescribeVoices = req+ "DescribeVoices"+ "fixture/DescribeVoices.yaml"++requestListLexicons :: ListLexicons -> TestTree+requestListLexicons = req+ "ListLexicons"+ "fixture/ListLexicons.yaml"++requestSynthesizeSpeech :: SynthesizeSpeech -> TestTree+requestSynthesizeSpeech = req+ "SynthesizeSpeech"+ "fixture/SynthesizeSpeech.yaml"++requestPutLexicon :: PutLexicon -> TestTree+requestPutLexicon = req+ "PutLexicon"+ "fixture/PutLexicon.yaml"++requestDeleteLexicon :: DeleteLexicon -> TestTree+requestDeleteLexicon = req+ "DeleteLexicon"+ "fixture/DeleteLexicon.yaml"++-- Responses++responseGetLexicon :: GetLexiconResponse -> TestTree+responseGetLexicon = res+ "GetLexiconResponse"+ "fixture/GetLexiconResponse.proto"+ polly+ (Proxy :: Proxy GetLexicon)++responseDescribeVoices :: DescribeVoicesResponse -> TestTree+responseDescribeVoices = res+ "DescribeVoicesResponse"+ "fixture/DescribeVoicesResponse.proto"+ polly+ (Proxy :: Proxy DescribeVoices)++responseListLexicons :: ListLexiconsResponse -> TestTree+responseListLexicons = res+ "ListLexiconsResponse"+ "fixture/ListLexiconsResponse.proto"+ polly+ (Proxy :: Proxy ListLexicons)++responsePutLexicon :: PutLexiconResponse -> TestTree+responsePutLexicon = res+ "PutLexiconResponse"+ "fixture/PutLexiconResponse.proto"+ polly+ (Proxy :: Proxy PutLexicon)++responseDeleteLexicon :: DeleteLexiconResponse -> TestTree+responseDeleteLexicon = res+ "DeleteLexiconResponse"+ "fixture/DeleteLexiconResponse.proto"+ polly+ (Proxy :: Proxy DeleteLexicon)
+ test/Test/AWS/Polly.hs view
@@ -0,0 +1,20 @@+-- |+-- Module : Test.AWS.Polly+-- 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)+--+module Test.AWS.Polly+ ( tests+ , fixtures+ ) where++import Test.Tasty (TestTree)++tests :: [TestTree]+tests = []++fixtures :: [TestTree]+fixtures = []
+ test/Test/AWS/Polly/Internal.hs view
@@ -0,0 +1,9 @@+-- |+-- Module : Test.AWS.Polly.Internal+-- 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)+--+module Test.AWS.Polly.Internal where