Learning with Texts - Fork
2.10.0-fork
Learn foreign languages with texts
|
Utility for calling system speech synthesizer. More...
Namespaces | |
Lwt | |
Functions | |
get_language_code ($language) | |
language_id_from_code ($code) | |
tts_language_options () | |
tts_settings_form () | |
tts_demo () | |
tts_settings_minimal_page () | |
tts_settings_full_page ($message) | |
tts_save_settings ($form) | |
Variables | |
$message = '' | |
Utility for calling system speech synthesizer.
PHP version 8.1
get_language_code | ( | $language | ) |
Two-letter language code from from language name (e. g. : "English" = > "en" ).
string | $language | Language name, for instance "English" |
@ðeprecated Since 2.9.1-fork, use getLanguageCode
language_id_from_code | ( | $code | ) |
Return the language ID from a two-letter language code or a BCP 47 tag.
If two languages have the same country name, only thte first one will be returned.
string | $code | Two letters, or four letters separated with caret ("fr" or "en-US"). |
tts_demo | ( | ) |
Prepare a demo for TTS.
tts_language_options | ( | ) |
String to population a SELECT tag.
tts_save_settings | ( | $form | ) |
Save the text-to-speech settings as cookies.
array | $form | Inputs from the main form. |
tts_settings_form | ( | ) |
Prepare a from for all the TTS settings.
tts_settings_full_page | ( | $message | ) |
Make the complete HTML page for text-to-speech settings.
string | $message | A message to display when page loads. |
tts_settings_minimal_page | ( | ) |
Make only a partial, embedable page for text-to-speech settings.