Skip to content

Most visited

Recently visited

navigation

android_tts_engine_funcs_t Struct Reference

android_tts_engine_funcs_t Struct Reference

#include <tts.h>

Data Fields

void * reserved [2]
 
android_tts_result_t(* init )(void *engine, android_tts_synth_cb_t synthDonePtr, const char *engineConfig)
 
android_tts_result_t(* shutdown )(void *engine)
 
android_tts_result_t(* stop )(void *engine)
 
android_tts_support_result_t(* isLanguageAvailable )(void *engine, const char *lang, const char *country, const char *variant)
 
android_tts_result_t(* loadLanguage )(void *engine, const char *lang, const char *country, const char *variant)
 
android_tts_result_t(* setLanguage )(void *engine, const char *lang, const char *country, const char *variant)
 
android_tts_result_t(* getLanguage )(void *engine, char *language, char *country, char *variant)
 
android_tts_result_t(* setAudioFormat )(void *engine, android_tts_audio_format_t *pEncoding, uint32_t *pRate, int *pChannels)
 
android_tts_result_t(* setProperty )(void *engine, const char *property, const char *value, const size_t size)
 
android_tts_result_t(* getProperty )(void *engine, const char *property, char *value, size_t *iosize)
 
android_tts_result_t(* synthesizeText )(void *engine, const char *text, int8_t *buffer, size_t bufferSize, void *userdata)
 

Field Documentation

§ getLanguage

android_tts_result_t(* getLanguage) (void *engine, char *language, char *country, char *variant)

§ getProperty

android_tts_result_t(* getProperty) (void *engine, const char *property, char *value, size_t *iosize)

§ init

android_tts_result_t(* init) (void *engine, android_tts_synth_cb_t synthDonePtr, const char *engineConfig)

§ isLanguageAvailable

android_tts_support_result_t(* isLanguageAvailable) (void *engine, const char *lang, const char *country, const char *variant)

§ loadLanguage

android_tts_result_t(* loadLanguage) (void *engine, const char *lang, const char *country, const char *variant)

§ reserved

void* reserved[2]

§ setAudioFormat

android_tts_result_t(* setAudioFormat) (void *engine, android_tts_audio_format_t *pEncoding, uint32_t *pRate, int *pChannels)

§ setLanguage

android_tts_result_t(* setLanguage) (void *engine, const char *lang, const char *country, const char *variant)

§ setProperty

android_tts_result_t(* setProperty) (void *engine, const char *property, const char *value, const size_t size)

§ shutdown

android_tts_result_t(* shutdown) (void *engine)

§ stop

android_tts_result_t(* stop) (void *engine)

§ synthesizeText

android_tts_result_t(* synthesizeText) (void *engine, const char *text, int8_t *buffer, size_t bufferSize, void *userdata)

The documentation for this struct was generated from the following file:
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (Dec 2017 Android Platform & Tools Survey)