[−]Struct jni_android_sys::android::speech::tts::TextToSpeech
public class TextToSpeech
Required feature: "android-speech-tts-TextToSpeech"
Methods
impl TextToSpeech
pub fn new_Context_OnInitListener<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env TextToSpeech_OnInitListener>>
) -> Result<Local<'env, TextToSpeech>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env TextToSpeech_OnInitListener>>
) -> Result<Local<'env, TextToSpeech>, Local<'env, Throwable>>
Required features: "android-content-Context", "android-speech-tts-TextToSpeech_OnInitListener"
pub fn new_Context_OnInitListener_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env TextToSpeech_OnInitListener>>,
arg2: impl Into<Option<&'env String>>
) -> Result<Local<'env, TextToSpeech>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env TextToSpeech_OnInitListener>>,
arg2: impl Into<Option<&'env String>>
) -> Result<Local<'env, TextToSpeech>, Local<'env, Throwable>>
Required features: "android-content-Context", "android-speech-tts-TextToSpeech_OnInitListener", "java-lang-String"
pub fn shutdown<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn addSpeech_String_String_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn addSpeech_CharSequence_String_int<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env String>>,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env String>>,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-CharSequence", "java-lang-String"
pub fn addSpeech_String_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn addSpeech_CharSequence_File<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env File>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env File>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-io-File", "java-lang-CharSequence"
pub fn addEarcon_String_String_int<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn addEarcon_String_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn addEarcon_String_File<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env File>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env File>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-io-File", "java-lang-String"
pub fn speak_CharSequence_int_Bundle_String<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: i32,
arg2: impl Into<Option<&'env Bundle>>,
arg3: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: i32,
arg2: impl Into<Option<&'env Bundle>>,
arg3: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-os-Bundle", "java-lang-CharSequence", "java-lang-String"
pub fn speak_String_int_HashMap<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env HashMap>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env HashMap>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String", "java-util-HashMap"
pub fn playEarcon_String_int_Bundle_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env Bundle>>,
arg3: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env Bundle>>,
arg3: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-os-Bundle", "java-lang-String"
pub fn playEarcon_String_int_HashMap<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env HashMap>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: i32,
arg2: impl Into<Option<&'env HashMap>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String", "java-util-HashMap"
pub fn playSilentUtterance<'env>(
&'env self,
arg0: i64,
arg1: i32,
arg2: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32,
arg2: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn playSilence<'env>(
&'env self,
arg0: i64,
arg1: i32,
arg2: impl Into<Option<&'env HashMap>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32,
arg2: impl Into<Option<&'env HashMap>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-util-HashMap"
pub fn getFeatures<'env>(
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
Required features: "java-util-Locale", "java-util-Set"
pub fn isSpeaking<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn stop<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn setSpeechRate<'env>(
&'env self,
arg0: f32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32
) -> Result<i32, Local<'env, Throwable>>
pub fn setPitch<'env>(
&'env self,
arg0: f32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: f32
) -> Result<i32, Local<'env, Throwable>>
pub fn setAudioAttributes<'env>(
&'env self,
arg0: impl Into<Option<&'env AudioAttributes>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env AudioAttributes>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-media-AudioAttributes"
pub fn getDefaultLanguage<'env>(
&'env self
) -> Result<Option<Local<'env, Locale>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Locale>>, Local<'env, Throwable>>
Required features: "java-util-Locale"
pub fn setLanguage<'env>(
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-util-Locale"
pub fn getLanguage<'env>(
&'env self
) -> Result<Option<Local<'env, Locale>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Locale>>, Local<'env, Throwable>>
Required features: "java-util-Locale"
pub fn getAvailableLanguages<'env>(
&'env self
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
Required features: "java-util-Set"
pub fn getVoices<'env>(
&'env self
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
Required features: "java-util-Set"
pub fn setVoice<'env>(
&'env self,
arg0: impl Into<Option<&'env Voice>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Voice>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-speech-tts-Voice"
pub fn getVoice<'env>(
&'env self
) -> Result<Option<Local<'env, Voice>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Voice>>, Local<'env, Throwable>>
Required features: "android-speech-tts-Voice"
pub fn getDefaultVoice<'env>(
&'env self
) -> Result<Option<Local<'env, Voice>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Voice>>, Local<'env, Throwable>>
Required features: "android-speech-tts-Voice"
pub fn isLanguageAvailable<'env>(
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Locale>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-util-Locale"
pub fn synthesizeToFile_CharSequence_Bundle_File_String<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env Bundle>>,
arg2: impl Into<Option<&'env File>>,
arg3: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: impl Into<Option<&'env Bundle>>,
arg2: impl Into<Option<&'env File>>,
arg3: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-os-Bundle", "java-io-File", "java-lang-CharSequence", "java-lang-String"
pub fn synthesizeToFile_String_HashMap_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env HashMap>>,
arg2: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env HashMap>>,
arg2: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String", "java-util-HashMap"
pub fn setOnUtteranceCompletedListener<'env>(
&'env self,
arg0: impl Into<Option<&'env TextToSpeech_OnUtteranceCompletedListener>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env TextToSpeech_OnUtteranceCompletedListener>>
) -> Result<i32, Local<'env, Throwable>>
setOnUtteranceCompletedListener
Required features: "android-speech-tts-TextToSpeech_OnUtteranceCompletedListener"
pub fn setOnUtteranceProgressListener<'env>(
&'env self,
arg0: impl Into<Option<&'env UtteranceProgressListener>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env UtteranceProgressListener>>
) -> Result<i32, Local<'env, Throwable>>
setOnUtteranceProgressListener
Required features: "android-speech-tts-UtteranceProgressListener"
pub fn setEngineByPackageName<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getDefaultEngine<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn areDefaultsEnforced<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn getEngines<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn getMaxSpeechInputLength<'env>(
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
pub const ACTION_TTS_QUEUE_PROCESSING_COMPLETED: &'static str
[src]
public static final ACTION_TTS_QUEUE_PROCESSING_COMPLETED
pub const ERROR: i32
[src]
public static final ERROR
pub const ERROR_INVALID_REQUEST: i32
[src]
public static final ERROR_INVALID_REQUEST
pub const ERROR_NETWORK: i32
[src]
public static final ERROR_NETWORK
pub const ERROR_NETWORK_TIMEOUT: i32
[src]
public static final ERROR_NETWORK_TIMEOUT
pub const ERROR_NOT_INSTALLED_YET: i32
[src]
public static final ERROR_NOT_INSTALLED_YET
pub const ERROR_OUTPUT: i32
[src]
public static final ERROR_OUTPUT
pub const ERROR_SERVICE: i32
[src]
public static final ERROR_SERVICE
pub const ERROR_SYNTHESIS: i32
[src]
public static final ERROR_SYNTHESIS
pub const LANG_AVAILABLE: i32
[src]
public static final LANG_AVAILABLE
pub const LANG_COUNTRY_AVAILABLE: i32
[src]
public static final LANG_COUNTRY_AVAILABLE
pub const LANG_COUNTRY_VAR_AVAILABLE: i32
[src]
public static final LANG_COUNTRY_VAR_AVAILABLE
pub const LANG_MISSING_DATA: i32
[src]
public static final LANG_MISSING_DATA
pub const LANG_NOT_SUPPORTED: i32
[src]
public static final LANG_NOT_SUPPORTED
pub const QUEUE_ADD: i32
[src]
public static final QUEUE_ADD
pub const QUEUE_FLUSH: i32
[src]
public static final QUEUE_FLUSH
pub const STOPPED: i32
[src]
public static final STOPPED
pub const SUCCESS: i32
[src]
public static final SUCCESS
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for TextToSpeech
impl AsValidJObjectAndEnv for TextToSpeech
impl Deref for TextToSpeech
impl JniType for TextToSpeech
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for TextToSpeech
impl !Send for TextToSpeech
impl !Sync for TextToSpeech
impl Unpin for TextToSpeech
impl UnwindSafe for TextToSpeech
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,