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 |
Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message.
See: Cloud Speech API Reference for speech.speech.longrunningrecognize
.
Synopsis
- type SpeechLongrunningrecognizeResource = "v1p1beta1" :> ("speech:longrunningrecognize" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LongRunningRecognizeRequest :> Post '[JSON] Operation))))))))
- speechLongrunningrecognize :: LongRunningRecognizeRequest -> SpeechLongrunningrecognize
- data SpeechLongrunningrecognize
- slXgafv :: Lens' SpeechLongrunningrecognize (Maybe Xgafv)
- slUploadProtocol :: Lens' SpeechLongrunningrecognize (Maybe Text)
- slAccessToken :: Lens' SpeechLongrunningrecognize (Maybe Text)
- slUploadType :: Lens' SpeechLongrunningrecognize (Maybe Text)
- slPayload :: Lens' SpeechLongrunningrecognize LongRunningRecognizeRequest
- slCallback :: Lens' SpeechLongrunningrecognize (Maybe Text)
REST Resource
type SpeechLongrunningrecognizeResource = "v1p1beta1" :> ("speech:longrunningrecognize" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LongRunningRecognizeRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for speech.speech.longrunningrecognize
method which the
SpeechLongrunningrecognize
request conforms to.
Creating a Request
speechLongrunningrecognize Source #
Creates a value of SpeechLongrunningrecognize
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpeechLongrunningrecognize Source #
Performs asynchronous speech recognition: receive results via the google.longrunning.Operations interface. Returns either an `Operation.error` or an `Operation.response` which contains a `LongRunningRecognizeResponse` message.
See: speechLongrunningrecognize
smart constructor.
Instances
Request Lenses
slUploadProtocol :: Lens' SpeechLongrunningrecognize (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
slAccessToken :: Lens' SpeechLongrunningrecognize (Maybe Text) Source #
OAuth access token.
slUploadType :: Lens' SpeechLongrunningrecognize (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
slPayload :: Lens' SpeechLongrunningrecognize LongRunningRecognizeRequest Source #
Multipart request metadata.
slCallback :: Lens' SpeechLongrunningrecognize (Maybe Text) Source #
JSONP