Skip to content

Commit

Permalink
feat(speech): update the api
Browse files Browse the repository at this point in the history
#### speech:v1p1beta1

The following keys were added:
- schemas.Entry (Total Keys: 5)
- schemas.RecognitionConfig.properties.transcriptNormalization.$ref (Total Keys: 1)
- schemas.TranscriptNormalization (Total Keys: 3)
  • Loading branch information
yoshi-automation committed Jul 27, 2021
1 parent 214c7cc commit 3b2c0fa
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h3>Method Details</h3>
],
&quot;name&quot;: &quot;A String&quot;, # The resource name of the custom class.
},
&quot;customClassId&quot;: &quot;A String&quot;, # The ID to use for the custom class, which will become the final component of the custom class&#x27; resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
&quot;customClassId&quot;: &quot;A String&quot;, # Required. The ID to use for the custom class, which will become the final component of the custom class&#x27; resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
}

x__xgafv: string, V1 error format.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ <h3>Method Details</h3>
},
],
},
&quot;phraseSetId&quot;: &quot;A String&quot;, # The ID to use for the phrase set, which will become the final component of the phrase set&#x27;s resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
&quot;phraseSetId&quot;: &quot;A String&quot;, # Required. The ID to use for the phrase set, which will become the final component of the phrase set&#x27;s resource name. This value should be 4-63 characters, and valid characters are /a-z-/.
}

x__xgafv: string, V1 error format.
Expand Down
14 changes: 14 additions & 0 deletions docs/dyn/speech_v1p1beta1.speech.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ <h3>Method Details</h3>
],
},
],
&quot;transcriptNormalization&quot;: { # 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 &gt; 0.8) and final transcripts. # 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 &gt; 0.8) and final transcripts.
&quot;entries&quot;: { # A single replacement configuration. # A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in [&quot;cat&quot; =&gt; &quot;dog&quot;, &quot;mountain cat&quot; =&gt; &quot;mountain dog&quot;] will never be applied because we will always process the first entry before it. At most 100 entries.
&quot;caseSensitive&quot;: True or False, # Whether the search is case sensitive.
&quot;replace&quot;: &quot;A String&quot;, # What to replace with. Max length is 100 characters.
&quot;search&quot;: &quot;A String&quot;, # What to replace. Max length is 100 characters.
},
},
&quot;useEnhanced&quot;: True or False, # Set to true to use an enhanced model for speech recognition. If `use_enhanced` is set to true and the `model` field is not set, then an appropriate enhanced model is chosen if an enhanced model exists for the audio. If `use_enhanced` is true and an enhanced version of the specified model does not exist, then the speech is recognized using the standard version of the specified model.
},
&quot;outputConfig&quot;: { # Specifies an optional destination for the recognition results. # Optional. Specifies an optional destination for the recognition results.
Expand Down Expand Up @@ -295,6 +302,13 @@ <h3>Method Details</h3>
],
},
],
&quot;transcriptNormalization&quot;: { # 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 &gt; 0.8) and final transcripts. # 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 &gt; 0.8) and final transcripts.
&quot;entries&quot;: { # A single replacement configuration. # A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in [&quot;cat&quot; =&gt; &quot;dog&quot;, &quot;mountain cat&quot; =&gt; &quot;mountain dog&quot;] will never be applied because we will always process the first entry before it. At most 100 entries.
&quot;caseSensitive&quot;: True or False, # Whether the search is case sensitive.
&quot;replace&quot;: &quot;A String&quot;, # What to replace with. Max length is 100 characters.
&quot;search&quot;: &quot;A String&quot;, # What to replace. Max length is 100 characters.
},
},
&quot;useEnhanced&quot;: True or False, # Set to true to use an enhanced model for speech recognition. If `use_enhanced` is set to true and the `model` field is not set, then an appropriate enhanced model is chosen if an enhanced model exists for the audio. If `use_enhanced` is true and an enhanced version of the specified model does not exist, then the speech is recognized using the standard version of the specified model.
},
}
Expand Down
2 changes: 1 addition & 1 deletion googleapiclient/discovery_cache/documents/speech.v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@
}
}
},
"revision": "20210706",
"revision": "20210714",
"rootUrl": "https://speech.googleapis.com/",
"schemas": {
"ListOperationsResponse": {
Expand Down
40 changes: 37 additions & 3 deletions googleapiclient/discovery_cache/documents/speech.v1p1beta1.json
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@
}
}
},
"revision": "20210706",
"revision": "20210714",
"rootUrl": "https://speech.googleapis.com/",
"schemas": {
"ClassItem": {
Expand All @@ -547,7 +547,7 @@
"description": "Required. The custom class to create."
},
"customClassId": {
"description": "The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should be 4-63 characters, and valid characters are /a-z-/.",
"description": "Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should be 4-63 characters, and valid characters are /a-z-/.",
"type": "string"
}
},
Expand All @@ -562,7 +562,7 @@
"description": "Required. The phrase set to create."
},
"phraseSetId": {
"description": "The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.",
"description": "Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should be 4-63 characters, and valid characters are /a-z-/.",
"type": "string"
}
},
Expand Down Expand Up @@ -596,6 +596,25 @@
"properties": {},
"type": "object"
},
"Entry": {
"description": "A single replacement configuration.",
"id": "Entry",
"properties": {
"caseSensitive": {
"description": "Whether the search is case sensitive.",
"type": "boolean"
},
"replace": {
"description": "What to replace with. Max length is 100 characters.",
"type": "string"
},
"search": {
"description": "What to replace. Max length is 100 characters.",
"type": "string"
}
},
"type": "object"
},
"ListCustomClassesResponse": {
"description": "Message returned to the client by the `ListCustomClasses` method.",
"id": "ListCustomClassesResponse",
Expand Down Expand Up @@ -931,6 +950,10 @@
},
"type": "array"
},
"transcriptNormalization": {
"$ref": "TranscriptNormalization",
"description": "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 > 0.8) and final transcripts."
},
"useEnhanced": {
"description": "Set to true to use an enhanced model for speech recognition. If `use_enhanced` is set to true and the `model` field is not set, then an appropriate enhanced model is chosen if an enhanced model exists for the audio. If `use_enhanced` is true and an enhanced version of the specified model does not exist, then the speech is recognized using the standard version of the specified model.",
"type": "boolean"
Expand Down Expand Up @@ -1222,6 +1245,17 @@
},
"type": "object"
},
"TranscriptNormalization": {
"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 > 0.8) and final transcripts.",
"id": "TranscriptNormalization",
"properties": {
"entries": {
"$ref": "Entry",
"description": "A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in [\"cat\" => \"dog\", \"mountain cat\" => \"mountain dog\"] will never be applied because we will always process the first entry before it. At most 100 entries."
}
},
"type": "object"
},
"TranscriptOutputConfig": {
"description": "Specifies an optional destination for the recognition results.",
"id": "TranscriptOutputConfig",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
}
}
},
"revision": "20210706",
"revision": "20210714",
"rootUrl": "https://speech.googleapis.com/",
"schemas": {
"ListOperationsResponse": {
Expand Down

0 comments on commit 3b2c0fa

Please sign in to comment.