My application sends and receives message in English.But I want a functionality by which, whenever a new message is received,it would be in English,but when user reads message it should be readable in Hindi language.
Is there any solution for that??
Use the google api
Google Java Translation
Related
I've been searching in a couple of topics here about this matter but I can't seem to get it right for Java.
QUESTION:
How can I send a message from my bot without the enduser having to start any conversation or have any kind of interaction?
If you use C#, you Can use telegram.api and below code:
bot.sendMessage.send(bot.chat_id,"Your Message").ToString();
If you're not interested in helping a beginner in email parsing, don't read further.
I have been programming for a while so I know the gist of things. But, I'm really interested in creating a dummy email address and then set up a parsing program inside of it (if thats even how you do it)
Scenario:
I have an email account which receives certain emails which need parsing. I want to be able to forward those emails to a "dummy" email address which is basically just a program which parses the email for sender, subject, and message. I would prefer to write a runnable jar program or something on windows but I'm willing to do web programming if need be. Android programming is also an option for me.
What would I do to get started? I'm not asking for anyone to write out everything, I just need a starting point for all of this.
Thanks!
What you describe can be solved like this:
1/ Create a catch-all address *#yourdomain.com which will receive all incoming e-mails except those who match an existing email address (e.g. contact#yourdomain.col)
2/ Pipe all incoming e-mails to a script with Procmail
:0
| `/home/foouser/scripts/footool/footool.sh`
3/ Let the script process the e-mail (read headers, save in db, ...)
Another, probably much more easy solution would be to use a web service like cloudmailin.com for this. If the structure of the e-mail is always the same, an email parsing solution like mailparser.io could help you as well.
I'm creating an android app that will convert SMS text messages to speak via the TTS api.
This will work well when texts are written in proper English, however when text messages contain smileys and abbreviations, these will be output as garbled worlds from the TTS engine.
Stripping smileys from the text can probably be done with a regex, however is there any API that can detect abbreviations and replace them will the full words?
For example, is there something that would intelligently be able to determine that this :
hi hw r u 2day?
into
Hi, how are you today?
There is an online service that does it - http://www.lingo2word.com/translate.php
Check what they use - or activate it as a web service from your app.
Another one: http://www.dtxtrapp.com/index.htm
You could write a custom class to do this easily. Think of using something like a key/pair data structure.
r -> are, u -> you, 2day -> today, ur -> your
I have a group that needs to send out announcements and current events via phone text message. I want to have a central phone number that when it receives a text message, it rebroadcasts that message to a growing list of subscribers. I'm hoping to use a Google Voice number to avoid buying an actual phone number.
Any ideas? I've thought about some type of Java/HTMLunit that continually parses the GVoice html inbox, but I just have that computer-gut feeling that there is a more intuitive way. I haven't been able to find a GVoice API, as I imagine that would be the trick.
Thanks
I've used a different approach. There's a number of E-mail to SMS services out there. So you send an e-mail (using standard JavaMail) to a specific address that is then associated with mobile phone numbers. I use TextMagic, but there are also other similar services out there. They also have API support, if thats what you'd prefer.
I'm using Logica SMPP api for sending sms. I'm able to send plain english messages with default data coding as "0"
Now if I want to send sms in other language such as hindi or chinese, what are the different values I should set..
Should I create a UDH for the same ?
wht data coding should I use?
wht esm class should I set ?
should I send the data as unicode?
Any suggestions on this will be very useful.
Looking through the API, I'd guess that ShortMessage.setEncoding() is the relevant method here.