Android: a service to TTS displayed text - android

I am planning to write a service to enable Android users to listen to any text is currently displayed (be an email, an ebook, a web page, a note, an SMS, etc...), upon request.
Do you think it is feasible?
Do you know if it has been done, already?
How could I bind (a button? a gesture? something else?) a user input to the service activation?
I know these are quite generic questions, but I'm really on a pre-alpha stage for my project, I want to understand if it's feasible, to start with... :-)

For example you can use google translate service for doing your own tts, you need to do a httpConnection with the text that you need to listen

Related

Make an android phone respond to custom sound (custom hotword)

I am with my daughter in the hospital and she is asleep. I would like to leave the room for a few minutes but don't want to upset her if she wakes up (she can't see or move much)
The first thing I though about is leaving the phone in the room and have it play a message if she speaks. I thought about the 'OK Google' type hotwords but I don't think they are customizable.
Any ideas or suggestions?
The Voice Actions API should have what it is you're looking for. There's another post which will lead you in the right direction. Custom Voice Actions from my understanding allow developers to implement their own commands.
However if all you want to do is detect voices and then perform an action, i would go down the route of just detecting a voice. A similar post should have the information you need.

scroll android programmatically in all applications

I created a background service on android and I have two buttons which appear on the top of the screen all the time. I want to use these two buttons like scroll down and scroll up. But these two buttons should work on any kind of applications like Instagram, Facebook, Twitter and so. So, it means it should work in all applications that use scrolling.
I search a week on internet but I could not find any solutions.
This is not possible, sorry. Something like this would require your Service to have access to the Views of the applications and this would be a huge security breach, because you could read values from them and so on.
You could achieve this with a custom button code broadcast (so basically your buttons would act as physical buttons on the device) but this would most probably require you to have system-level permissions and some level of cooperation with the OEMs.
Android Activity class has a method called dispatchKeyEvent(), which could let you simulate the key input (with some limitations) but this is not present in the Service class.
Sadly this is not something you can do in Android. Typically you should not be able to touch views with a background service, the point of a background service is that you do some work in it (for example upload files to your web server or get some data). You CAN send a signal from a service once you're finished doing work to tell an app that something needs to happen, however the app needs to be specifically coded to respond to this broadcasted event.
If you wanted to do this with an app that you have developed, that can be achieved by using the onReceive method of say a BroadcastReceiver, however you cannot specifically define the behaviour of other apps as this would represent a security breach in Android.

Is it possible to make a call from code, and then send keypress events to the dialler?

OK I want to be able test internal phone systems in an automated fashion using an Android app, the requirements are asking for an app which can initiate a call programatically. If this is possible then when the call starts they wish to be able to send key presses, like imagine the phone menu says "press 5 to get to the X menu".. can we send that keypress from code? This way the whole system could be tested with a series of waits, and keypresses sent to the dialler.
I'm not sure how to find out if this is actually possible.. I saw PROCESS_OUTGOING_CALLS, but I havent been able to find any resources or examples on doing this, does anyone have any information? I actually got in touch with a freelancer who ended up saying it was definitely not possible (he's pretty good and he simply said 'pressing dialpad during call was impossible'), but my client is telling me apps already exist to do this, so any tips would be helpful!..
You can definitely make a call from code. See:
How to make a phone call programmatically?
You can invoke key presses from code as well:
Invoke keypress event in android?
As for doing it during a call, I haven't tried this, But you can try it using the methods from the links. Good luck!

Can you send a message to clients who have just joined your access point?

I am wondering if there is a way to send a message to users that have entered your wifi's reach? I am not sure if this is possible or how it's called.
A hint of what to look for or some sample code (if this is possible at all) would be much appreciated!
The only thing that is possible as far as I know is to add software to your accesspoint to do a splash screen (or possibly a login page).
This would not completely solve your use-case, but like the various "free" wifi in bars you do need to log in to first, you need to open a browser first and perform an action, before you have a real connection.
You could just skip the authentication-part, and put your message on the splash screen.
A random example of what you can find on the internet is this: http://www.dd-wrt.com/wiki/index.php/NoCatSplash
I have no experience with it, but it seems to serve above mentioned purpose, and you can easily go from there.
I am aware that this is NOT an android specifi answer, but as far as I know it is not an android specific question: you want to send a message to people connection to your wireless.

Synchronization between TTS & Intents in android

I have developed an application to enable blind users to make a call using number option. in that after number entry is done it need to be spoken to the user then only making call should be done. Can someone suggest me the ways to synchronize between the tts system and calling a new intent to make call.How to accomplish the same thing if need to ask for user confirmation as well.
If i want to enable the blind to make a call through contacts in mobile, what would be the better approach to do it.through speech recognition or any other ways are available.

Categories

Resources