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 synchronous speech recognition: receive results after all audio has been sent and processed.
See: Cloud Speech API Reference for speech.speech.recognize
.
Synopsis
- type SpeechRecognizeResource = "v1p1beta1" :> ("speech:recognize" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RecognizeRequest :> Post '[JSON] RecognizeResponse))))))))
- speechRecognize :: RecognizeRequest -> SpeechRecognize
- data SpeechRecognize
- srXgafv :: Lens' SpeechRecognize (Maybe Xgafv)
- srUploadProtocol :: Lens' SpeechRecognize (Maybe Text)
- srAccessToken :: Lens' SpeechRecognize (Maybe Text)
- srUploadType :: Lens' SpeechRecognize (Maybe Text)
- srPayload :: Lens' SpeechRecognize RecognizeRequest
- srCallback :: Lens' SpeechRecognize (Maybe Text)
REST Resource
type SpeechRecognizeResource = "v1p1beta1" :> ("speech:recognize" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] RecognizeRequest :> Post '[JSON] RecognizeResponse)))))))) Source #
A resource alias for speech.speech.recognize
method which the
SpeechRecognize
request conforms to.
Creating a Request
Creates a value of SpeechRecognize
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpeechRecognize Source #
Performs synchronous speech recognition: receive results after all audio has been sent and processed.
See: speechRecognize
smart constructor.
Instances
Request Lenses
srUploadProtocol :: Lens' SpeechRecognize (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
srAccessToken :: Lens' SpeechRecognize (Maybe Text) Source #
OAuth access token.
srUploadType :: Lens' SpeechRecognize (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
srPayload :: Lens' SpeechRecognize RecognizeRequest Source #
Multipart request metadata.
srCallback :: Lens' SpeechRecognize (Maybe Text) Source #
JSONP