这是indexloc提供的服务,不要输入任何密码
Skip to content

tts: add voice flag. variant is broken #769

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

john-peterson
Copy link

speech variant is apparently broken it always use the default voice. 1
means the variant was missing

https://stackoverflow.com/questions/22917260/android-google-tts-select-voice-variant-programmatically


echo abc|$PREFIX/libexec/termux-api TextToSpeech --es language eng --es region gbr --es variant male
logcat -d -v brief|grep TextToSpeech|vim - -R
E/TermuxAPI.TextToSpeechService(15083): tts.setLanguage(eng-gbr-male) returned 1

public static final int LANG_AVAILABLE = 0;
public static final int LANG_COUNTRY_AVAILABLE = 1;
public static final int LANG_COUNTRY_VAR_AVAILABLE = 2;

echo abc|$PREFIX/libexec/termux-api TextToSpeech --es voice en-gb-x-gbd-local

$PREFIX/libexec/termux-api TextToSpeech --es engine LIST_AVAILABLE|les

speech variant  is apparently broken it always use the default voice. 1
means the variant was missing

https://stackoverflow.com/questions/22917260/android-google-tts-select-voice-variant-programmatically

~~~

echo abc|$PREFIX/libexec/termux-api TextToSpeech --es language eng --es region gbr --es variant male
logcat -d -v brief|grep TextToSpeech|vim - -R
E/TermuxAPI.TextToSpeechService(15083): tts.setLanguage(eng-gbr-male) returned 1

public static final int LANG_AVAILABLE = 0;
public static final int LANG_COUNTRY_AVAILABLE = 1;
public static final int LANG_COUNTRY_VAR_AVAILABLE = 2;

echo abc|$PREFIX/libexec/termux-api TextToSpeech --es voice en-gb-x-gbd-local

$PREFIX/libexec/termux-api TextToSpeech --es engine LIST_AVAILABLE|les
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant