Back to Content

SpeechGrammar: src property

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

latest403 B
Original Source

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

The src property of the {{domxref("SpeechGrammar")}} interface is used to get or set a string that contains the grammar within the SpeechGrammar object.

Value

A string representing the grammar.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also