Share via


Note

Please see Azure Cognitive Services for Speech documentation for the latest supported speech solutions.

meta Element (Microsoft.Speech)

Specifies document metadata. Metadata is information about a document in contrast to the document content.

Syntax

<meta 
  name = "string"
  http-equiv = "string" 
  content = "string" />

Attributes

Attribute

Description

name

Optional. Specifies the property name of the metadata. All meta elements must specify a name attribute or an http-equiv attribute, but not both.

http-equiv

Optional. Binds the meta element to the HTTP response header, specifying information that should be included in that response header. All meta elements must specify a name attribute or an http-equiv attribute, but not both. Use only values that are known by the Web server or defined in the Document Type Definition (DTD).

content

Required. Specifies the value of the metadata property identified by the name attribute. When the value of the name attribute is base, the value of the content attribute must be a Uniform Resource Identifier (URI) that specifies the location of the grammar document's base URI. External rule references within the grammar that do not specify an absolute path are resolved relative to the location specified by this URI.

Remarks

The meta element must occur before all rule elements contained with the root grammar element. There are no constraints on the ordering of meta elements.

The function of <meta name="base" content="..."/> is identical to the function of the xml:base attribute of the grammar element. If both are present in a grammar file, the value of xml:base overrides <meta name="base" content="..."/>.

Example

<grammar version="1.0" xml:lang="en-US" tag-format="semantics/1.0"
 xmlns="http://www.w3.org/2001/06/grammar"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.w3.org/2001/06/grammar
           http://www.w3.org/TR/speech-grammar/grammar.xsd">
  <meta name="Creator" content="Adam Barr" />
  <meta name="seeAlso" content=
"http://www.adatum.com/grammar-metadata.xml" type="media-type"/>
  <meta http-equiv="Expires" content="0" />
  <meta http-equiv="Date" content="Tue, 19 Oct 2004 10:41:00 GMT" />
  <meta name="base" content="C:\grammars\" />
</grammar>