{
  "ownerName": "Google",
  "description": "Converts audio to text by applying powerful neural network models.",
  "canonicalName": "Speech",
  "basePath": "",
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/cloud-platform": {
          "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
        }
      }
    }
  },
  "schemas": {
    "Location": {
      "properties": {
        "locationId": {
          "type": "string",
          "description": "The canonical id for this location. For example: `\"us-east1\"`."
        },
        "displayName": {
          "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".",
          "type": "string"
        },
        "metadata": {
          "description": "Service-specific metadata. For example the available capacity at the given location.",
          "additionalProperties": {
            "description": "Properties of the object. Contains field @type with type URL.",
            "type": "any"
          },
          "type": "object"
        },
        "name": {
          "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`",
          "type": "string"
        },
        "labels": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}"
        }
      },
      "type": "object",
      "description": "A resource that represents a Google Cloud location.",
      "id": "Location"
    },
    "CreatePhraseSetRequest": {
      "id": "CreatePhraseSetRequest",
      "type": "object",
      "description": "Request message for the CreatePhraseSet method.",
      "properties": {
        "parent": {
          "type": "string",
          "description": "Required. The project and location where this PhraseSet will be created. The expected format is `projects/{project}/locations/{location}`."
        },
        "validateOnly": {
          "description": "If set, validate the request and preview the PhraseSet, but do not actually create it.",
          "type": "boolean"
        },
        "phraseSet": {
          "$ref": "PhraseSet",
          "description": "Required. The PhraseSet to create."
        },
        "phraseSetId": {
          "type": "string",
          "description": "The ID to use for the PhraseSet, which will become the final component of the PhraseSet's resource name. This value should be 4-63 characters, and valid characters are /a-z-/."
        }
      }
    },
    "TranslationConfig": {
      "id": "TranslationConfig",
      "type": "object",
      "properties": {
        "targetLanguage": {
          "description": "Required. The language code to translate to.",
          "type": "string"
        }
      },
      "description": "Translation configuration. Use to translate the given audio into text for the desired language."
    },
    "AccessMetadata": {
      "type": "object",
      "description": "The access metadata for a particular region. This can be applied if the org policy for the given project disallows a particular region.",
      "properties": {
        "constraintType": {
          "description": "Describes the different types of constraints that are applied.",
          "enumDescriptions": [
            "Unspecified constraint applied.",
            "The project's org policy disallows the given region."
          ],
          "enum": [
            "CONSTRAINT_TYPE_UNSPECIFIED",
            "RESOURCE_LOCATIONS_ORG_POLICY_CREATE_CONSTRAINT"
          ],
          "type": "string"
        }
      },
      "id": "AccessMetadata"
    },
    "ModelMetadata": {
      "type": "object",
      "description": "The metadata about the models in a given region for a specific locale. Currently this is just the features of the model",
      "id": "ModelMetadata",
      "properties": {
        "modelFeatures": {
          "additionalProperties": {
            "$ref": "ModelFeatures"
          },
          "type": "object",
          "description": "Map of the model name -\u003e features of that model"
        }
      }
    },
    "UndeleteRecognizerRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Required. The name of the Recognizer to undelete. Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`"
        },
        "etag": {
          "type": "string",
          "description": "This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding."
        },
        "validateOnly": {
          "type": "boolean",
          "description": "If set, validate the request and preview the undeleted Recognizer, but do not actually undelete it."
        }
      },
      "id": "UndeleteRecognizerRequest",
      "description": "Request message for the UndeleteRecognizer method."
    },
    "TranscriptNormalization": {
      "id": "TranscriptNormalization",
      "type": "object",
      "description": "Transcription normalization configuration. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability \u003e 0.8) and final transcripts.",
      "properties": {
        "entries": {
          "description": "A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in [\"cat\" =\u003e \"dog\", \"mountain cat\" =\u003e \"mountain dog\"] will never be applied because we will always process the first entry before it. At most 100 entries.",
          "type": "array",
          "items": {
            "$ref": "Entry"
          }
        }
      }
    },
    "LanguageMetadata": {
      "type": "object",
      "id": "LanguageMetadata",
      "description": "The metadata about locales available in a given region. Currently this is just the models that are available for each locale",
      "properties": {
        "models": {
          "description": "Map of locale (language code) -\u003e models",
          "type": "object",
          "additionalProperties": {
            "$ref": "ModelMetadata"
          }
        }
      }
    },
    "BatchRecognizeResponse": {
      "type": "object",
      "properties": {
        "results": {
          "additionalProperties": {
            "$ref": "BatchRecognizeFileResult"
          },
          "type": "object",
          "description": "Map from filename to the final result for that file."
        },
        "totalBilledDuration": {
          "description": "When available, billed audio seconds for the corresponding request.",
          "type": "string",
          "format": "google-duration"
        }
      },
      "description": "Response message for BatchRecognize that is packaged into a longrunning Operation.",
      "id": "BatchRecognizeResponse"
    },
    "AutoDetectDecodingConfig": {
      "type": "object",
      "properties": {},
      "id": "AutoDetectDecodingConfig",
      "description": "Automatically detected decoding parameters. Supported for the following encodings: * WAV_LINEAR16: 16-bit signed little-endian PCM samples in a WAV container. * WAV_MULAW: 8-bit companded mulaw samples in a WAV container. * WAV_ALAW: 8-bit companded alaw samples in a WAV container. * RFC4867_5_AMR: AMR frames with an rfc4867.5 header. * RFC4867_5_AMRWB: AMR-WB frames with an rfc4867.5 header. * FLAC: FLAC frames in the \"native FLAC\" container format. * MP3: MPEG audio frames with optional (ignored) ID3 metadata. * OGG_OPUS: Opus audio frames in an Ogg container. * WEBM_OPUS: Opus audio frames in a WebM container. * MP4_AAC: AAC audio frames in an MP4 container. * M4A_AAC: AAC audio frames in an M4A container. * MOV_AAC: AAC audio frames in an MOV container."
    },
    "ClassItem": {
      "properties": {
        "value": {
          "type": "string",
          "description": "The class item's value."
        }
      },
      "description": "An item of the class.",
      "type": "object",
      "id": "ClassItem"
    },
    "UpdateRecognizerRequest": {
      "id": "UpdateRecognizerRequest",
      "type": "object",
      "description": "Request message for the UpdateRecognizer method.",
      "properties": {
        "recognizer": {
          "description": "Required. The Recognizer to update. The Recognizer's `name` field is used to identify the Recognizer to update. Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.",
          "$ref": "Recognizer"
        },
        "updateMask": {
          "format": "google-fieldmask",
          "description": "The list of fields to update. If empty, all non-default valued fields are considered for update. Use `*` to update the entire Recognizer resource.",
          "type": "string"
        },
        "validateOnly": {
          "type": "boolean",
          "description": "If set, validate the request and preview the updated Recognizer, but do not actually update it."
        }
      }
    },
    "UpdateCustomClassRequest": {
      "description": "Request message for the UpdateCustomClass method.",
      "properties": {
        "customClass": {
          "description": "Required. The CustomClass to update. The CustomClass's `name` field is used to identify the CustomClass to update. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}`.",
          "$ref": "CustomClass"
        },
        "validateOnly": {
          "description": "If set, validate the request and preview the updated CustomClass, but do not actually update it.",
          "type": "boolean"
        },
        "updateMask": {
          "type": "string",
          "description": "The list of fields to be updated. If empty, all fields are considered for update.",
          "format": "google-fieldmask"
        }
      },
      "type": "object",
      "id": "UpdateCustomClassRequest"
    },
    "Entry": {
      "properties": {
        "search": {
          "type": "string",
          "description": "What to replace. Max length is 100 characters."
        },
        "replace": {
          "description": "What to replace with. Max length is 100 characters.",
          "type": "string"
        },
        "caseSensitive": {
          "description": "Whether the search is case sensitive.",
          "type": "boolean"
        }
      },
      "description": "A single replacement configuration.",
      "id": "Entry",
      "type": "object"
    },
    "BatchRecognizeResults": {
      "description": "Output type for Cloud Storage of BatchRecognize transcripts. Though this proto isn't returned in this API anywhere, the Cloud Storage transcripts will be this proto serialized and should be parsed as such.",
      "type": "object",
      "properties": {
        "metadata": {
          "description": "Metadata about the recognition.",
          "$ref": "RecognitionResponseMetadata"
        },
        "results": {
          "description": "Sequential list of transcription results corresponding to sequential portions of audio.",
          "type": "array",
          "items": {
            "$ref": "SpeechRecognitionResult"
          }
        }
      },
      "id": "BatchRecognizeResults"
    },
    "ExplicitDecodingConfig": {
      "id": "ExplicitDecodingConfig",
      "type": "object",
      "properties": {
        "sampleRateHertz": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Sample rate in Hertz of the audio data sent for recognition. Valid values are: 8000-48000, and 16000 is optimal. For best results, set the sampling rate of the audio source to 16000 Hz. If that's not possible, use the native sample rate of the audio source (instead of resampling). Note that this field is marked as OPTIONAL for backward compatibility reasons. It is (and has always been) effectively REQUIRED."
        },
        "audioChannelCount": {
          "description": "Optional. Number of channels present in the audio data sent for recognition. Note that this field is marked as OPTIONAL for backward compatibility reasons. It is (and has always been) effectively REQUIRED. The maximum allowed value is 8.",
          "format": "int32",
          "type": "integer"
        },
        "encoding": {
          "enum": [
            "AUDIO_ENCODING_UNSPECIFIED",
            "LINEAR16",
            "MULAW",
            "ALAW",
            "AMR",
            "AMR_WB",
            "FLAC",
            "MP3",
            "OGG_OPUS",
            "WEBM_OPUS",
            "MP4_AAC",
            "M4A_AAC",
            "MOV_AAC"
          ],
          "description": "Required. Encoding of the audio data sent for recognition.",
          "type": "string",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Headerless 16-bit signed little-endian PCM samples.",
            "Headerless 8-bit companded mulaw samples.",
            "Headerless 8-bit companded alaw samples.",
            "AMR frames with an rfc4867.5 header.",
            "AMR-WB frames with an rfc4867.5 header.",
            "FLAC frames in the \"native FLAC\" container format.",
            "MPEG audio frames with optional (ignored) ID3 metadata.",
            "Opus audio frames in an Ogg container.",
            "Opus audio frames in a WebM container.",
            "AAC audio frames in an MP4 container.",
            "AAC audio frames in an M4A container.",
            "AAC audio frames in an MOV container."
          ]
        }
      },
      "description": "Explicitly specified decoding parameters."
    },
    "SpeechAdaptation": {
      "description": "Provides \"hints\" to the speech recognizer to favor specific words and phrases in the results. PhraseSets can be specified as an inline resource, or a reference to an existing PhraseSet resource.",
      "id": "SpeechAdaptation",
      "properties": {
        "phraseSets": {
          "items": {
            "$ref": "AdaptationPhraseSet"
          },
          "description": "A list of inline or referenced PhraseSets.",
          "type": "array"
        },
        "customClasses": {
          "type": "array",
          "description": "A list of inline CustomClasses. Existing CustomClass resources can be referenced directly in a PhraseSet.",
          "items": {
            "$ref": "CustomClass"
          }
        }
      },
      "type": "object"
    },
    "BatchRecognizeFileMetadata": {
      "description": "Metadata about a single file in a batch for BatchRecognize.",
      "type": "object",
      "id": "BatchRecognizeFileMetadata",
      "properties": {
        "configMask": {
          "description": "The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all non-default valued fields in config override the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (`*`) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.",
          "type": "string",
          "format": "google-fieldmask"
        },
        "uri": {
          "description": "Cloud Storage URI for the audio file.",
          "type": "string"
        },
        "config": {
          "description": "Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource as well as the config at the request level.",
          "$ref": "RecognitionConfig"
        }
      }
    },
    "RecognizeResponse": {
      "properties": {
        "metadata": {
          "description": "Metadata about the recognition.",
          "$ref": "RecognitionResponseMetadata"
        },
        "results": {
          "type": "array",
          "items": {
            "$ref": "SpeechRecognitionResult"
          },
          "description": "Sequential list of transcription results corresponding to sequential portions of audio."
        }
      },
      "id": "RecognizeResponse",
      "description": "Response message for the Recognize method.",
      "type": "object"
    },
    "Config": {
      "description": "Message representing the config for the Speech-to-Text API. This includes an optional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which incoming data will be encrypted.",
      "id": "Config",
      "type": "object",
      "properties": {
        "updateTime": {
          "readOnly": true,
          "type": "string",
          "format": "google-datetime",
          "description": "Output only. The most recent time this resource was modified."
        },
        "name": {
          "description": "Output only. Identifier. The name of the config resource. There is exactly one config resource per project per location. The expected format is `projects/{project}/locations/{location}/config`.",
          "type": "string",
          "readOnly": true
        },
        "kmsKeyName": {
          "description": "Optional. An optional [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if present, will be used to encrypt Speech-to-Text resources at-rest. Updating this key will not encrypt existing resources using this key; only new resources will be encrypted using this key. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.",
          "type": "string"
        }
      }
    },
    "RecognitionResponseMetadata": {
      "properties": {
        "requestId": {
          "description": "Global request identifier auto-generated by the API.",
          "type": "string"
        },
        "totalBilledDuration": {
          "type": "string",
          "format": "google-duration",
          "description": "When available, billed audio seconds for the corresponding request."
        },
        "prompt": {
          "type": "string",
          "readOnly": true,
          "description": "Optional. Output only. Provides the prompt used for the recognition request."
        }
      },
      "description": "Metadata about the recognition request and response.",
      "id": "RecognitionResponseMetadata",
      "type": "object"
    },
    "BatchRecognizeMetadata": {
      "properties": {
        "transcriptionMetadata": {
          "additionalProperties": {
            "$ref": "BatchRecognizeTranscriptionMetadata"
          },
          "type": "object",
          "description": "Map from provided filename to the transcription metadata for that file."
        }
      },
      "id": "BatchRecognizeMetadata",
      "description": "Operation metadata for BatchRecognize.",
      "type": "object"
    },
    "BatchRecognizeRequest": {
      "id": "BatchRecognizeRequest",
      "properties": {
        "configMask": {
          "type": "string",
          "description": "The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all given fields in config override the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (`*`) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.",
          "format": "google-fieldmask"
        },
        "processingStrategy": {
          "enum": [
            "PROCESSING_STRATEGY_UNSPECIFIED",
            "DYNAMIC_BATCHING"
          ],
          "type": "string",
          "description": "Processing strategy to use for this request.",
          "enumDescriptions": [
            "Default value for the processing strategy. The request is processed as soon as its received.",
            "If selected, processes the request during lower utilization periods for a price discount. The request is fulfilled within 24 hours."
          ]
        },
        "recognizer": {
          "type": "string",
          "description": "Required. The name of the Recognizer to use during recognition. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The {recognizer} segment may be set to `_` to use an empty implicit Recognizer."
        },
        "config": {
          "description": "Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.",
          "$ref": "RecognitionConfig"
        },
        "files": {
          "items": {
            "$ref": "BatchRecognizeFileMetadata"
          },
          "type": "array",
          "description": "Audio files with file metadata for ASR. The maximum number of files allowed to be specified is 15."
        },
        "recognitionOutputConfig": {
          "description": "Configuration options for where to output the transcripts of each file.",
          "$ref": "RecognitionOutputConfig"
        }
      },
      "type": "object",
      "description": "Request message for the BatchRecognize method."
    },
    "VttOutputFileFormatConfig": {
      "type": "object",
      "properties": {},
      "description": "Output configurations for [WebVTT](https://www.w3.org/TR/webvtt1/) formatted subtitle file.",
      "id": "VttOutputFileFormatConfig"
    },
    "LocationsMetadata": {
      "type": "object",
      "id": "LocationsMetadata",
      "description": "Main metadata for the Locations API for STT V2. Currently this is just the metadata about locales, models, and features",
      "properties": {
        "accessMetadata": {
          "description": "Information about access metadata for the region and given project.",
          "$ref": "AccessMetadata"
        },
        "languages": {
          "$ref": "LanguageMetadata",
          "description": "Information about available locales, models, and features represented in the hierarchical structure of locales -\u003e models -\u003e features"
        }
      }
    },
    "SpeechRecognitionResult": {
      "type": "object",
      "id": "SpeechRecognitionResult",
      "description": "A speech recognition result corresponding to a portion of the audio.",
      "properties": {
        "resultEndOffset": {
          "description": "Time offset of the end of this result relative to the beginning of the audio.",
          "type": "string",
          "format": "google-duration"
        },
        "languageCode": {
          "readOnly": true,
          "description": "Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio.",
          "type": "string"
        },
        "channelTag": {
          "description": "For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For `audio_channel_count` = `N`, its output values can range from `1` to `N`.",
          "format": "int32",
          "type": "integer"
        },
        "alternatives": {
          "items": {
            "$ref": "SpeechRecognitionAlternative"
          },
          "type": "array",
          "description": "May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer."
        }
      }
    },
    "ListRecognizersResponse": {
      "description": "Response message for the ListRecognizers method.",
      "id": "ListRecognizersResponse",
      "type": "object",
      "properties": {
        "nextPageToken": {
          "type": "string",
          "description": "A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. This token expires after 72 hours."
        },
        "recognizers": {
          "items": {
            "$ref": "Recognizer"
          },
          "description": "The list of requested Recognizers.",
          "type": "array"
        }
      }
    },
    "UpdateConfigRequest": {
      "description": "Request message for the UpdateConfig method.",
      "properties": {
        "config": {
          "description": "Required. The config to update. The config's `name` field is used to identify the config to be updated. The expected format is `projects/{project}/locations/{location}/config`.",
          "$ref": "Config"
        },
        "updateMask": {
          "type": "string",
          "format": "google-fieldmask",
          "description": "The list of fields to be updated."
        }
      },
      "type": "object",
      "id": "UpdateConfigRequest"
    },
    "ListLocationsResponse": {
      "properties": {
        "locations": {
          "items": {
            "$ref": "Location"
          },
          "description": "A list of locations that matches the specified filter in the request.",
          "type": "array"
        },
        "nextPageToken": {
          "description": "The standard List next-page token.",
          "type": "string"
        }
      },
      "id": "ListLocationsResponse",
      "type": "object",
      "description": "The response message for Locations.ListLocations."
    },
    "OutputFormatConfig": {
      "type": "object",
      "description": "Configuration for the format of the results stored to `output`.",
      "id": "OutputFormatConfig",
      "properties": {
        "srt": {
          "$ref": "SrtOutputFileFormatConfig",
          "description": "Configuration for the SRT output format. If this field is set, then transcripts will be written to the sink in the SRT format."
        },
        "native": {
          "$ref": "NativeOutputFileFormatConfig",
          "description": "Configuration for the native output format. If this field is set or if no other output format field is set, then transcripts will be written to the sink in the native format."
        },
        "vtt": {
          "$ref": "VttOutputFileFormatConfig",
          "description": "Configuration for the VTT output format. If this field is set, then transcripts will be written to the sink in the VTT format."
        }
      }
    },
    "RecognitionConfig": {
      "description": "Provides information to the Recognizer that specifies how to process the recognition request.",
      "properties": {
        "autoDecodingConfig": {
          "description": "Automatically detect decoding parameters. Preferred for supported formats.",
          "$ref": "AutoDetectDecodingConfig"
        },
        "transcriptNormalization": {
          "description": "Optional. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability \u003e 0.8) and final transcripts.",
          "$ref": "TranscriptNormalization"
        },
        "features": {
          "$ref": "RecognitionFeatures",
          "description": "Speech recognition features to enable."
        },
        "translationConfig": {
          "description": "Optional. Optional configuration used to automatically run translation on the given audio to the desired language for supported models.",
          "$ref": "TranslationConfig"
        },
        "languageCodes": {
          "description": "Optional. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Language tags are normalized to BCP-47 before they are used eg \"en-us\" becomes \"en-US\". Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "denoiserConfig": {
          "$ref": "DenoiserConfig",
          "description": "Optional. Optional denoiser config. May not be supported for all models and may have no effect."
        },
        "model": {
          "description": "Optional. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).",
          "type": "string"
        },
        "explicitDecodingConfig": {
          "$ref": "ExplicitDecodingConfig",
          "description": "Explicitly specified decoding parameters. Required if using headerless PCM audio (linear16, mulaw, alaw)."
        },
        "adaptation": {
          "$ref": "SpeechAdaptation",
          "description": "Speech adaptation context that weights recognizer predictions for specific words and phrases."
        }
      },
      "id": "RecognitionConfig",
      "type": "object"
    },
    "BatchRecognizeTranscriptionMetadata": {
      "description": "Metadata about transcription for a single file (for example, progress percent).",
      "properties": {
        "error": {
          "$ref": "Status",
          "description": "Error if one was encountered."
        },
        "progressPercent": {
          "type": "integer",
          "description": "How much of the file has been transcribed so far.",
          "format": "int32"
        },
        "uri": {
          "description": "The Cloud Storage URI to which recognition results will be written.",
          "type": "string"
        }
      },
      "id": "BatchRecognizeTranscriptionMetadata",
      "type": "object"
    },
    "UndeletePhraseSetRequest": {
      "id": "UndeletePhraseSetRequest",
      "properties": {
        "validateOnly": {
          "description": "If set, validate the request and preview the undeleted PhraseSet, but do not actually undelete it.",
          "type": "boolean"
        },
        "name": {
          "description": "Required. The name of the PhraseSet to undelete. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`",
          "type": "string"
        },
        "etag": {
          "type": "string",
          "description": "This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding."
        }
      },
      "description": "Request message for the UndeletePhraseSet method.",
      "type": "object"
    },
    "CreateCustomClassRequest": {
      "description": "Request message for the CreateCustomClass method.",
      "properties": {
        "customClassId": {
          "description": "The ID to use for the CustomClass, which will become the final component of the CustomClass's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.",
          "type": "string"
        },
        "validateOnly": {
          "description": "If set, validate the request and preview the CustomClass, but do not actually create it.",
          "type": "boolean"
        },
        "customClass": {
          "$ref": "CustomClass",
          "description": "Required. The CustomClass to create."
        },
        "parent": {
          "description": "Required. The project and location where this CustomClass will be created. The expected format is `projects/{project}/locations/{location}`.",
          "type": "string"
        }
      },
      "id": "CreateCustomClassRequest",
      "type": "object"
    },
    "ListPhraseSetsResponse": {
      "description": "Response message for the ListPhraseSets method.",
      "properties": {
        "phraseSets": {
          "type": "array",
          "description": "The list of requested PhraseSets.",
          "items": {
            "$ref": "PhraseSet"
          }
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. This token expires after 72 hours."
        }
      },
      "id": "ListPhraseSetsResponse",
      "type": "object"
    },
    "UpdatePhraseSetRequest": {
      "description": "Request message for the UpdatePhraseSet method.",
      "properties": {
        "updateMask": {
          "format": "google-fieldmask",
          "description": "The list of fields to update. If empty, all non-default valued fields are considered for update. Use `*` to update the entire PhraseSet resource.",
          "type": "string"
        },
        "phraseSet": {
          "$ref": "PhraseSet",
          "description": "Required. The PhraseSet to update. The PhraseSet's `name` field is used to identify the PhraseSet to update. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`."
        },
        "validateOnly": {
          "description": "If set, validate the request and preview the updated PhraseSet, but do not actually update it.",
          "type": "boolean"
        }
      },
      "type": "object",
      "id": "UpdatePhraseSetRequest"
    },
    "DeleteCustomClassRequest": {
      "type": "object",
      "properties": {
        "allowMissing": {
          "type": "boolean",
          "description": "If set to true, and the CustomClass is not found, the request will succeed and be a no-op (no Operation is recorded in this case)."
        },
        "name": {
          "description": "Required. The name of the CustomClass to delete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}`",
          "type": "string"
        },
        "etag": {
          "type": "string",
          "description": "This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding."
        },
        "validateOnly": {
          "type": "boolean",
          "description": "If set, validate the request and preview the deleted CustomClass, but do not actually delete it."
        }
      },
      "id": "DeleteCustomClassRequest",
      "description": "Request message for the DeleteCustomClass method."
    },
    "BatchRecognizeFileResult": {
      "id": "BatchRecognizeFileResult",
      "description": "Final results for a single file.",
      "properties": {
        "transcript": {
          "description": "Deprecated. Use `inline_result.transcript` instead.",
          "$ref": "BatchRecognizeResults",
          "deprecated": true
        },
        "uri": {
          "deprecated": true,
          "type": "string",
          "description": "Deprecated. Use `cloud_storage_result.native_format_uri` instead."
        },
        "error": {
          "$ref": "Status",
          "description": "Error if one was encountered."
        },
        "metadata": {
          "$ref": "RecognitionResponseMetadata"
        },
        "cloudStorageResult": {
          "$ref": "CloudStorageResult",
          "description": "Recognition results written to Cloud Storage. This is populated only when GcsOutputConfig is set in the RecognitionOutputConfig."
        },
        "inlineResult": {
          "$ref": "InlineResult",
          "description": "Recognition results. This is populated only when InlineOutputConfig is set in the RecognitionOutputConfig."
        }
      },
      "type": "object"
    },
    "WordInfo": {
      "description": "Word-specific information for recognized words.",
      "type": "object",
      "properties": {
        "confidence": {
          "description": "The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is set only for the top alternative of a non-streaming result or, of a streaming result where is_final is set to `true`. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set.",
          "type": "number",
          "format": "float"
        },
        "word": {
          "description": "The word corresponding to this set of information.",
          "type": "string"
        },
        "speakerLabel": {
          "description": "A distinct label is assigned for every speaker within the audio. This field specifies which one of those speakers was detected to have spoken this word. `speaker_label` is set if SpeakerDiarizationConfig is given and only in the top alternative.",
          "type": "string"
        },
        "startOffset": {
          "type": "string",
          "format": "google-duration",
          "description": "Time offset relative to the beginning of the audio, and corresponding to the start of the spoken word. This field is only set if enable_word_time_offsets is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary."
        },
        "endOffset": {
          "format": "google-duration",
          "description": "Time offset relative to the beginning of the audio, and corresponding to the end of the spoken word. This field is only set if enable_word_time_offsets is `true` and only in the top hypothesis. This is an experimental feature and the accuracy of the time offset can vary.",
          "type": "string"
        }
      },
      "id": "WordInfo"
    },
    "StreamingRecognitionResult": {
      "properties": {
        "languageCode": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag of the language in this result. This language code was detected to have the most likelihood of being spoken in the audio."
        },
        "channelTag": {
          "description": "For multi-channel audio, this is the channel number corresponding to the recognized result for the audio from that channel. For `audio_channel_count` = `N`, its output values can range from `1` to `N`.",
          "type": "integer",
          "format": "int32"
        },
        "alternatives": {
          "type": "array",
          "items": {
            "$ref": "SpeechRecognitionAlternative"
          },
          "description": "May contain one or more recognition hypotheses. These alternatives are ordered in terms of accuracy, with the top (first) alternative being the most probable, as ranked by the recognizer."
        },
        "isFinal": {
          "description": "If `false`, this StreamingRecognitionResult represents an interim result that may change. If `true`, this is the final time the speech service will return this particular StreamingRecognitionResult, the recognizer will not return any further hypotheses for this portion of the transcript and corresponding audio.",
          "type": "boolean"
        },
        "resultEndOffset": {
          "description": "Time offset of the end of this result relative to the beginning of the audio.",
          "type": "string",
          "format": "google-duration"
        },
        "stability": {
          "format": "float",
          "type": "number",
          "description": "An estimate of the likelihood that the recognizer will not change its guess about this interim result. Values range from 0.0 (completely unstable) to 1.0 (completely stable). This field is only provided for interim results (is_final=`false`). The default of 0.0 is a sentinel value indicating `stability` was not set."
        }
      },
      "id": "StreamingRecognitionResult",
      "description": "A streaming speech recognition result corresponding to a portion of the audio that is currently being processed.",
      "type": "object"
    },
    "SpeechRecognitionAlternative": {
      "id": "SpeechRecognitionAlternative",
      "properties": {
        "words": {
          "description": "A list of word-specific information for each recognized word. When the SpeakerDiarizationConfig is set, you will see all the words from the beginning of the audio.",
          "items": {
            "$ref": "WordInfo"
          },
          "type": "array"
        },
        "transcript": {
          "type": "string",
          "description": "Transcript text representing the words that the user spoke."
        },
        "confidence": {
          "format": "float",
          "type": "number",
          "description": "The confidence estimate between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. This field is set only for the top alternative of a non-streaming result or, of a streaming result where is_final is set to `true`. This field is not guaranteed to be accurate and users should not rely on it to be always provided. The default of 0.0 is a sentinel value indicating `confidence` was not set."
        }
      },
      "type": "object",
      "description": "Alternative hypotheses (a.k.a. n-best list)."
    },
    "DeletePhraseSetRequest": {
      "type": "object",
      "description": "Request message for the DeletePhraseSet method.",
      "id": "DeletePhraseSetRequest",
      "properties": {
        "validateOnly": {
          "description": "If set, validate the request and preview the deleted PhraseSet, but do not actually delete it.",
          "type": "boolean"
        },
        "allowMissing": {
          "type": "boolean",
          "description": "If set to true, and the PhraseSet is not found, the request will succeed and be a no-op (no Operation is recorded in this case)."
        },
        "name": {
          "description": "Required. The name of the PhraseSet to delete. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`",
          "type": "string"
        },
        "etag": {
          "description": "This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding.",
          "type": "string"
        }
      }
    },
    "DenoiserConfig": {
      "description": "Denoiser config. May not be supported for all models and may have no effect.",
      "type": "object",
      "properties": {
        "denoiseAudio": {
          "description": "Denoise audio before sending to the transcription model.",
          "type": "boolean"
        },
        "snrThreshold": {
          "description": "Signal-to-Noise Ratio (SNR) threshold for the denoiser. Here SNR means the loudness of the speech signal. Audio with an SNR below this threshold, meaning the speech is too quiet, will be prevented from being sent to the transcription model. If snr_threshold=0, no filtering will be applied.",
          "type": "number",
          "format": "float"
        }
      },
      "id": "DenoiserConfig"
    },
    "ListOperationsResponse": {
      "type": "object",
      "description": "The response message for Operations.ListOperations.",
      "id": "ListOperationsResponse",
      "properties": {
        "nextPageToken": {
          "type": "string",
          "description": "The standard List next-page token."
        },
        "operations": {
          "items": {
            "$ref": "Operation"
          },
          "type": "array",
          "description": "A list of operations that matches the specified filter in the request."
        },
        "unreachable": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations."
        }
      }
    },
    "RecognizeRequest": {
      "type": "object",
      "properties": {
        "content": {
          "format": "byte",
          "description": "The audio data bytes encoded as specified in RecognitionConfig. As with all bytes fields, proto buffers use a pure binary representation, whereas JSON representations use base64.",
          "type": "string"
        },
        "config": {
          "description": "Features and audio metadata to use for the Automatic Speech Recognition. This field in combination with the config_mask field can be used to override parts of the default_recognition_config of the Recognizer resource.",
          "$ref": "RecognitionConfig"
        },
        "uri": {
          "description": "URI that points to a file that contains audio data bytes as specified in RecognitionConfig. The file must not be compressed (for example, gzip). Currently, only Google Cloud Storage URIs are supported, which must be specified in the following format: `gs://bucket_name/object_name` (other URI formats return INVALID_ARGUMENT). For more information, see [Request URIs](https://cloud.google.com/storage/docs/reference-uris).",
          "type": "string"
        },
        "configMask": {
          "format": "google-fieldmask",
          "description": "The list of fields in config that override the values in the default_recognition_config of the recognizer during this recognition request. If no mask is provided, all non-default valued fields in config override the values in the recognizer for this recognition request. If a mask is provided, only the fields listed in the mask override the config in the recognizer for this recognition request. If a wildcard (`*`) is provided, config completely overrides and replaces the config in the recognizer for this recognition request.",
          "type": "string"
        }
      },
      "description": "Request message for the Recognize method. Either `content` or `uri` must be supplied. Supplying both or neither returns INVALID_ARGUMENT. See [content limits](https://cloud.google.com/speech-to-text/quotas#content).",
      "id": "RecognizeRequest"
    },
    "InlineResult": {
      "properties": {
        "srtCaptions": {
          "description": "The transcript for the audio file as SRT formatted captions. This is populated only when `SRT` output is requested.",
          "type": "string"
        },
        "transcript": {
          "$ref": "BatchRecognizeResults",
          "description": "The transcript for the audio file."
        },
        "vttCaptions": {
          "type": "string",
          "description": "The transcript for the audio file as VTT formatted captions. This is populated only when `VTT` output is requested."
        }
      },
      "description": "Final results returned inline in the recognition response.",
      "type": "object",
      "id": "InlineResult"
    },
    "PhraseSet": {
      "type": "object",
      "description": "PhraseSet for biasing in speech recognition. A PhraseSet is used to provide \"hints\" to the speech recognizer to favor specific words and phrases in the results.",
      "properties": {
        "boost": {
          "type": "number",
          "format": "float",
          "description": "Hint Boost. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Valid `boost` values are between 0 (exclusive) and 20. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests."
        },
        "phrases": {
          "type": "array",
          "items": {
            "$ref": "Phrase"
          },
          "description": "A list of word and phrases."
        },
        "annotations": {
          "description": "Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "deleteTime": {
          "format": "google-datetime",
          "type": "string",
          "readOnly": true,
          "description": "Output only. The time at which this resource was requested for deletion."
        },
        "kmsKeyName": {
          "description": "Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the PhraseSet is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Output only. Identifier. The resource name of the PhraseSet. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.",
          "readOnly": true
        },
        "uid": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. System-assigned unique identifier for the PhraseSet."
        },
        "updateTime": {
          "readOnly": true,
          "description": "Output only. The most recent time this resource was modified.",
          "type": "string",
          "format": "google-datetime"
        },
        "etag": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding."
        },
        "expireTime": {
          "description": "Output only. The time at which this resource will be purged.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "kmsKeyVersionName": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which the PhraseSet is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`."
        },
        "reconciling": {
          "readOnly": true,
          "type": "boolean",
          "description": "Output only. Whether or not this PhraseSet is in the process of being updated."
        },
        "displayName": {
          "type": "string",
          "description": "User-settable, human-readable name for the PhraseSet. Must be 63 characters or less."
        },
        "state": {
          "type": "string",
          "enumDescriptions": [
            "Unspecified state. This is only used/useful for distinguishing unset values.",
            "The normal and active state.",
            "This PhraseSet has been deleted."
          ],
          "enum": [
            "STATE_UNSPECIFIED",
            "ACTIVE",
            "DELETED"
          ],
          "readOnly": true,
          "description": "Output only. The PhraseSet lifecycle state."
        },
        "createTime": {
          "readOnly": true,
          "description": "Output only. Creation time.",
          "type": "string",
          "format": "google-datetime"
        }
      },
      "id": "PhraseSet"
    },
    "ListCustomClassesResponse": {
      "description": "Response message for the ListCustomClasses method.",
      "properties": {
        "customClasses": {
          "description": "The list of requested CustomClasses.",
          "items": {
            "$ref": "CustomClass"
          },
          "type": "array"
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages. This token expires after 72 hours."
        }
      },
      "type": "object",
      "id": "ListCustomClassesResponse"
    },
    "CustomClass": {
      "description": "CustomClass for biasing in speech recognition. Used to define a set of words or phrases that represents a common concept or theme likely to appear in your audio, for example a list of passenger ship names.",
      "id": "CustomClass",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. Identifier. The resource name of the CustomClass. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}`."
        },
        "etag": {
          "readOnly": true,
          "description": "Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding.",
          "type": "string"
        },
        "createTime": {
          "description": "Output only. Creation time.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "items": {
          "items": {
            "$ref": "ClassItem"
          },
          "description": "A collection of class items.",
          "type": "array"
        },
        "kmsKeyVersionName": {
          "description": "Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which the CustomClass is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.",
          "type": "string",
          "readOnly": true
        },
        "expireTime": {
          "type": "string",
          "format": "google-datetime",
          "readOnly": true,
          "description": "Output only. The time at which this resource will be purged."
        },
        "uid": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. System-assigned unique identifier for the CustomClass."
        },
        "annotations": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object",
          "description": "Optional. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations."
        },
        "displayName": {
          "description": "Optional. User-settable, human-readable name for the CustomClass. Must be 63 characters or less.",
          "type": "string"
        },
        "state": {
          "description": "Output only. The CustomClass lifecycle state.",
          "readOnly": true,
          "enum": [
            "STATE_UNSPECIFIED",
            "ACTIVE",
            "DELETED"
          ],
          "enumDescriptions": [
            "Unspecified state. This is only used/useful for distinguishing unset values.",
            "The normal and active state.",
            "This CustomClass has been deleted."
          ],
          "type": "string"
        },
        "deleteTime": {
          "readOnly": true,
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The time at which this resource was requested for deletion."
        },
        "updateTime": {
          "format": "google-datetime",
          "description": "Output only. The most recent time this resource was modified.",
          "readOnly": true,
          "type": "string"
        },
        "reconciling": {
          "description": "Output only. Whether or not this CustomClass is in the process of being updated.",
          "readOnly": true,
          "type": "boolean"
        },
        "kmsKeyName": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the CustomClass is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`."
        }
      }
    },
    "Operation": {
      "properties": {
        "response": {
          "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.",
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object. Contains field @type with type URL.",
            "type": "any"
          }
        },
        "name": {
          "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
          "type": "string"
        },
        "metadata": {
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object. Contains field @type with type URL."
          },
          "type": "object",
          "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any."
        },
        "error": {
          "description": "The error result of the operation in case of failure or cancellation.",
          "$ref": "Status"
        },
        "done": {
          "type": "boolean",
          "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available."
        }
      },
      "description": "This resource represents a long-running operation that is the result of a network API call.",
      "type": "object",
      "id": "Operation"
    },
    "NativeOutputFileFormatConfig": {
      "id": "NativeOutputFileFormatConfig",
      "description": "Output configurations for serialized `BatchRecognizeResults` protos.",
      "type": "object",
      "properties": {}
    },
    "GcsOutputConfig": {
      "description": "Output configurations for Cloud Storage.",
      "properties": {
        "uri": {
          "type": "string",
          "description": "The Cloud Storage URI prefix with which recognition results will be written."
        }
      },
      "type": "object",
      "id": "GcsOutputConfig"
    },
    "Phrase": {
      "properties": {
        "value": {
          "description": "The phrase itself.",
          "type": "string"
        },
        "boost": {
          "format": "float",
          "type": "number",
          "description": "Hint Boost. Overrides the boost set at the phrase set level. Positive value will increase the probability that a specific phrase will be recognized over other similar sounding phrases. The higher the boost, the higher the chance of false positive recognition as well. Negative boost values would correspond to anti-biasing. Anti-biasing is not enabled, so negative boost values will return an error. Boost values must be between 0 and 20. Any values outside that range will return an error. We recommend using a binary search approach to finding the optimal value for your use case as well as adding phrases both with and without boost to your requests."
        }
      },
      "type": "object",
      "description": "A Phrase contains words and phrase \"hints\" so that the speech recognition is more likely to recognize them. This can be used to improve the accuracy for specific words and phrases, for example, if specific commands are typically spoken by the user. This can also be used to add additional words to the vocabulary of the recognizer. List items can also include CustomClass references containing groups of words that represent common concepts that occur in natural language.",
      "id": "Phrase"
    },
    "Recognizer": {
      "description": "A Recognizer message. Stores recognition configuration and metadata.",
      "id": "Recognizer",
      "properties": {
        "kmsKeyName": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the Recognizer is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`."
        },
        "updateTime": {
          "type": "string",
          "format": "google-datetime",
          "readOnly": true,
          "description": "Output only. The most recent time this Recognizer was modified."
        },
        "deleteTime": {
          "type": "string",
          "format": "google-datetime",
          "readOnly": true,
          "description": "Output only. The time at which this Recognizer was requested for deletion."
        },
        "kmsKeyVersionName": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which the Recognizer is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`."
        },
        "annotations": {
          "type": "object",
          "description": "Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations.",
          "additionalProperties": {
            "type": "string"
          }
        },
        "model": {
          "deprecated": true,
          "description": "Optional. This field is now deprecated. Prefer the `model` field in the `RecognitionConfig` message. Which model to use for recognition requests. Select the model best suited to your domain to get best results. Guidance for choosing which model to use can be found in the [Transcription Models Documentation](https://cloud.google.com/speech-to-text/v2/docs/transcription-model) and the models supported in each region can be found in the [Table Of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages).",
          "type": "string"
        },
        "uid": {
          "readOnly": true,
          "description": "Output only. System-assigned unique identifier for the Recognizer.",
          "type": "string"
        },
        "displayName": {
          "description": "User-settable, human-readable name for the Recognizer. Must be 63 characters or less.",
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Output only. Identifier. The resource name of the Recognizer. Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.",
          "readOnly": true
        },
        "etag": {
          "description": "Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding.",
          "type": "string",
          "readOnly": true
        },
        "reconciling": {
          "description": "Output only. Whether or not this Recognizer is in the process of being updated.",
          "readOnly": true,
          "type": "boolean"
        },
        "createTime": {
          "description": "Output only. Creation time.",
          "readOnly": true,
          "type": "string",
          "format": "google-datetime"
        },
        "languageCodes": {
          "description": "Optional. This field is now deprecated. Prefer the `language_codes` field in the `RecognitionConfig` message. The language of the supplied audio as a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag. Supported languages for each model are listed in the [Table of Supported Models](https://cloud.google.com/speech-to-text/v2/docs/speech-to-text-supported-languages). If additional languages are provided, recognition result will contain recognition in the most likely language detected. The recognition result will include the language tag of the language detected in the audio. When you create or update a Recognizer, these values are stored in normalized BCP-47 form. For example, \"en-us\" is stored as \"en-US\".",
          "deprecated": true,
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "defaultRecognitionConfig": {
          "description": "Default configuration to use for requests with this Recognizer. This can be overwritten by inline configuration in the RecognizeRequest.config field.",
          "$ref": "RecognitionConfig"
        },
        "state": {
          "readOnly": true,
          "type": "string",
          "enum": [
            "STATE_UNSPECIFIED",
            "ACTIVE",
            "DELETED"
          ],
          "enumDescriptions": [
            "The default value. This value is used if the state is omitted.",
            "The Recognizer is active and ready for use.",
            "This Recognizer has been deleted."
          ],
          "description": "Output only. The Recognizer lifecycle state."
        },
        "expireTime": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The time at which this Recognizer will be purged.",
          "format": "google-datetime"
        }
      },
      "type": "object"
    },
    "Status": {
      "id": "Status",
      "properties": {
        "message": {
          "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
          "type": "string"
        },
        "code": {
          "type": "integer",
          "description": "The status code, which should be an enum value of google.rpc.Code.",
          "format": "int32"
        },
        "details": {
          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
          "type": "array",
          "items": {
            "additionalProperties": {
              "type": "any",
              "description": "Properties of the object. Contains field @type with type URL."
            },
            "type": "object"
          }
        }
      },
      "type": "object",
      "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors)."
    },
    "CloudStorageResult": {
      "properties": {
        "srtFormatUri": {
          "description": "The Cloud Storage URI to which recognition results were written as SRT formatted captions. This is populated only when `SRT` output is requested.",
          "type": "string"
        },
        "uri": {
          "description": "The Cloud Storage URI to which recognition results were written.",
          "type": "string"
        },
        "vttFormatUri": {
          "description": "The Cloud Storage URI to which recognition results were written as VTT formatted captions. This is populated only when `VTT` output is requested.",
          "type": "string"
        }
      },
      "description": "Final results written to Cloud Storage.",
      "type": "object",
      "id": "CloudStorageResult"
    },
    "SrtOutputFileFormatConfig": {
      "description": "Output configurations [SubRip Text](https://www.matroska.org/technical/subtitles.html#srt-subtitles) formatted subtitle file.",
      "type": "object",
      "id": "SrtOutputFileFormatConfig",
      "properties": {}
    },
    "OperationMetadata": {
      "properties": {
        "updateConfigRequest": {
          "deprecated": true,
          "description": "The UpdateConfigRequest that spawned the Operation.",
          "$ref": "UpdateConfigRequest"
        },
        "updatePhraseSetRequest": {
          "$ref": "UpdatePhraseSetRequest",
          "description": "The UpdatePhraseSetRequest that spawned the Operation."
        },
        "progressPercent": {
          "type": "integer",
          "description": "The percent progress of the Operation. Values can range from 0-100. If the value is 100, then the operation is finished.",
          "format": "int32"
        },
        "createCustomClassRequest": {
          "description": "The CreateCustomClassRequest that spawned the Operation.",
          "$ref": "CreateCustomClassRequest"
        },
        "deleteRecognizerRequest": {
          "description": "The DeleteRecognizerRequest that spawned the Operation.",
          "$ref": "DeleteRecognizerRequest"
        },
        "kmsKeyName": {
          "type": "string",
          "description": "The [KMS key name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which the content of the Operation is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`."
        },
        "updateTime": {
          "description": "The time the operation was last updated.",
          "type": "string",
          "format": "google-datetime"
        },
        "undeleteRecognizerRequest": {
          "$ref": "UndeleteRecognizerRequest",
          "description": "The UndeleteRecognizerRequest that spawned the Operation."
        },
        "deleteCustomClassRequest": {
          "description": "The DeleteCustomClassRequest that spawned the Operation.",
          "$ref": "DeleteCustomClassRequest"
        },
        "resource": {
          "description": "The resource path for the target of the operation.",
          "type": "string"
        },
        "batchRecognizeRequest": {
          "$ref": "BatchRecognizeRequest",
          "description": "The BatchRecognizeRequest that spawned the Operation."
        },
        "updateCustomClassRequest": {
          "$ref": "UpdateCustomClassRequest",
          "description": "The UpdateCustomClassRequest that spawned the Operation."
        },
        "deletePhraseSetRequest": {
          "description": "The DeletePhraseSetRequest that spawned the Operation.",
          "$ref": "DeletePhraseSetRequest"
        },
        "batchRecognizeMetadata": {
          "description": "Metadata specific to the BatchRecognize method.",
          "$ref": "BatchRecognizeMetadata"
        },
        "kmsKeyVersionName": {
          "type": "string",
          "description": "The [KMS key version name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions) with which content of the Operation is encrypted. The expected format is `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`."
        },
        "method": {
          "description": "The method that triggered the operation.",
          "type": "string"
        },
        "createPhraseSetRequest": {
          "description": "The CreatePhraseSetRequest that spawned the Operation.",
          "$ref": "CreatePhraseSetRequest"
        },
        "undeleteCustomClassRequest": {
          "$ref": "UndeleteCustomClassRequest",
          "description": "The UndeleteCustomClassRequest that spawned the Operation."
        },
        "updateRecognizerRequest": {
          "$ref": "UpdateRecognizerRequest",
          "description": "The UpdateRecognizerRequest that spawned the Operation."
        },
        "undeletePhraseSetRequest": {
          "description": "The UndeletePhraseSetRequest that spawned the Operation.",
          "$ref": "UndeletePhraseSetRequest"
        },
        "createRecognizerRequest": {
          "description": "The CreateRecognizerRequest that spawned the Operation.",
          "$ref": "CreateRecognizerRequest"
        },
        "createTime": {
          "description": "The time the operation was created.",
          "type": "string",
          "format": "google-datetime"
        }
      },
      "description": "Represents the metadata of a long-running operation.",
      "type": "object",
      "id": "OperationMetadata"
    },
    "CreateRecognizerRequest": {
      "id": "CreateRecognizerRequest",
      "properties": {
        "recognizerId": {
          "type": "string",
          "description": "The ID to use for the Recognizer, which will become the final component of the Recognizer's resource name. This value should be 4-63 characters, and valid characters are /a-z-/."
        },
        "parent": {
          "description": "Required. The project and location where this Recognizer will be created. The expected format is `projects/{project}/locations/{location}`.",
          "type": "string"
        },
        "validateOnly": {
          "description": "If set, validate the request and preview the Recognizer, but do not actually create it.",
          "type": "boolean"
        },
        "recognizer": {
          "description": "Required. The Recognizer to create.",
          "$ref": "Recognizer"
        }
      },
      "type": "object",
      "description": "Request message for the CreateRecognizer method."
    },
    "SpeakerDiarizationConfig": {
      "description": "Configuration to enable speaker diarization.",
      "properties": {
        "minSpeakerCount": {
          "format": "int32",
          "description": "Optional. The system automatically determines the number of speakers. This value is not currently used.",
          "type": "integer"
        },
        "maxSpeakerCount": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. The system automatically determines the number of speakers. This value is not currently used."
        }
      },
      "id": "SpeakerDiarizationConfig",
      "type": "object"
    },
    "DeleteRecognizerRequest": {
      "id": "DeleteRecognizerRequest",
      "description": "Request message for the DeleteRecognizer method.",
      "type": "object",
      "properties": {
        "allowMissing": {
          "description": "If set to true, and the Recognizer is not found, the request will succeed and be a no-op (no Operation is recorded in this case).",
          "type": "boolean"
        },
        "validateOnly": {
          "description": "If set, validate the request and preview the deleted Recognizer, but do not actually delete it.",
          "type": "boolean"
        },
        "name": {
          "description": "Required. The name of the Recognizer to delete. Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`",
          "type": "string"
        },
        "etag": {
          "description": "This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding.",
          "type": "string"
        }
      }
    },
    "ModelFeatures": {
      "description": "Represents the collection of features belonging to a model",
      "id": "ModelFeatures",
      "properties": {
        "modelFeature": {
          "type": "array",
          "items": {
            "$ref": "ModelFeature"
          },
          "description": "Repeated field that contains all features of the model"
        }
      },
      "type": "object"
    },
    "ModelFeature": {
      "type": "object",
      "id": "ModelFeature",
      "description": "Represents a singular feature of a model. If the feature is `recognizer`, the release_state of the feature represents the release_state of the model",
      "properties": {
        "releaseState": {
          "type": "string",
          "description": "The release state of the feature"
        },
        "feature": {
          "type": "string",
          "description": "The name of the feature (Note: the feature can be `recognizer`)"
        }
      }
    },
    "UndeleteCustomClassRequest": {
      "id": "UndeleteCustomClassRequest",
      "type": "object",
      "properties": {
        "validateOnly": {
          "description": "If set, validate the request and preview the undeleted CustomClass, but do not actually undelete it.",
          "type": "boolean"
        },
        "name": {
          "type": "string",
          "description": "Required. The name of the CustomClass to undelete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}`"
        },
        "etag": {
          "type": "string",
          "description": "This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding."
        }
      },
      "description": "Request message for the UndeleteCustomClass method."
    },
    "InlineOutputConfig": {
      "description": "Output configurations for inline response.",
      "id": "InlineOutputConfig",
      "type": "object",
      "properties": {}
    },
    "RecognitionOutputConfig": {
      "properties": {
        "gcsOutputConfig": {
          "description": "If this message is populated, recognition results are written to the provided Google Cloud Storage URI.",
          "$ref": "GcsOutputConfig"
        },
        "outputFormatConfig": {
          "$ref": "OutputFormatConfig",
          "description": "Optional. Configuration for the format of the results stored to `output`. If unspecified transcripts will be written in the `NATIVE` format only."
        },
        "inlineResponseConfig": {
          "$ref": "InlineOutputConfig",
          "description": "If this message is populated, recognition results are provided in the BatchRecognizeResponse message of the Operation when completed. This is only supported when calling BatchRecognize with just one audio file."
        }
      },
      "id": "RecognitionOutputConfig",
      "description": "Configuration options for the output(s) of recognition.",
      "type": "object"
    },
    "RecognitionFeatures": {
      "properties": {
        "multiChannelMode": {
          "type": "string",
          "enumDescriptions": [
            "Default value for the multi-channel mode. If the audio contains multiple channels, only the first channel will be transcribed; other channels will be ignored.",
            "If selected, each channel in the provided audio is transcribed independently. This cannot be selected if the selected model is `latest_short`."
          ],
          "description": "Mode for recognizing multi-channel audio.",
          "enum": [
            "MULTI_CHANNEL_MODE_UNSPECIFIED",
            "SEPARATE_RECOGNITION_PER_CHANNEL"
          ]
        },
        "diarizationConfig": {
          "$ref": "SpeakerDiarizationConfig",
          "description": "Configuration to enable speaker diarization. To enable diarization, set this field to an empty SpeakerDiarizationConfig message."
        },
        "maxAlternatives": {
          "description": "Maximum number of recognition hypotheses to be returned. The server may return fewer than `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will return a maximum of one. If omitted, will return a maximum of one.",
          "type": "integer",
          "format": "int32"
        },
        "profanityFilter": {
          "type": "boolean",
          "description": "If set to `true`, the server will attempt to filter out profanities, replacing all but the initial character in each filtered word with asterisks, for instance, \"f***\". If set to `false` or omitted, profanities won't be filtered out."
        },
        "customPromptConfig": {
          "description": "Optional. Configuration to enable custom prompt for chirp3.",
          "$ref": "CustomPromptConfig"
        },
        "enableSpokenEmojis": {
          "type": "boolean",
          "description": "The spoken emoji behavior for the call. If `true`, adds spoken emoji formatting for the request. This will replace spoken emojis with the corresponding Unicode symbols in the final transcript. If `false`, spoken emojis are not replaced."
        },
        "enableSpokenPunctuation": {
          "type": "boolean",
          "description": "The spoken punctuation behavior for the call. If `true`, replaces spoken punctuation with the corresponding symbols in the request. For example, \"how are you question mark\" becomes \"how are you?\". See https://cloud.google.com/speech-to-text/docs/spoken-punctuation for support. If `false`, spoken punctuation is not replaced."
        },
        "enableWordConfidence": {
          "type": "boolean",
          "description": "If `true`, the top result includes a list of words and the confidence for those words. If `false`, no word-level confidence information is returned. The default is `false`."
        },
        "enableWordTimeOffsets": {
          "description": "If `true`, the top result includes a list of words and the start and end time offsets (timestamps) for those words. If `false`, no word-level time offset information is returned. The default is `false`.",
          "type": "boolean"
        },
        "enableAutomaticPunctuation": {
          "description": "If `true`, adds punctuation to recognition result hypotheses. This feature is only available in select languages. The default `false` value does not add punctuation to result hypotheses.",
          "type": "boolean"
        }
      },
      "id": "RecognitionFeatures",
      "description": "Available recognition features.",
      "type": "object"
    },
    "CustomPromptConfig": {
      "id": "CustomPromptConfig",
      "type": "object",
      "description": "Configuration to enable custom prompt in chirp3.",
      "properties": {
        "customPrompt": {
          "type": "string",
          "description": "Optional. The custom instructions to override the existing instructions for chirp3."
        }
      }
    },
    "AdaptationPhraseSet": {
      "description": "A biasing PhraseSet, which can be either a string referencing the name of an existing PhraseSets resource, or an inline definition of a PhraseSet.",
      "properties": {
        "inlinePhraseSet": {
          "$ref": "PhraseSet",
          "description": "An inline defined PhraseSet."
        },
        "phraseSet": {
          "type": "string",
          "description": "The name of an existing PhraseSet resource. The user must have read access to the resource and it must not be deleted."
        }
      },
      "type": "object",
      "id": "AdaptationPhraseSet"
    }
  },
  "revision": "20261110",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "baseUrl": "https://speech.googleapis.com/",
  "fullyEncodeReservedExpansion": true,
  "parameters": {
    "$.xgafv": {
      "description": "V1 error format.",
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ],
      "enum": [
        "1",
        "2"
      ],
      "location": "query",
      "type": "string"
    },
    "access_token": {
      "type": "string",
      "description": "OAuth access token.",
      "location": "query"
    },
    "quotaUser": {
      "type": "string",
      "location": "query",
      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters."
    },
    "fields": {
      "type": "string",
      "description": "Selector specifying which fields to include in a partial response.",
      "location": "query"
    },
    "key": {
      "location": "query",
      "type": "string",
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token."
    },
    "oauth_token": {
      "location": "query",
      "description": "OAuth 2.0 token for the current user.",
      "type": "string"
    },
    "prettyPrint": {
      "default": "true",
      "location": "query",
      "type": "boolean",
      "description": "Returns response with indentations and line breaks."
    },
    "callback": {
      "type": "string",
      "description": "JSONP",
      "location": "query"
    },
    "alt": {
      "description": "Data format for response.",
      "location": "query",
      "type": "string",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "default": "json"
    },
    "uploadType": {
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
      "location": "query",
      "type": "string"
    },
    "upload_protocol": {
      "type": "string",
      "location": "query",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
    }
  },
  "mtlsRootUrl": "https://speech.mtls.googleapis.com/",
  "kind": "discovery#restDescription",
  "id": "speech:v2",
  "title": "Cloud Speech-to-Text API",
  "endpoints": [
    {
      "location": "us-central1",
      "endpointUrl": "https://speech.us-central1.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "location": "us-west1",
      "endpointUrl": "https://speech.us-west1.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "endpointUrl": "https://speech.me-west1.rep.googleapis.com/",
      "description": "Regional Endpoint",
      "location": "me-west1"
    },
    {
      "endpointUrl": "https://speech.europe-west1.rep.googleapis.com/",
      "description": "Regional Endpoint",
      "location": "europe-west1"
    },
    {
      "endpointUrl": "https://speech.europe-west2.rep.googleapis.com/",
      "description": "Regional Endpoint",
      "location": "europe-west2"
    },
    {
      "location": "europe-west3",
      "endpointUrl": "https://speech.europe-west3.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "location": "europe-west4",
      "endpointUrl": "https://speech.europe-west4.rep.googleapis.com/",
      "description": "Regional Endpoint"
    }
  ],
  "resources": {
    "projects": {
      "resources": {
        "locations": {
          "methods": {
            "list": {
              "description": "Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.",
              "parameterOrder": [
                "name"
              ],
              "parameters": {
                "pageSize": {
                  "format": "int32",
                  "location": "query",
                  "type": "integer",
                  "description": "The maximum number of results to return. If not set, the service selects a default."
                },
                "pageToken": {
                  "location": "query",
                  "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page.",
                  "type": "string"
                },
                "filter": {
                  "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
                  "type": "string",
                  "location": "query"
                },
                "name": {
                  "required": true,
                  "pattern": "^projects/[^/]+$",
                  "location": "path",
                  "description": "The resource that owns the locations collection, if applicable.",
                  "type": "string"
                },
                "extraLocationTypes": {
                  "description": "Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.",
                  "location": "query",
                  "repeated": true,
                  "type": "string"
                }
              },
              "id": "speech.projects.locations.list",
              "flatPath": "v2/projects/{projectsId}/locations",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "path": "v2/{+name}/locations",
              "httpMethod": "GET",
              "response": {
                "$ref": "ListLocationsResponse"
              }
            },
            "get": {
              "id": "speech.projects.locations.get",
              "httpMethod": "GET",
              "flatPath": "v2/projects/{projectsId}/locations/{locationsId}",
              "description": "Gets information about a location.",
              "path": "v2/{+name}",
              "response": {
                "$ref": "Location"
              },
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "parameterOrder": [
                "name"
              ],
              "parameters": {
                "name": {
                  "required": true,
                  "pattern": "^projects/[^/]+/locations/[^/]+$",
                  "location": "path",
                  "description": "Resource name for the location.",
                  "type": "string"
                }
              }
            }
          },
          "resources": {
            "config": {
              "methods": {
                "update": {
                  "description": "Updates the Config.",
                  "path": "v2/{+name}",
                  "id": "speech.projects.locations.config.update",
                  "parameters": {
                    "name": {
                      "description": "Output only. Identifier. The name of the config resource. There is exactly one config resource per project per location. The expected format is `projects/{project}/locations/{location}/config`.",
                      "pattern": "^projects/[^/]+/locations/[^/]+/config$",
                      "required": true,
                      "type": "string",
                      "location": "path"
                    },
                    "updateMask": {
                      "description": "The list of fields to be updated.",
                      "type": "string",
                      "format": "google-fieldmask",
                      "location": "query"
                    }
                  },
                  "request": {
                    "$ref": "Config"
                  },
                  "response": {
                    "$ref": "Config"
                  },
                  "parameterOrder": [
                    "name"
                  ],
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/config",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "httpMethod": "PATCH"
                },
                "get": {
                  "description": "Returns the requested Config.",
                  "parameters": {
                    "name": {
                      "location": "path",
                      "pattern": "^projects/[^/]+/locations/[^/]+/config$",
                      "description": "Required. The name of the config to retrieve. There is exactly one config resource per project per location. The expected format is `projects/{project}/locations/{location}/config`.",
                      "type": "string",
                      "required": true
                    }
                  },
                  "id": "speech.projects.locations.config.get",
                  "path": "v2/{+name}",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/config",
                  "parameterOrder": [
                    "name"
                  ],
                  "response": {
                    "$ref": "Config"
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "httpMethod": "GET"
                }
              }
            },
            "customClasses": {
              "methods": {
                "delete": {
                  "parameters": {
                    "validateOnly": {
                      "description": "If set, validate the request and preview the deleted CustomClass, but do not actually delete it.",
                      "location": "query",
                      "type": "boolean"
                    },
                    "etag": {
                      "description": "This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding.",
                      "location": "query",
                      "type": "string"
                    },
                    "allowMissing": {
                      "location": "query",
                      "description": "If set to true, and the CustomClass is not found, the request will succeed and be a no-op (no Operation is recorded in this case).",
                      "type": "boolean"
                    },
                    "name": {
                      "location": "path",
                      "type": "string",
                      "required": true,
                      "description": "Required. The name of the CustomClass to delete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}`",
                      "pattern": "^projects/[^/]+/locations/[^/]+/customClasses/[^/]+$"
                    }
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "description": "Deletes the CustomClass.",
                  "id": "speech.projects.locations.customClasses.delete",
                  "path": "v2/{+name}",
                  "httpMethod": "DELETE",
                  "response": {
                    "$ref": "Operation"
                  },
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/customClasses/{customClassesId}",
                  "parameterOrder": [
                    "name"
                  ]
                },
                "list": {
                  "description": "Lists CustomClasses.",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/customClasses",
                  "httpMethod": "GET",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "id": "speech.projects.locations.customClasses.list",
                  "parameterOrder": [
                    "parent"
                  ],
                  "response": {
                    "$ref": "ListCustomClassesResponse"
                  },
                  "parameters": {
                    "parent": {
                      "type": "string",
                      "pattern": "^projects/[^/]+/locations/[^/]+$",
                      "required": true,
                      "description": "Required. The project and location of CustomClass resources to list. The expected format is `projects/{project}/locations/{location}`.",
                      "location": "path"
                    },
                    "pageToken": {
                      "type": "string",
                      "location": "query",
                      "description": "A page token, received from a previous ListCustomClasses call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListCustomClasses must match the call that provided the page token."
                    },
                    "showDeleted": {
                      "description": "Whether, or not, to show resources that have been deleted.",
                      "location": "query",
                      "type": "boolean"
                    },
                    "pageSize": {
                      "type": "integer",
                      "location": "query",
                      "description": "Number of results per requests. A valid page_size ranges from 0 to 100 inclusive. If the page_size is zero or unspecified, a page size of 5 will be chosen. If the page size exceeds 100, it will be coerced down to 100. Note that a call might return fewer results than the requested page size.",
                      "format": "int32"
                    }
                  },
                  "path": "v2/{+parent}/customClasses"
                },
                "get": {
                  "parameters": {
                    "name": {
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/customClasses/[^/]+$",
                      "location": "path",
                      "description": "Required. The name of the CustomClass to retrieve. The expected format is `projects/{project}/locations/{location}/customClasses/{custom_class}`.",
                      "type": "string"
                    }
                  },
                  "description": "Returns the requested CustomClass.",
                  "path": "v2/{+name}",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/customClasses/{customClassesId}",
                  "id": "speech.projects.locations.customClasses.get",
                  "parameterOrder": [
                    "name"
                  ],
                  "httpMethod": "GET",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "response": {
                    "$ref": "CustomClass"
                  }
                },
                "patch": {
                  "id": "speech.projects.locations.customClasses.patch",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/customClasses/{customClassesId}",
                  "parameterOrder": [
                    "name"
                  ],
                  "parameters": {
                    "validateOnly": {
                      "type": "boolean",
                      "description": "If set, validate the request and preview the updated CustomClass, but do not actually update it.",
                      "location": "query"
                    },
                    "updateMask": {
                      "format": "google-fieldmask",
                      "location": "query",
                      "type": "string",
                      "description": "The list of fields to be updated. If empty, all fields are considered for update."
                    },
                    "name": {
                      "location": "path",
                      "pattern": "^projects/[^/]+/locations/[^/]+/customClasses/[^/]+$",
                      "description": "Output only. Identifier. The resource name of the CustomClass. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}`.",
                      "required": true,
                      "type": "string"
                    }
                  },
                  "response": {
                    "$ref": "Operation"
                  },
                  "request": {
                    "$ref": "CustomClass"
                  },
                  "description": "Updates the CustomClass.",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "path": "v2/{+name}",
                  "httpMethod": "PATCH"
                },
                "undelete": {
                  "parameterOrder": [
                    "name"
                  ],
                  "id": "speech.projects.locations.customClasses.undelete",
                  "response": {
                    "$ref": "Operation"
                  },
                  "httpMethod": "POST",
                  "path": "v2/{+name}:undelete",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/customClasses/{customClassesId}:undelete",
                  "request": {
                    "$ref": "UndeleteCustomClassRequest"
                  },
                  "description": "Undeletes the CustomClass.",
                  "parameters": {
                    "name": {
                      "description": "Required. The name of the CustomClass to undelete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}`",
                      "pattern": "^projects/[^/]+/locations/[^/]+/customClasses/[^/]+$",
                      "type": "string",
                      "required": true,
                      "location": "path"
                    }
                  }
                },
                "create": {
                  "path": "v2/{+parent}/customClasses",
                  "parameterOrder": [
                    "parent"
                  ],
                  "request": {
                    "$ref": "CustomClass"
                  },
                  "id": "speech.projects.locations.customClasses.create",
                  "parameters": {
                    "customClassId": {
                      "location": "query",
                      "description": "The ID to use for the CustomClass, which will become the final component of the CustomClass's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.",
                      "type": "string"
                    },
                    "parent": {
                      "location": "path",
                      "required": true,
                      "description": "Required. The project and location where this CustomClass will be created. The expected format is `projects/{project}/locations/{location}`.",
                      "pattern": "^projects/[^/]+/locations/[^/]+$",
                      "type": "string"
                    },
                    "validateOnly": {
                      "location": "query",
                      "description": "If set, validate the request and preview the CustomClass, but do not actually create it.",
                      "type": "boolean"
                    }
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "response": {
                    "$ref": "Operation"
                  },
                  "description": "Creates a CustomClass.",
                  "httpMethod": "POST",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/customClasses"
                }
              }
            },
            "phraseSets": {
              "methods": {
                "delete": {
                  "description": "Deletes the PhraseSet.",
                  "path": "v2/{+name}",
                  "parameterOrder": [
                    "name"
                  ],
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "parameters": {
                    "etag": {
                      "location": "query",
                      "type": "string",
                      "description": "This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding."
                    },
                    "allowMissing": {
                      "description": "If set to true, and the PhraseSet is not found, the request will succeed and be a no-op (no Operation is recorded in this case).",
                      "location": "query",
                      "type": "boolean"
                    },
                    "name": {
                      "required": true,
                      "type": "string",
                      "description": "Required. The name of the PhraseSet to delete. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`",
                      "pattern": "^projects/[^/]+/locations/[^/]+/phraseSets/[^/]+$",
                      "location": "path"
                    },
                    "validateOnly": {
                      "location": "query",
                      "description": "If set, validate the request and preview the deleted PhraseSet, but do not actually delete it.",
                      "type": "boolean"
                    }
                  },
                  "response": {
                    "$ref": "Operation"
                  },
                  "id": "speech.projects.locations.phraseSets.delete",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/phraseSets/{phraseSetsId}",
                  "httpMethod": "DELETE"
                },
                "undelete": {
                  "httpMethod": "POST",
                  "parameterOrder": [
                    "name"
                  ],
                  "request": {
                    "$ref": "UndeletePhraseSetRequest"
                  },
                  "path": "v2/{+name}:undelete",
                  "response": {
                    "$ref": "Operation"
                  },
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/phraseSets/{phraseSetsId}:undelete",
                  "parameters": {
                    "name": {
                      "type": "string",
                      "location": "path",
                      "required": true,
                      "description": "Required. The name of the PhraseSet to undelete. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`",
                      "pattern": "^projects/[^/]+/locations/[^/]+/phraseSets/[^/]+$"
                    }
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "id": "speech.projects.locations.phraseSets.undelete",
                  "description": "Undeletes the PhraseSet."
                },
                "get": {
                  "parameterOrder": [
                    "name"
                  ],
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "description": "Returns the requested PhraseSet.",
                  "httpMethod": "GET",
                  "response": {
                    "$ref": "PhraseSet"
                  },
                  "path": "v2/{+name}",
                  "id": "speech.projects.locations.phraseSets.get",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/phraseSets/{phraseSetsId}",
                  "parameters": {
                    "name": {
                      "type": "string",
                      "location": "path",
                      "description": "Required. The name of the PhraseSet to retrieve. The expected format is `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.",
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/phraseSets/[^/]+$"
                    }
                  }
                },
                "patch": {
                  "httpMethod": "PATCH",
                  "description": "Updates the PhraseSet.",
                  "id": "speech.projects.locations.phraseSets.patch",
                  "path": "v2/{+name}",
                  "parameters": {
                    "name": {
                      "location": "path",
                      "type": "string",
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/phraseSets/[^/]+$",
                      "description": "Output only. Identifier. The resource name of the PhraseSet. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`."
                    },
                    "updateMask": {
                      "location": "query",
                      "format": "google-fieldmask",
                      "description": "The list of fields to update. If empty, all non-default valued fields are considered for update. Use `*` to update the entire PhraseSet resource.",
                      "type": "string"
                    },
                    "validateOnly": {
                      "type": "boolean",
                      "location": "query",
                      "description": "If set, validate the request and preview the updated PhraseSet, but do not actually update it."
                    }
                  },
                  "response": {
                    "$ref": "Operation"
                  },
                  "parameterOrder": [
                    "name"
                  ],
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/phraseSets/{phraseSetsId}",
                  "request": {
                    "$ref": "PhraseSet"
                  }
                },
                "list": {
                  "httpMethod": "GET",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "id": "speech.projects.locations.phraseSets.list",
                  "description": "Lists PhraseSets.",
                  "response": {
                    "$ref": "ListPhraseSetsResponse"
                  },
                  "parameterOrder": [
                    "parent"
                  ],
                  "parameters": {
                    "pageSize": {
                      "location": "query",
                      "format": "int32",
                      "type": "integer",
                      "description": "The maximum number of PhraseSets to return. The service may return fewer than this value. If unspecified, at most 5 PhraseSets will be returned. The maximum value is 100; values above 100 will be coerced to 100."
                    },
                    "pageToken": {
                      "description": "A page token, received from a previous ListPhraseSets call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListPhraseSets must match the call that provided the page token.",
                      "type": "string",
                      "location": "query"
                    },
                    "showDeleted": {
                      "type": "boolean",
                      "location": "query",
                      "description": "Whether, or not, to show resources that have been deleted."
                    },
                    "parent": {
                      "type": "string",
                      "pattern": "^projects/[^/]+/locations/[^/]+$",
                      "required": true,
                      "description": "Required. The project and location of PhraseSet resources to list. The expected format is `projects/{project}/locations/{location}`.",
                      "location": "path"
                    }
                  },
                  "path": "v2/{+parent}/phraseSets",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/phraseSets"
                },
                "create": {
                  "id": "speech.projects.locations.phraseSets.create",
                  "parameters": {
                    "phraseSetId": {
                      "type": "string",
                      "description": "The ID to use for the PhraseSet, which will become the final component of the PhraseSet's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.",
                      "location": "query"
                    },
                    "parent": {
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+$",
                      "type": "string",
                      "description": "Required. The project and location where this PhraseSet will be created. The expected format is `projects/{project}/locations/{location}`.",
                      "location": "path"
                    },
                    "validateOnly": {
                      "location": "query",
                      "description": "If set, validate the request and preview the PhraseSet, but do not actually create it.",
                      "type": "boolean"
                    }
                  },
                  "path": "v2/{+parent}/phraseSets",
                  "request": {
                    "$ref": "PhraseSet"
                  },
                  "description": "Creates a PhraseSet.",
                  "parameterOrder": [
                    "parent"
                  ],
                  "httpMethod": "POST",
                  "response": {
                    "$ref": "Operation"
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/phraseSets"
                }
              }
            },
            "operations": {
              "methods": {
                "list": {
                  "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
                  "path": "v2/{+name}/operations",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "parameterOrder": [
                    "name"
                  ],
                  "parameters": {
                    "pageSize": {
                      "location": "query",
                      "description": "The standard list page size.",
                      "format": "int32",
                      "type": "integer"
                    },
                    "pageToken": {
                      "type": "string",
                      "location": "query",
                      "description": "The standard list page token."
                    },
                    "returnPartialSuccess": {
                      "type": "boolean",
                      "location": "query",
                      "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation."
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the operation's parent resource.",
                      "pattern": "^projects/[^/]+/locations/[^/]+$",
                      "required": true,
                      "location": "path"
                    },
                    "filter": {
                      "description": "The standard list filter.",
                      "type": "string",
                      "location": "query"
                    }
                  },
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations",
                  "id": "speech.projects.locations.operations.list",
                  "httpMethod": "GET",
                  "response": {
                    "$ref": "ListOperationsResponse"
                  }
                },
                "get": {
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/operations/{operationsId}",
                  "httpMethod": "GET",
                  "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
                  "response": {
                    "$ref": "Operation"
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "parameterOrder": [
                    "name"
                  ],
                  "path": "v2/{+name}",
                  "parameters": {
                    "name": {
                      "description": "The name of the operation resource.",
                      "type": "string",
                      "location": "path",
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"
                    }
                  },
                  "id": "speech.projects.locations.operations.get"
                }
              }
            },
            "recognizers": {
              "methods": {
                "patch": {
                  "request": {
                    "$ref": "Recognizer"
                  },
                  "description": "Updates the Recognizer.",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "httpMethod": "PATCH",
                  "path": "v2/{+name}",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/recognizers/{recognizersId}",
                  "id": "speech.projects.locations.recognizers.patch",
                  "response": {
                    "$ref": "Operation"
                  },
                  "parameterOrder": [
                    "name"
                  ],
                  "parameters": {
                    "name": {
                      "description": "Output only. Identifier. The resource name of the Recognizer. Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.",
                      "type": "string",
                      "pattern": "^projects/[^/]+/locations/[^/]+/recognizers/[^/]+$",
                      "required": true,
                      "location": "path"
                    },
                    "updateMask": {
                      "type": "string",
                      "description": "The list of fields to update. If empty, all non-default valued fields are considered for update. Use `*` to update the entire Recognizer resource.",
                      "location": "query",
                      "format": "google-fieldmask"
                    },
                    "validateOnly": {
                      "description": "If set, validate the request and preview the updated Recognizer, but do not actually update it.",
                      "location": "query",
                      "type": "boolean"
                    }
                  }
                },
                "undelete": {
                  "httpMethod": "POST",
                  "parameterOrder": [
                    "name"
                  ],
                  "path": "v2/{+name}:undelete",
                  "request": {
                    "$ref": "UndeleteRecognizerRequest"
                  },
                  "description": "Undeletes the Recognizer.",
                  "parameters": {
                    "name": {
                      "pattern": "^projects/[^/]+/locations/[^/]+/recognizers/[^/]+$",
                      "description": "Required. The name of the Recognizer to undelete. Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`",
                      "required": true,
                      "location": "path",
                      "type": "string"
                    }
                  },
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/recognizers/{recognizersId}:undelete",
                  "id": "speech.projects.locations.recognizers.undelete",
                  "response": {
                    "$ref": "Operation"
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ]
                },
                "delete": {
                  "id": "speech.projects.locations.recognizers.delete",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "httpMethod": "DELETE",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/recognizers/{recognizersId}",
                  "parameterOrder": [
                    "name"
                  ],
                  "response": {
                    "$ref": "Operation"
                  },
                  "description": "Deletes the Recognizer.",
                  "path": "v2/{+name}",
                  "parameters": {
                    "etag": {
                      "location": "query",
                      "type": "string",
                      "description": "This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding."
                    },
                    "allowMissing": {
                      "location": "query",
                      "type": "boolean",
                      "description": "If set to true, and the Recognizer is not found, the request will succeed and be a no-op (no Operation is recorded in this case)."
                    },
                    "name": {
                      "location": "path",
                      "type": "string",
                      "required": true,
                      "description": "Required. The name of the Recognizer to delete. Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`",
                      "pattern": "^projects/[^/]+/locations/[^/]+/recognizers/[^/]+$"
                    },
                    "validateOnly": {
                      "type": "boolean",
                      "location": "query",
                      "description": "If set, validate the request and preview the deleted Recognizer, but do not actually delete it."
                    }
                  }
                },
                "recognize": {
                  "parameterOrder": [
                    "recognizer"
                  ],
                  "id": "speech.projects.locations.recognizers.recognize",
                  "parameters": {
                    "recognizer": {
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/recognizers/[^/]+$",
                      "description": "Required. The name of the Recognizer to use during recognition. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The {recognizer} segment may be set to `_` to use an empty implicit Recognizer.",
                      "location": "path",
                      "type": "string"
                    }
                  },
                  "path": "v2/{+recognizer}:recognize",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/recognizers/{recognizersId}:recognize",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "description": "Performs synchronous Speech recognition: receive results after all audio has been sent and processed.",
                  "httpMethod": "POST",
                  "response": {
                    "$ref": "RecognizeResponse"
                  },
                  "request": {
                    "$ref": "RecognizeRequest"
                  }
                },
                "list": {
                  "httpMethod": "GET",
                  "response": {
                    "$ref": "ListRecognizersResponse"
                  },
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/recognizers",
                  "id": "speech.projects.locations.recognizers.list",
                  "description": "Lists Recognizers.",
                  "path": "v2/{+parent}/recognizers",
                  "parameters": {
                    "pageSize": {
                      "format": "int32",
                      "type": "integer",
                      "location": "query",
                      "description": "The maximum number of Recognizers to return. The service may return fewer than this value. If unspecified, at most 5 Recognizers will be returned. The maximum value is 100; values above 100 will be coerced to 100."
                    },
                    "pageToken": {
                      "location": "query",
                      "type": "string",
                      "description": "A page token, received from a previous ListRecognizers call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListRecognizers must match the call that provided the page token."
                    },
                    "parent": {
                      "type": "string",
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+$",
                      "location": "path",
                      "description": "Required. The project and location of Recognizers to list. The expected format is `projects/{project}/locations/{location}`."
                    },
                    "showDeleted": {
                      "description": "Whether, or not, to show resources that have been deleted.",
                      "location": "query",
                      "type": "boolean"
                    }
                  },
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "parameterOrder": [
                    "parent"
                  ]
                },
                "create": {
                  "path": "v2/{+parent}/recognizers",
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/recognizers",
                  "request": {
                    "$ref": "Recognizer"
                  },
                  "parameterOrder": [
                    "parent"
                  ],
                  "response": {
                    "$ref": "Operation"
                  },
                  "description": "Creates a Recognizer.",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "id": "speech.projects.locations.recognizers.create",
                  "httpMethod": "POST",
                  "parameters": {
                    "parent": {
                      "location": "path",
                      "description": "Required. The project and location where this Recognizer will be created. The expected format is `projects/{project}/locations/{location}`.",
                      "required": true,
                      "type": "string",
                      "pattern": "^projects/[^/]+/locations/[^/]+$"
                    },
                    "recognizerId": {
                      "location": "query",
                      "type": "string",
                      "description": "The ID to use for the Recognizer, which will become the final component of the Recognizer's resource name. This value should be 4-63 characters, and valid characters are /a-z-/."
                    },
                    "validateOnly": {
                      "type": "boolean",
                      "description": "If set, validate the request and preview the Recognizer, but do not actually create it.",
                      "location": "query"
                    }
                  }
                },
                "get": {
                  "response": {
                    "$ref": "Recognizer"
                  },
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/recognizers/{recognizersId}",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "parameters": {
                    "name": {
                      "description": "Required. The name of the Recognizer to retrieve. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`.",
                      "required": true,
                      "location": "path",
                      "type": "string",
                      "pattern": "^projects/[^/]+/locations/[^/]+/recognizers/[^/]+$"
                    }
                  },
                  "description": "Returns the requested Recognizer. Fails with NOT_FOUND if the requested Recognizer doesn't exist.",
                  "parameterOrder": [
                    "name"
                  ],
                  "path": "v2/{+name}",
                  "httpMethod": "GET",
                  "id": "speech.projects.locations.recognizers.get"
                },
                "batchRecognize": {
                  "path": "v2/{+recognizer}:batchRecognize",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "description": "Performs batch asynchronous speech recognition: send a request with N audio files and receive a long running operation that can be polled to see when the transcriptions are finished.",
                  "parameters": {
                    "recognizer": {
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/recognizers/[^/]+$",
                      "location": "path",
                      "description": "Required. The name of the Recognizer to use during recognition. The expected format is `projects/{project}/locations/{location}/recognizers/{recognizer}`. The {recognizer} segment may be set to `_` to use an empty implicit Recognizer.",
                      "type": "string"
                    }
                  },
                  "response": {
                    "$ref": "Operation"
                  },
                  "id": "speech.projects.locations.recognizers.batchRecognize",
                  "parameterOrder": [
                    "recognizer"
                  ],
                  "flatPath": "v2/projects/{projectsId}/locations/{locationsId}/recognizers/{recognizersId}:batchRecognize",
                  "httpMethod": "POST",
                  "request": {
                    "$ref": "BatchRecognizeRequest"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "servicePath": "",
  "discoveryVersion": "v1",
  "protocol": "rest",
  "name": "speech",
  "ownerDomain": "google.com",
  "version_module": true,
  "documentationLink": "https://cloud.google.com/speech-to-text/docs/quickstart-protocol",
  "version": "v2",
  "rootUrl": "https://speech.googleapis.com/",
  "batchPath": "batch"
}
