View Single Post
  #222  
Old 17-04-2023, 08:56
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 688
Thanks: 481
Thanked 2,547 Times in 561 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno - Updates

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>

.

Last edited by BLACKFIRE69; 14-07-2024 at 01:57.
Reply With Quote
The Following 7 Users Say Thank You to BLACKFIRE69 For This Useful Post:
ADMIRAL (17-04-2023), audiofeel (17-04-2023), crachlow (17-04-2023), ffmla (18-04-2023), hitman797 (17-04-2023), Masquerade (18-04-2023), Razor12911 (18-04-2023)