[]Struct jni_android_sys::android::speech::tts::TextToSpeech

#[repr(transparent)]
pub struct 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]

TextToSpeech

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]

TextToSpeech

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]

addSpeech

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]

addSpeech

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]

addSpeech

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]

addSpeech

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]

addEarcon

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]

Deprecated

addEarcon

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]

addEarcon

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]

speak

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]

Deprecated

speak

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]

playEarcon

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]

Deprecated

playEarcon

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]

playSilentUtterance

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]

Deprecated

playSilence

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]

Deprecated

getFeatures

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]

pub fn setPitch<'env>(
    &'env self,
    arg0: f32
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn setAudioAttributes<'env>(
    &'env self,
    arg0: impl Into<Option<&'env AudioAttributes>>
) -> Result<i32, Local<'env, Throwable>>
[src]

setAudioAttributes

Required features: "android-media-AudioAttributes"

pub fn getDefaultLanguage<'env>(
    &'env self
) -> Result<Option<Local<'env, Locale>>, Local<'env, Throwable>>
[src]

Deprecated

getDefaultLanguage

Required features: "java-util-Locale"

pub fn setLanguage<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Locale>>
) -> Result<i32, Local<'env, Throwable>>
[src]

setLanguage

Required features: "java-util-Locale"

pub fn getLanguage<'env>(
    &'env self
) -> Result<Option<Local<'env, Locale>>, Local<'env, Throwable>>
[src]

Deprecated

getLanguage

Required features: "java-util-Locale"

pub fn getAvailableLanguages<'env>(
    &'env self
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
[src]

getAvailableLanguages

Required features: "java-util-Set"

pub fn getVoices<'env>(
    &'env self
) -> Result<Option<Local<'env, Set>>, Local<'env, Throwable>>
[src]

getVoices

Required features: "java-util-Set"

pub fn setVoice<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Voice>>
) -> Result<i32, Local<'env, Throwable>>
[src]

setVoice

Required features: "android-speech-tts-Voice"

pub fn getVoice<'env>(
    &'env self
) -> Result<Option<Local<'env, Voice>>, Local<'env, Throwable>>
[src]

getVoice

Required features: "android-speech-tts-Voice"

pub fn getDefaultVoice<'env>(
    &'env self
) -> Result<Option<Local<'env, Voice>>, Local<'env, Throwable>>
[src]

getDefaultVoice

Required features: "android-speech-tts-Voice"

pub fn isLanguageAvailable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Locale>>
) -> Result<i32, Local<'env, Throwable>>
[src]

isLanguageAvailable

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]

synthesizeToFile

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]

Deprecated

synthesizeToFile

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]

Deprecated

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]

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]

Deprecated

setEngineByPackageName

Required features: "java-lang-String"

pub fn getDefaultEngine<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getDefaultEngine

Required features: "java-lang-String"

pub fn areDefaultsEnforced<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

Deprecated

pub fn getEngines<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getEngines

Required features: "java-util-List"

pub fn getMaxSpeechInputLength<'env>(
    __jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]

pub const ACTION_TTS_QUEUE_PROCESSING_COMPLETED: &'static str[src]

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]

getClass

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]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

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]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

type Target = Object

The resulting type after dereferencing.

impl JniType for TextToSpeech

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.