<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Possible bug in voice recognition module in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Possible-bug-in-voice-recognition-module/m-p/1003874#M31295</link>
    <description>&lt;PRE&gt;We are putting together the finishing touches on our entry, and I noticed a bug. 

Turning off voice recognition only seems to pause the messages from being sent to the handler. 
Take a look at the code below.

&lt;/PRE&gt;

&lt;PRE class="brush:bash;"&gt;        bool toggleAudioProcessing()
        {
                g_bAwake = !g_bAwake;

                if(g_bAwake)
                        g_vrec-&amp;gt;StartRec(g_source, g_handler);
                else
                        g_vrec-&amp;gt;StopRec();

                return g_bAwake;
        }&lt;/PRE&gt;

&lt;PRE&gt;When the voice recognition gets toggled back on, the handler gets flooded with whatever commands were 
said while the app was paused. 

Is there a way to stop this from happening?
&lt;/PRE&gt;</description>
    <pubDate>Mon, 09 Feb 2015 15:15:42 GMT</pubDate>
    <dc:creator>Alain_Labrie</dc:creator>
    <dc:date>2015-02-09T15:15:42Z</dc:date>
    <item>
      <title>Possible bug in voice recognition module</title>
      <link>https://community.intel.com/t5/Software-Archive/Possible-bug-in-voice-recognition-module/m-p/1003874#M31295</link>
      <description>&lt;PRE&gt;We are putting together the finishing touches on our entry, and I noticed a bug. 

Turning off voice recognition only seems to pause the messages from being sent to the handler. 
Take a look at the code below.

&lt;/PRE&gt;

&lt;PRE class="brush:bash;"&gt;        bool toggleAudioProcessing()
        {
                g_bAwake = !g_bAwake;

                if(g_bAwake)
                        g_vrec-&amp;gt;StartRec(g_source, g_handler);
                else
                        g_vrec-&amp;gt;StopRec();

                return g_bAwake;
        }&lt;/PRE&gt;

&lt;PRE&gt;When the voice recognition gets toggled back on, the handler gets flooded with whatever commands were 
said while the app was paused. 

Is there a way to stop this from happening?
&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Feb 2015 15:15:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Possible-bug-in-voice-recognition-module/m-p/1003874#M31295</guid>
      <dc:creator>Alain_Labrie</dc:creator>
      <dc:date>2015-02-09T15:15:42Z</dc:date>
    </item>
    <item>
      <title>Workaround: Attach a the</title>
      <link>https://community.intel.com/t5/Software-Archive/Possible-bug-in-voice-recognition-module/m-p/1003875#M31296</link>
      <description>&lt;P&gt;Workaround: Attach a the current system time to each command, and save the time for when you pause and resume the app. Then, ignore any command that is between pause app and resume app.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 08:04:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Possible-bug-in-voice-recognition-module/m-p/1003875#M31296</guid>
      <dc:creator>samontab</dc:creator>
      <dc:date>2015-02-10T08:04:01Z</dc:date>
    </item>
    <item>
      <title>Thanks,</title>
      <link>https://community.intel.com/t5/Software-Archive/Possible-bug-in-voice-recognition-module/m-p/1003876#M31297</link>
      <description>&lt;P&gt;Thanks,&lt;/P&gt;

&lt;P&gt;I decided to use a flag inside the handler instead. If it's false no commands are sent to the app. Since StopRec() only seems to pause the handler and not the underlying processing then there is no reason to call it. Either you deal with the commands as they come or you will be hit with a blob of commands when you call StartRec(). Either way you still have to process the same number of commands.&lt;/P&gt;

&lt;P&gt;I hope this will be addressed in a future release.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 15:07:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Possible-bug-in-voice-recognition-module/m-p/1003876#M31297</guid>
      <dc:creator>Alain_Labrie</dc:creator>
      <dc:date>2015-02-10T15:07:00Z</dc:date>
    </item>
    <item>
      <title>Thanks for supporting</title>
      <link>https://community.intel.com/t5/Software-Archive/Possible-bug-in-voice-recognition-module/m-p/1003877#M31298</link>
      <description>&lt;P&gt;Thanks for supporting RealSense SDK and we will fix this issue in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 23:00:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Possible-bug-in-voice-recognition-module/m-p/1003877#M31298</guid>
      <dc:creator>Xusheng_L_Intel</dc:creator>
      <dc:date>2015-02-10T23:00:47Z</dc:date>
    </item>
    <item>
      <title>Hello, Alain. </title>
      <link>https://community.intel.com/t5/Software-Archive/Possible-bug-in-voice-recognition-module/m-p/1003878#M31299</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;You may reinitialize g_source each time or use g_vrec-&amp;gt;StartRec(NULL, g_handler); as a workaround. We will fix this issue in the future.&lt;/P&gt;

&lt;P&gt;Mike.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2015 10:11:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Possible-bug-in-voice-recognition-module/m-p/1003878#M31299</guid>
      <dc:creator>Michail_S_Intel</dc:creator>
      <dc:date>2015-02-17T10:11:27Z</dc:date>
    </item>
  </channel>
</rss>

