azure-docs-sdk-java/docs-ref-autogen/com.microsoft.cognitiveserv...

65 строки
4.4 KiB
YAML

### YamlMime:JavaType
uid: "com.microsoft.cognitiveservices.speech.Grammar"
fullName: "com.microsoft.cognitiveservices.speech.Grammar"
name: "Grammar"
nameWithType: "Grammar"
summary: "Represents a generic grammar used to assist in improving speech recogniton accuracy."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "<xref href=\"java.lang.Object?alt=java.lang.Object&text=Object\" data-throw-if-not-resolved=\"False\" />"
methodsRef:
- "<xref href=\"java.lang.Object.clone()?alt=java.lang.Object.clone&text=clone\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.equals(java.lang.Object)?alt=java.lang.Object.equals&text=equals\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.finalize()?alt=java.lang.Object.finalize&text=finalize\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.getClass()?alt=java.lang.Object.getClass&text=getClass\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.hashCode()?alt=java.lang.Object.hashCode&text=hashCode\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notify()?alt=java.lang.Object.notify&text=notify\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.notifyAll()?alt=java.lang.Object.notifyAll&text=notifyAll\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.toString()?alt=java.lang.Object.toString&text=toString\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait()?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Object.wait(long,int)?alt=java.lang.Object.wait&text=wait\" data-throw-if-not-resolved=\"False\" />"
syntax: "public class **Grammar**</br> implements <xref href=\"java.lang.AutoCloseable?alt=java.lang.AutoCloseable&text=AutoCloseable\" data-throw-if-not-resolved=\"False\" />"
methods:
- uid: "com.microsoft.cognitiveservices.speech.Grammar.close()"
fullName: "com.microsoft.cognitiveservices.speech.Grammar.close()"
name: "close()"
nameWithType: "Grammar.close()"
summary: "Dispose of associated resources."
syntax: "public void close()"
desc: "Dispose of associated resources."
- uid: "com.microsoft.cognitiveservices.speech.Grammar.fromStorageId(java.lang.String)"
fullName: "com.microsoft.cognitiveservices.speech.Grammar.fromStorageId(String id)"
name: "fromStorageId(String id)"
nameWithType: "Grammar.fromStorageId(String id)"
summary: "Creates a Grammar from its storage Id."
modifiers:
- "static"
parameters:
- description: "The Id of the grammar"
name: "id"
type: "<xref href=\"java.lang.String?alt=java.lang.String&text=String\" data-throw-if-not-resolved=\"False\" />"
syntax: "public static Grammar fromStorageId(String id)"
desc: "Creates a Grammar from its storage Id. Creating a grammar from a storage ID is only usable in specific scenarios and is not generally possible."
returns:
description: "Grammar associated with the given Id."
type: "<xref href=\"com.microsoft.cognitiveservices.speech.Grammar?alt=com.microsoft.cognitiveservices.speech.Grammar&text=Grammar\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.cognitiveservices.speech.Grammar.getImpl()"
fullName: "com.microsoft.cognitiveservices.speech.Grammar.getImpl()"
name: "getImpl()"
nameWithType: "Grammar.getImpl()"
summary: "Returns the internal grammar instance"
syntax: "public SafeHandle getImpl()"
desc: "Returns the internal grammar instance"
returns:
description: "The internal grammar instance"
type: "<xref href=\"com.microsoft.cognitiveservices.speech.util.SafeHandle?alt=com.microsoft.cognitiveservices.speech.util.SafeHandle&text=SafeHandle\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Represents a generic grammar used to assist in improving speech recogniton accuracy. Note: close() must be called in order to release underlying resources held by the object."
implements:
- "<xref href=\"java.lang.AutoCloseable?alt=java.lang.AutoCloseable&text=AutoCloseable\" data-throw-if-not-resolved=\"False\" />"
metadata: {}
package: "com.microsoft.cognitiveservices.speech"
artifact: com.microsoft.cognitiveservices.speech:client-sdk:1.38.0