Android :: Creating Custom Component Which Supports Voice Recognition

Jun 11, 2010

I'd like to create a custom component which supports voice recognition. (Custom Component which displays voice recognition button if available). It will primarily be an extended EditText which should show the microphone button for voice recognition if it is available. I wanted to to look at the search app-widget on the homescreen but I don't find it in the source. This is intended to use the voice recognition as some sort of dictation device, i.e. the user does not have to type but use his voice instead. So could anyone please point me in some direction?

Android :: Creating Custom Component which Supports Voice Recognition


Android :: Voice Navigation Control Phone By Voice Recognition

Nov 14, 2010

I'm sure its been discussed and all but I think that the voice recognition software is capable of being much more advanced.There should be a way to just give your phone a voice command without having to manually open an app. It probably would have to be running in the background the whole time, analyzing everything it hears, so it may use a lot of battery and cpu.therefore it may be easier to have a starter phrase to tell it to listen more carefully. for example: say the said app is running in the background,listening to every noise, but it wouldn't begin to really analyize until you say something like; "hey, phone!" or "yo, droid!" (or whatever tag phrase). I don't know what would have to go into an app like that for it to work but hey, if an app like that was designed, then I think the android would be a really smart smartphone. In the end thanks for all the awesome apps you guys are already developing. be sure to tell me when someone develops something like that though.

View 4 Replies View Related

Android :: Voice Recognition And Voice Decoding

Jan 11, 2010

How is it possible to implement voice recognition on android phones? Also to decode the voice and convert the male voice to female voice and vice versa?The voice data input from the user will be sent to the Google site for recognition through Internet, or will be processed and recognized locally on my android phone? if anyone has any idea regarding it.

View 6 Replies View Related

Android :: Voice Recognition For Voice Control?

Sep 2, 2010

Is it possible to use the voice recognition api in order to handle a known set of commands yet? VR matches this against a specific valid vocabulary containing only "yes & no", and then returns "no". Can you do this yet? Last time I looked you could not. The VR would match against a full vocabulary and user saying "no" would come back with things like "snow" and so on.The other BIG problem was that if the VR got no match a "Retry" dialog was displayed, this needed to be dismissed by using the screen, which meant the the voice control process failed at this point, terminally.

View 2 Replies View Related

Android :: XML Layout Of Custom Component

Jul 9, 2010

I have created a simple class named Panel which extends the SurfaceView class and does some drawing in the onDraw method. When I use it from the code it works fine. For example this works as expected:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(new Panel(this)); ....

However when I try adding this component from an xml layout the program crashes:
XML file (main.xml):
<?xml version="1.0" encoding="utf-8"?> <org.anddev.Panel android:id="@+id/panel" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"/>

Code:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);....

Error msg: Sorry!
The application Test (process org.anddev) has stopped unexpectedly. Pleas try again.
I can not figure out why the same class works when created in one way and doesn't work when created in another.

View 3 Replies View Related

Android :: Voice Recognition Like In Search STT?

Feb 9, 2009

Voice Search is new with RC33. I am wondering if the voice recognition will be part of the API 1.1. Or at least an Intent? Btw, is the SDK 1.1 JavaDoc available somewhere yet?

View 11 Replies View Related

Android :: Voice Recognition On HTC Hero

Aug 13, 2009

has somebody managed to bring the voice recognition to run on the HTC Hero phone? I have experienced the "recognizer not found" problem (but it is not a vodafone from UK).

View 2 Replies View Related

Android :: Is There An Alarm With Voice Recognition?

Mar 6, 2010

i'd like to be able to tell my alarm clock to shut up rather than fumble around with it and potentially drop it on the floor while trying to unplug it, look at the screen before my eyes have adjusted, etc.Anyone seen or heard of an alarm that you can say "snooze" to?

View 3 Replies View Related

Android :: Voice Recognition Using Given Words

Jan 13, 2010

I've had a search of the docs and forums and unless i misunderstand can find nothing on the below. Is there a way to send Google a set of words that the recognizerintent should be expecting? i.e. if i'm trying to listen to recipes i want it to hear the word 'sausages' and not the words 'saw hedges'.Maybe being able to register an Android app with a word list would be a good way round the bad recognition?

View 2 Replies View Related

Android :: Voice Recognition And Localization?

Oct 10, 2009

Does anyone have experience with java voice recognition and localization?I'm thinking to build an android application, with some basic voice recognition options, but I want to implement localization for that based on some translate tool, maybe Google translate, and users can update his "dictionary" with new languages from remote dictionary...this project is in first phase, and I'm still brainstorming, so does anyone have some experience or is something like that even possible?

View 1 Replies View Related

Android :: Create Custom Component Using Inflate

Mar 29, 2010

I'm trying to create a component using an xml layout file. I defined a layout with some custom attributes. This layout is inflated when user add it inside another layout. My problem is I don't know the parent, so I pass null for the parent viewgroup when I call inflate method. I think that's the reason why I see anything in my view. Do you know how can I do (I don't want to redefine onDraw method because I use existing component). Below my xml layout and my custom class.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:id="@+id/img_btn_option" android:layout_width="wrap_content" android:layout_height="wrap_content"/>
<TextView android:id="@+id/txt_btn_option" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_toRightOf="@id/img_btn_option"
android:textColor="@color/font_white" android:textStyle="bold"/>
</RelativeLayout> public class ButtonOptionsView extends View {
public ButtonOptionsView(Context context, AttributeSet attrs) {
super(context, attrs);
LayoutInflater li =(LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
RelativeLayout vg =(RelativeLayout)li.inflate(R.layout.button_option, null);
TypedArray ta = getContext().obtainStyledAttributes(attrs,R.styleable.ButtonOption);
((ImageView)vg.findViewById(R.id.img_btn_option)).setImageResource(ta.getResourceId(R.styleable.ButtonOption_image,0));
((TextView)vg.findViewById(R.id.txt_btn_option)).setText(ta.getResourceId(R.styleable.ButtonOption_text,0));}

View 4 Replies View Related

Android :: Custom Component ImageView Override

Dec 8, 2009

I've made a little test component that overrides ImageView, called myImageView, and prints some text and an arrayList of Doubles over whatever image is specified in the related xml. However, right now, the text and Doubles that are drawn over the image are defined within the myImageView class. Is there a way to pass the data from the main onCreate function to the myImageView class before the layout is drawn?

I'm new to OO programming, but based on my understanding of this:
http://developer.android.com/guide/topics/ui/custom-components.html
It's possible because ImageView is just like any other class. This leaves me with two initial guesses:
1. I could generate my test data in the main onCreate, and store it in the array's xml file, and then read that xml file with myImageView,
OR
2. I could extend view instead of ImageView, but because of my new- ness, then I would lose the ability to use it in an xml layout sense - and that's what I really want.

View 2 Replies View Related

Xperia X10 :: How Voice Recognition In Android Works?

Sep 4, 2009

I want to know that how voice recognition in android works? Which library it uses for voice recognition? Does it perform voice recognition process on device/mobile it self or it sends all voice to google servers and receives text in responce.

View 2 Replies View Related

Android :: Voice Recognition In Sample API Not Working

May 8, 2009

Not sure what I am missing (using emulator not phone). I was trying to get the speech api working, however it gives me the error: No Activity found to handle Intent { action=android.speech.action.RECOGNIZE_SPEECH (has extras).

So then I tried running the 1.5 r1 sample code (api) and tried the speech sample there, but it also isn't running. Indicating I was missing an app or component. So what is the missing link? It seems as if the actual emulator doesn't come with some default apps which make the voice recognition possible.

View 2 Replies View Related

Android :: Turn On Voice Recognition On Emulator?

May 1, 2009

Does any one know How to turn on Voice Recognition on Emulator. or is it required to have phone or dev phone to test voice recognition application?

View 10 Replies View Related

General :: Offline Voice Recognition - Android 4.4.3

Jun 6, 2014

I am coming from Windows Phone and everything went smoothly during the transition. However, I miss some useful functionalities I had with WP that I really miss on Android, like offline voice recognition and SMS reading.

I was using voice recognition in my car (where data connection is bad and unstable from which it is necessary to have this functionnality offline), I was saying "call [NAME]" and it triggered the phone call with confirmation of the command.

I would like to do the same thing with my Nexus 5 but I didn't find a way to do it. I downloaded the language pack for my language (French) in the parameters. Is it possible?

Anorther point is the reading of the SMS (texts). When a headset (wire or bluetooth) was connected to my WP, my phone was able to read aloud the content. Is it possible with Android?

View 2 Replies View Related

Android :: How To Change Custom Component Height Programmatically?

Dec 9, 2009

I've prepared custom component based on LinearLayout. Whole component is defined in XML. Currently to use it you have to write:
<com.xxx.android.components.TopMenu
android:layout_width="fill_parent"
android:layout_height="44dp" />

Is it possible to set width and height in the java constructor? So it would be possible to write just:
<com.xxx.android.components.TopMenu />
I've tried to modify and set LayoutParams, but it didn't work for me.

View 1 Replies View Related

Android :: Custom Compound Component Rare Exception

Aug 16, 2009

I've created custom compound component and observe very strange exception (google says nothing about it). Custom component rare exception: Parser is not a BridgeXmlBlockParser!

It is very simple:
public class MyTabber extends LinearLayout {
.. public MyTabber(Context context) { super(context);
Init(context); }

View 2 Replies View Related

Android :: Views In Custom Compound Component Not Inflated

Jun 12, 2010

I have made a Custom Component in XML, consisting of a button with an imageview stacked on top of it:

<myapp.widget.ClearableCaptionedButton
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<Button
android:id="@+id/ccbutton_button"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical|left"
android:textAppearance="?android:attr/textAppearanceMedium"
android:background="@android:drawable/edit_text"/>
<ImageView
android:id="@+id/ccbutton_clear"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="5dip"
android:layout_alignRight="@id/ccbutton_button"
android:layout_alignTop="@id/ccbutton_button"
android:layout_alignBottom="@id/ccbutton_button"/>
</myapp.widget.ClearableCaptionedButton>

Extract of java source code:
public class ClearableCaptionedButton extends RelativeLayout implements OnClickListener {
...
public ClearableCaptionedButton(Context context, AttributeSet attrs) { super(context, attrs);
// some stuff that works fine
} ..
protected void onFinishInflate() { super.onFinishInflate();
mButton = (Button) findViewById(R.id.ccbutton_button);
mClear = (ImageView) findViewById(R.id.ccbutton_clear);
mButton.setText(""); // error here: mButton == null
}

My problem is similar to this one. When I try to find the views inside the custom compound, findViewById returns null. But, as you can see, i already added super(context, attrs); to the constructor. I am using the custom component directly in xml layout, like this:

<LinearLayout>
<!-- some stuff -->
<myapp.widget.ClearableCaptionedButton
android:layout_width="fill_parent"
android:layout_height="wrap_content"
app:caption="to"/>
</LinearLayout>

View 1 Replies View Related

Android :: Voice Recognition With Recorded Sound Clip?

Feb 23, 2010

I've used the voice recognition feature on Android and I love it. It's one of my customers' most praised features. However, the format is somewhat restrictive. You have to call the recognizer intent, have it send the recording for transcription to google, and wait for the text back. Some of my ideas would require recording the audio within my app and then sending the clip to google for transcription. Is there any way I can send an audio clip to be processed with speech to text?

View 1 Replies View Related

HTC EVO 4G :: Froyo Voice Recognition

Aug 3, 2010

While I'll admit I have a slow 'southern drawl', I was amazed at the voice to text feature of the Evo when I first got it. I use it for 90% of my texting. Since the 2.2 update I am having a terrible time getting it to accurately recognize 50% of my speech. Is anyone else having this problem or did they just remove 'hillbilly' dialect? I am running the unofficial .3 version.

View 3 Replies View Related

Android :: Expanding ListView Custom Component With Button Click

Nov 5, 2010

I'm developing a small application in with a list view filled with a compound component. This component has two text view and one button inside. One of the text view is invisible and when the button is clicked it should appear. I can show the list but i can't make the textview visible when the button is clicked. Here is the xml of the component: And this is the ArrayAdapter that fills the list:

public class AddressAdapter extends ArrayAdapter { int resource;
RelativeLayout placeView;
EditText addressText;
public AddressAdapter(Context _context, int _resource, List _items) {
super(_context, _resource, _items);
resource = _resource;
} private OnClickListener buttonClick = new OnClickListener() {
public void onClick (View v) {
int i = placeView.findViewById(R.id.stub_import).getVisibility();
visibility(i);
} };
private void visibility(int i) {
// TODO Auto-generated method stub switch(i) {
case(View.GONE): { addressText.setVisibility(View.VISIBLE);
} case(View.VISIBLE): { addressText.setVisibility(View.GONE);
} } }
@Override public View getView(int position, View convertView, ViewGroup parent) {
Item item = getItem(position);
String name = item.getName();
String address = item.getAddress();
if (convertView == null) {
placeView = new RelativeLayout(getContext());
String inflater = Context.LAYOUT_INFLATER_SERVICE;
LayoutInflater vi = (LayoutInflater)getContext().getSystemService(inflater);
vi.inflate(resource, placeView, true);
} else { placeView = (RelativeLayout) convertView;
} TextView nameText = (TextView)placeView.findViewById(R.id.placeNamwView);
Button button = (Button)placeView.findViewById(R.id.Button01);
addressText = (EditText)placeView.findViewById(R.id.placeAddressText);
button.setOnClickListener(buttonClick);
nameText.setText(name);
addressText.setText(address);
return placeView;
} }

View 2 Replies View Related

Android :: Including Custom Component / View No Longer Shows Up

Oct 29, 2009

The app I'm working on has 4 tabs, 3 of which share many features, including a navigation bar a the bottom with Back, Edit, and Map buttons. There is exactly the same xml in all 3 layouts, so I'm trying to DRY this out by extracting that xml into a separate component, including it, and then going from there. Previously I had:

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/showedit_toolbar" style="@style/showItemToolbar">
<ImageButton android:id="@+id/show_person_back_button"
style="@style/blackToolbarButton"
android:src="@drawable/left_white_arrow"
android:layout_alignParentLeft="true"/>
<Button android:id="@+id/show_person_map_button"
style="@style/blackToolbarButton"
android:text="map" android:layout_alignParentRight="true"/>
<Button android:id="@+id/show_person_edit_button"
style="@style/blackToolbarButton"
android:text="edit" android:layout_toLeftOf="@id/show_person_map_button"/>
</RelativeLayout>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_above="@id/showedit_toolbar"
style="@style/CoinLightTheme">
// Lots more layout omitted

I extracted out the bit that's repeated into an xml file called show_toolbar.xml, changing the names of variables to make it more generic across the 3 views
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/show_toolbar" style="@style/showItemToolbar">
<ImageButton style="@style/blackToolbarButton"
android:src="@drawable/left_white_arrow"
android:layout_alignParentLeft="true"
android:id="@+id/show_back_button"/>
<Button android:id="@+id/show_map_button"
style="@style/blackToolbarButton"
android:text="map" android:layout_alignParentRight="true"/>
<Button android:id="@+id/show_edit_button" style="@style/blackToolbarButton"
android:text="edit" android:layout_toLeftOf="@id/show_map_button"/>
</RelativeLayout>

Then from within my original layout file, I replaced that big block of code with
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent" android:layout_width="fill_parent">
<include android:id="@+id/show_toolbar" layout="@layout/show_toolbar"/>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="fill_parent" android:layout_width="fill_parent"
android:layout_above="@id/showedit_toolbar" style="@style/CoinLightTheme">

Now, the problem is that the view no longer shows up. Including Custom component causes it to be hidden behind main viewI can still click the buttons and they respond (i.e. if I click in the corner where the button should be, it still works), but I cannot see the buttons or bar onto which they were drawn. I cannot find very good documentation on how Include is supposed to work, so perhaps I am using it incorrectly.

View 1 Replies View Related

Android :: Sound Recording In Emulator Working But Voice Recognition Is Not?

Sep 28, 2009

I am pulling my hair on this problem from a long time and haven't found a solution yet. I am running Android demo program - APIDemo which is available in android source. For my dev I am using ubuntu, earlier when I used to run SoundRecording example it created a file on sdcard but there was no recording as such which was done in the file but now it started working suddenly. I am still not sure why it happened. But anyways good news is that Microphone is working with android emulator - as opposed to what I read at many forums that it does not.

On other hand whenever I am trying to run the voice recognition application available in same APIDemo its giving me an error - "Recording Parameter not supported: sampelrate 1600, channelcount 1, samplerate 1". Is it that speech recognition cannot take higher sample rate and if it cannot what is the sample rate it requires? My microphone supports only 16000 and higher sample rate.

View 2 Replies View Related

HTC Hero :: Handcent And Voice Recognition

Oct 28, 2009

After hearing some good feedback on the Handcent SMS app, I decided to try it out!It is indeed a great alternative to the "stock" sms app on the Hero, but i have one, yet important, question:When I press the onscreen button "speak" I get the following message: Recognizer not present"

View 29 Replies View Related

General :: Bilingual Voice Recognition?

Mar 23, 2012

Is there a setting in Android (available in version 2.3) or an app that allows for bilingual language input? I'd prefer if it would allow words from two languages to be spoken at the same time, but I suppose having it automatically switch languages per "phrase" would work too. I know the TouchPal keyboard can do bilingual text input, but it would appear it doesn't work with bilingual voice input.

View 2 Replies View Related

General :: Voice Recognition In Other Languages?

Mar 18, 2012

is there a way to have voice recognition so that we can use it for writing sms in languages other than the custom ones like Greek? I bought Cyberon voice commander but it wont write sms and I am asking if there is a way to use the Cyberor's language engine with Google's Voice Search or Vlingo? I tried to set it on the voice recognizer under voice input and output settings but nothing!

View 4 Replies View Related

Android :: Find View Returns Null For Custom Component In Layout

Nov 7, 2009

I have a res/layout/main.xml including these elements and others:

<some.package.MyCustomView android:id="@+id/foo" (some other params) />
<TextView android:id="@+id/boring" (some other params) />
In my Activity's onCreate, I do this:
setContentView(R.layout.main);
(TextView) boring = findViewById(R.id.boring);
// ...find other elements...
MyCustomView foo = (MyCustomView) findViewById(R.id.foo);
if (foo == null) { Log.d(TAG, "epic fail"); }

The other elements are found successfully, but foo comes back null. MyCustomView has a constructor MyCustomView(Context c, AttributeSet a) and a Log.d(...) at the end of that constructor appears successfully in logcat just before the "epic fail".
findViewById() returns null for custom component in layout XML, not for other components. Why is foo null?

View 2 Replies View Related

HTC Hero :: Voice Recognition App Works On HTC Magic?

Dec 17, 2009

can you tell me if the Voice Recognition app works on HTC Magic?I'm going to by one and I need this information before.

View 6 Replies View Related

Google Voice Recognition API - How Does Learning Work

Apr 14, 2012

I am planning an app using the android speech input api (Speech Input | Android Developers). How the learning occurs? So for example initially my phone could not recognize proper nouns, local locations, uncommon names of my friends, etc, but now it recognizes all of these things so clearly it has learned. But are all of these words now available to other users?

I am envisioning an app when each of my users would be contributing to a database constructed by other users, so that a proper noun that someone else entered is now available to be recognized by someone who has never used my app, is this something I can count on happening automatically?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved