|
524 | 524 | }
|
525 | 525 | }
|
526 | 526 | },
|
527 |
| - "revision": "20210706", |
| 527 | + "revision": "20210714", |
528 | 528 | "rootUrl": "https://speech.googleapis.com/",
|
529 | 529 | "schemas": {
|
530 | 530 | "ClassItem": {
|
|
547 | 547 | "description": "Required. The custom class to create."
|
548 | 548 | },
|
549 | 549 | "customClassId": {
|
550 |
| - "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-/.", |
| 550 | + "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-/.", |
551 | 551 | "type": "string"
|
552 | 552 | }
|
553 | 553 | },
|
|
562 | 562 | "description": "Required. The phrase set to create."
|
563 | 563 | },
|
564 | 564 | "phraseSetId": {
|
565 |
| - "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-/.", |
| 565 | + "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-/.", |
566 | 566 | "type": "string"
|
567 | 567 | }
|
568 | 568 | },
|
|
596 | 596 | "properties": {},
|
597 | 597 | "type": "object"
|
598 | 598 | },
|
| 599 | + "Entry": { |
| 600 | + "description": "A single replacement configuration.", |
| 601 | + "id": "Entry", |
| 602 | + "properties": { |
| 603 | + "caseSensitive": { |
| 604 | + "description": "Whether the search is case sensitive.", |
| 605 | + "type": "boolean" |
| 606 | + }, |
| 607 | + "replace": { |
| 608 | + "description": "What to replace with. Max length is 100 characters.", |
| 609 | + "type": "string" |
| 610 | + }, |
| 611 | + "search": { |
| 612 | + "description": "What to replace. Max length is 100 characters.", |
| 613 | + "type": "string" |
| 614 | + } |
| 615 | + }, |
| 616 | + "type": "object" |
| 617 | + }, |
599 | 618 | "ListCustomClassesResponse": {
|
600 | 619 | "description": "Message returned to the client by the `ListCustomClasses` method.",
|
601 | 620 | "id": "ListCustomClassesResponse",
|
|
931 | 950 | },
|
932 | 951 | "type": "array"
|
933 | 952 | },
|
| 953 | + "transcriptNormalization": { |
| 954 | + "$ref": "TranscriptNormalization", |
| 955 | + "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." |
| 956 | + }, |
934 | 957 | "useEnhanced": {
|
935 | 958 | "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.",
|
936 | 959 | "type": "boolean"
|
|
1222 | 1245 | },
|
1223 | 1246 | "type": "object"
|
1224 | 1247 | },
|
| 1248 | + "TranscriptNormalization": { |
| 1249 | + "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.", |
| 1250 | + "id": "TranscriptNormalization", |
| 1251 | + "properties": { |
| 1252 | + "entries": { |
| 1253 | + "$ref": "Entry", |
| 1254 | + "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." |
| 1255 | + } |
| 1256 | + }, |
| 1257 | + "type": "object" |
| 1258 | + }, |
1225 | 1259 | "TranscriptOutputConfig": {
|
1226 | 1260 | "description": "Specifies an optional destination for the recognition results.",
|
1227 | 1261 | "id": "TranscriptOutputConfig",
|
|
0 commit comments