FMXInno - Cumulative Updates [2023-Apr-17]
Highlights:
Code:
* Several enhancements have been made.
* Voice recognition and speech capabilities have been added to FMXInno.
* Included additional Copy and Move functions for files.
The first post has been updated.
Code:
* The given example has the ability to understand certain commands.
Recognizable commands for the given example:
1. "go"
2. "comeback to".
3. "stop".
4. "browse".
5. "pause".
6. "resume".
7. "music".
8. "about".
9. "verify".
* and also recognize phrases such as
"I need you to come back to" as per the given Grammar.xml.
Tested Voice: English (US).
Code:
Grammar XML: Elements.
1. <O>AText</O> = Optional phrase that may be recognized.
2. <L>...</L> = List of phrases which can be recognized.
3. <P VAL="#">AText</P> = Phrase that must be recognized for the containing rule to be recognized.
4. LANGID : The language identifier of the grammar. || "409" - English-US, "809" - English-GB
5. RULE : Rule that contains phrases or text to be recognized.
6. PROPNAME : The semantic property's string identifier.
7. RULEREF : Import, or reference, another rules contents.
NOTE:
1. It is *imperative* that the "_ref" phrase be added at the end of the
"PROPNAME" of "RULEREF".
Code:
Grammar XML: Example.
<GRAMMAR LANGID="409">
<RULE NAME="R_My_Main" TOPLEVEL="ACTIVE">
<O>i need you to </O> <!-- Optional Phrase -->
<L PROPNAME="buttonPress" >
<P VAL="1">go</P> <!-- Click Next Button -->
<P VAL="2">comeback to</P> <!-- Click Back Button -->
<P VAL="3">stop</P> <!-- Click Cancel Button -->
<RULEREF NAME="R_My_Sub_A" PROPNAME="additionalButtonPress_ref"/> <!-- Reference 1 -->
<RULEREF NAME="R_My_Sub_B" PROPNAME="moreButtonPress_ref"/> <!-- Reference 2 -->
</L>
</RULE>
<RULE NAME="R_My_Sub_A">
<L PROPNAME="additionalButtonPress">
<P VAL="4">browse</P> <!-- Click Browse Button -->
<P VAL="5">pause</P> <!-- Click Pause Button -->
<P VAL="6">resume</P> <!-- Click Resume Button -->
</L>
</RULE>
<RULE NAME="R_My_Sub_B">
<L PROPNAME="moreButtonPress">
<P VAL="7">music</P> <!-- Click Music Button -->
<P VAL="8">about</P> <!-- Click About Button -->
<P VAL="9">verify</P> <!-- Click Verify Button -->
</L>
</RULE>
</GRAMMAR>
.