Speech Recognition Grammar

by Bhargavi » Fri, 29 May 2009 21:28:45 GMT


Sponsored Links
 Hi,
 can someone please tell me how to create a new Grammar for speech
recognition..when i tried to do this , iam seeing the following error
D/RecognizerEngine(  236): start new grammar
E/Srec    (  236): ESR_READ_ERROR: Problem loading syntax from image
This is how iam trying to create a grammar..
mSrecGrammar = mSrec.new Grammar(SREC_DIR + "/grammars/BTvoice.g2g");

can someone please let me know where to configure this .g2g file?

Regards,
Bhargavi
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Implement two searchable activities

Hi,

I am trying to implement two different searchable activities, one for
honeycomb(with search widget) and others for non-honeycomb(with search
dialog).

Manifest looks like:

 <activity android:name=".activities.Search"
                android:theme="@style/NoTitleTheme"
                android:configChanges="orientation|keyboardHidden"
                android:launchMode="singleTop">
                    android:enabled="@bool/disableForNonHoneycomb"
                <intent-filter>
                    <action
android:name="android.intent.action.SEARCH" />
                </intent-filter>
                    <meta-data  android:name="android.app.searchable"
                        android:resource="@xml/searchable"
                        android:value=".activities.Search"/>
            </activity>
            <activity android:name=".activities.SearchHoneycomb"
                android:theme="@style/CustomTheme"
                android:configChanges="orientation|keyboardHidden"
                    android:enabled="@bool/enableForNonHoneycomb"
                android:launchMode="singleTop">
                <intent-filter>
                    <action
android:name="android.intent.action.SEARCH" />
                </intent-filter>
                <meta-data  android:name="android.app.searchable"
                            android:resource="@xml/searchable"
 
android:value=".activities.SearchHoneycomb"/>
            </activity>

And, I use following code to get the searchable configuration and set
up the search view in my activity.

SearchManager searchManager = (SearchManager)
getSystemService(Context.SEARCH_SERVICE);
_searchView = (SearchView)
mCustomView.findViewById(R.id.action_bar_searchwidget);
_searchView.setSearchableInfo(searchManager.getSearchableInfo(getComponentName()));

Problem is that when I use the search widget, it does not start the
SearchHoneycomb activity. How can I make this work?

Thanks.

-- 

2. Android vs Linux (Network Stack)

hi everybody,
Im working on Android wifi security. I want to know how much Aandroid
kernel is different from Linux kernel with respect to its network
stack. please reply in detail and if possible suggest me some specific
resources (not coding level).

-- 

3. Ethernet and POTS modem

4. ActionBar Tabs Fragment EditText instance

5. Gallery Infinite Loop

6. Class not found exception static fragment library

7. Communicating with USB devices on Android Tablet