public final class SrgsXmlOptionConverter extends java.lang.Object implements OptionConverter
| Constructor and Description |
|---|
SrgsXmlOptionConverter() |
| Modifier and Type | Method and Description |
|---|---|
org.jvoicexml.xml.srgs.Grammar |
createDtmfGrammar(java.util.Collection<org.jvoicexml.xml.vxml.Option> options)
Creates a DTMF grammar from the given options.
|
org.jvoicexml.xml.srgs.Grammar |
createVoiceGrammar(java.util.Collection<org.jvoicexml.xml.vxml.Option> options,
java.util.Locale language)
Creates a voice grammar from the given options.
|
public org.jvoicexml.xml.srgs.Grammar createVoiceGrammar(java.util.Collection<org.jvoicexml.xml.vxml.Option> options,
java.util.Locale language)
createVoiceGrammar in interface OptionConverteroptions - the options to transfer into a voice grammarlanguage - the language to usenull if there is no voice grammar.public org.jvoicexml.xml.srgs.Grammar createDtmfGrammar(java.util.Collection<org.jvoicexml.xml.vxml.Option> options)
createDtmfGrammar in interface OptionConverteroptions - the options to transfer into a DTMF grammarnull if there is no DTMF grammar.