Copyright | (c) 2015-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 |
Synthesizes speech synchronously: receive results after all text input has been processed.
See: Cloud Text-to-Speech API Reference for texttospeech.text.synthesize
.
Synopsis
- type TextSynthesizeResource = "v1" :> ("text:synthesize" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SynthesizeSpeechRequest :> Post '[JSON] SynthesizeSpeechResponse))))))))
- textSynthesize :: SynthesizeSpeechRequest -> TextSynthesize
- data TextSynthesize
- tsXgafv :: Lens' TextSynthesize (Maybe Xgafv)
- tsUploadProtocol :: Lens' TextSynthesize (Maybe Text)
- tsAccessToken :: Lens' TextSynthesize (Maybe Text)
- tsUploadType :: Lens' TextSynthesize (Maybe Text)
- tsPayload :: Lens' TextSynthesize SynthesizeSpeechRequest
- tsCallback :: Lens' TextSynthesize (Maybe Text)
REST Resource
type TextSynthesizeResource = "v1" :> ("text:synthesize" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SynthesizeSpeechRequest :> Post '[JSON] SynthesizeSpeechResponse)))))))) Source #
A resource alias for texttospeech.text.synthesize
method which the
TextSynthesize
request conforms to.
Creating a Request
Creates a value of TextSynthesize
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data TextSynthesize Source #
Synthesizes speech synchronously: receive results after all text input has been processed.
See: textSynthesize
smart constructor.
Instances
Request Lenses
tsUploadProtocol :: Lens' TextSynthesize (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
tsAccessToken :: Lens' TextSynthesize (Maybe Text) Source #
OAuth access token.
tsUploadType :: Lens' TextSynthesize (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
tsPayload :: Lens' TextSynthesize SynthesizeSpeechRequest Source #
Multipart request metadata.
tsCallback :: Lens' TextSynthesize (Maybe Text) Source #
JSONP