-
-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we have voice selection, at least for android? #16
Comments
@honzasvasek I can definitely add tts.setVoice() however you'll have to pass an object back similar to the voice object required to set the voice setVoice
Unfortunately there isn't an option for passing a value for "male" or "female". Android TTS Reference - this provides all of the methods the Android TTS package provides. Here is an example of what getVoices() returns and as you can see, some may result with a name of #male in it however not all of them do.
|
@honzasvasek so you'd like a getVoices option to return a list of voices and then a setVoice to set the voice based on that index of getVoices? |
I think that is the way to go, easiest would be when we could do the
setVoice without even having to do the getVoices. For my application a
numVoices, would be handy, so I can give the user an interface similar to
the one that Google uses in the Google-tts setup.
…On Sun, Jan 6, 2019, 14:22 Daniel Lutton ***@***.*** wrote:
@honzasvasek <https://github.com/honzasvasek> so you'd like a getVoices
option to return a list of voices and then a setVoice to set the voice
based on that index of getVoices?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AK_GNmP0SIWGE8kxJ4REZo7eMK27kTXdks5vAbldgaJpZM4ZibLh>
.
|
@honzasvasek unfortunately there isn't an easy way to do a setVoice(1) as you previously mentioned. getvoices() can return over 200 voices with some of them having male and/or female voices. I did however add a getVoices and setVoice function for you in the latest version which you can play around with. I'm hoping that's enough for you to add some logic to your application for what you need. If you have other ideas for this implementation, please let me know or submit a PR. |
🚀 Feature Requests
Android Voice Selection.
tts.setvoice() implementation (so we can select male or female voices) can be done by setting de voice number in default voice in setup, but it would be nice to be able to do this from the app.
Platforms affected (mark all that apply)
The text was updated successfully, but these errors were encountered: