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 |
Returns a list of Voice supported for synthesis.
See: Cloud Text-to-Speech API Reference for texttospeech.voices.list
.
Synopsis
- type VoicesListResource = "v1" :> ("voices" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListVoicesResponse))))))))
- voicesList :: VoicesList
- data VoicesList
- vlXgafv :: Lens' VoicesList (Maybe Xgafv)
- vlLanguageCode :: Lens' VoicesList (Maybe Text)
- vlUploadProtocol :: Lens' VoicesList (Maybe Text)
- vlAccessToken :: Lens' VoicesList (Maybe Text)
- vlUploadType :: Lens' VoicesList (Maybe Text)
- vlCallback :: Lens' VoicesList (Maybe Text)
REST Resource
type VoicesListResource = "v1" :> ("voices" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "languageCode" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListVoicesResponse)))))))) Source #
A resource alias for texttospeech.voices.list
method which the
VoicesList
request conforms to.
Creating a Request
voicesList :: VoicesList Source #
Creates a value of VoicesList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data VoicesList Source #
Returns a list of Voice supported for synthesis.
See: voicesList
smart constructor.
Instances
Request Lenses
vlLanguageCode :: Lens' VoicesList (Maybe Text) Source #
Optional (but recommended) BCP-47 language tag. If specified, the ListVoices call will only return voices that can be used to synthesize this language_code. E.g. when specifying "en-NZ", you will get supported "en-*" voices; when specifying "no", you will get supported "no-*" (Norwegian) and "nb-*" (Norwegian Bokmal) voices; specifying "zh" will also get supported "cmn-*" voices; specifying "zh-hk" will also get supported "yue-*" voices.
vlUploadProtocol :: Lens' VoicesList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
vlAccessToken :: Lens' VoicesList (Maybe Text) Source #
OAuth access token.
vlUploadType :: Lens' VoicesList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
vlCallback :: Lens' VoicesList (Maybe Text) Source #
JSONP