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

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