Understanding the API Request
This lesson details the contents of the Speech-to-text API request.
Request diagram
The following request diagram explains the structure of the API request object:
JSON representation
NOTE: The JSON key names do not ‘match’ the key names used in the Python client code. For example, the JSON key
enableWordTimeOffsets
isenable_wordtime_offsets
in Python. The lessons contain both. We do this because the JSON representation makes the details of the request easy to present. ...
{
"config": {
object (RecognitionConfig)
},
"audio": {
object (RecognitionAudio)
}
}
Fields | Description |
---|---|
config |
Specify the recognition configuration |