Back to Content

SpeechGrammar: weight property

files/en-us/web/api/speechgrammar/weight/index.md

latest419 B
Original Source

{{APIRef("Web Speech API")}}{{deprecated_header}}

The optional weight property of the {{domxref("SpeechGrammar")}} interface sets and returns the weight of the SpeechGrammar object.

Value

A float representing the weight of the grammar, in the range 0.0–1.0.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also