Let's say I have two or more voices installed for the same language - country combination, like "en-US". One could be female, the other male voice for example. How could I switch these programmatically? There seems to be no way...
I can easily switch any time between "en-UK" and "en-US" voices by using something like:
myTTS.setLanguage(locale);
but for switching voices within the same locale, nothing. Looks to me like a flaw in Android TextToSpeech class design... Or is there some way of which I'm not aware? FYI, the high quality IVONA voices (still in free beta in Google Play Store) have "Select preferred voice" setting for each language locale. The other TTS engines I have installed (Pico, Google and SVOX Classic) do not offer this option yet, so maybe the only way to do this would be to access the private settings of IVONA engine?
Greg
Related
Looked all over for an answer, hope someone can enlighten me. Tried both the pica and SVOX text-to-speech engines in my Infuse4G. Both work great EXCEPT certain words like "the" and "of" are spelled out, rather than pronounced. It's maddening to hear t-h-e instead of the completed word; this makes the TTS function basically unusable. I am using word docs in Quickoffice for testing.
Any way to modify either engine so they stop spelling words?
Wow I've used SVOX and I've never had that problem before
@3GBeyotch Thanks for your response. Upon further checking I found that the TTS works fine if I originate a document in Quickoffice. Problems occur when I paste text from the clipboard. I took this pasted text and stripped all hidden characters by passing it through notepad, then pasted straight ASCII to a file. When transferred to android, the TTS engine still screws up words. Very bizarre. Generate text natively in Quickoffice and all is OK. Bring clean text into Quickoffice and TTS takes a dump on certain short words such as 'the' and 'of' by spelling them.
This may be one of those computer things that is beyond explanation
Hi there!
I developed a small utility app named "Voice Out" which I would like to share with the XDA users.
It's basically a TTS Client that use the Android built-in TTS Engine and I hope that someone will find it useful!
It's available at Google Play: Voice Out
or you can download the APK here: View attachment 2286658 -> Sorry for the broken link, will attach the APK later.
Voice Out is a simple Text-to-speech client that makes your device speak texts with the Android Text-to-speech Engine (TTS). Your phone must be capable to run Small Apps and have a Text-to-Speech engine to make it work.
To check if you have a Text-to-speech Engine installed, go to Settings -> Accessibility -> System -> Text-to-speech output or use the menu inside the app.
Tested on Sony Xperia Z Ultra, Samsung Galaxy Note 2 and Samsung Galaxy S3 with the following TTS Engines:
- Google Text-to-speech Engine
- Pico TTS
- Ekho TTS (余音), for Cantonese and Mandarin support
- Samsung TTS
This application access your device clipboard to get the copied text so you don't need to paste it manually.
Requires at least Android 2.1 and up (auto paste function only works with Android 3.0 and up)
This application is Ad-supported and I hope the ad location doesn't affect much the usability.
I made also a Sony Small App version:
http://forum.xda-developers.com/showthread.php?t=2458952
which was featured on today's post http://www.xda-developers.com/android/voice-out-small-app-for-xperia-device-text-messages/
Luis
In order for me to use Google Now's hotword ("OK Google...") I have to set my language to English (US). This is fine, but I hate having to correct language differences (e.g. "Call Mum" vs. "Call Mom", "Colour" vs. "Color" when searching Google Drive etc.) and wonder, what prevents Google Now from displaying the hotword tick box in the settings? Is it a flag or phrase in the offline language file? Is it hard-coded into the APK? And more importantly, is it possible to enable the hotword option while retaining a non-English (US) language setting?
I'm waiting for my Nexus 5 to arrive (hopefully the day after tomorrow, as tomorrow is a public holiday), and one of the purchasing decisions for me was the Moto X-esque hotword detection from the homescreen (and hopefully, always-on hotword detection?), so it'd be good to use my language of choice, while keeping an advertised feature.
I have tasker run functions, and it sometimes talks to me, now coming from a 2.3 device to a 4.3 I see the voice is different, and it's not terribly nice, are there any alternative voices to try? I know in the past other makers (Samsung) have had different voices)
I'll answer my own question in case anyone else finds this useful.
If you're unhappy with text to speech on your android device, there's several options to try both paid & unpaid.
For me (after extensive research & testing) I found this solution works best.
Svox Classic Text To Speech Engine
https://play.google.com/store/apps/details?id=com.svox.classic
and the voice I used for maximum clarity & easy on the ears was this:
SVOX US English Grace Voice
https://play.google.com/store/apps/details?id=com.svox.classic.langpack.eng_usa_fem
Naturally your mileage will vary, but this one worked for me. It doesn't seem to work in google now speech, but in maps (navigation), tasker & FBReadet TTs it does.
Hello
I am working on my dissertation & I want to use Google Speech API to distinguish users by there voice.
I have seen and imported the Google Speech API Sample from
https://github.com/GoogleCloudPlatform/android-docs-samples/tree/master/speech/Speech
Before I was trying to use DialogFlow (used to be API.AI), didnt have much luck. Thought it might be better to use Google Speech API instead.
is this even possible to start with?
I was also looking at "Actions on Google"
https://developers.google.com/actions/identity/user-info
thanks for any input
Have you figured out how to achieve it?