app
Toggle table of contents
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
app
app
/
org.scottishtecharmy.soundscape.audio
/
TtsEngine
Tts
Engine
class
TtsEngine
(
val
audioEngine
:
NativeAudioEngine
,
val
engineLabelAndName
:
String
?
)
:
TextToSpeech.OnInitListener
Members
Constructors
Tts
Engine
Link copied to clipboard
constructor
(
audioEngine
:
NativeAudioEngine
,
engineLabelAndName
:
String
?
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
audio
Engine
Link copied to clipboard
val
audioEngine
:
NativeAudioEngine
engine
Label
And
Name
Link copied to clipboard
val
engineLabelAndName
:
String
?
Functions
check
Text
To
Speech
Initialization
Link copied to clipboard
fun
checkTextToSpeechInitialization
(
block
:
Boolean
)
:
Boolean
create
Text
To
Speech
Link copied to clipboard
fun
createTextToSpeech
(
engineHandle
:
Long
,
text
:
String
,
type
:
AudioType
,
latitude
:
Double
,
longitude
:
Double
,
heading
:
Double
)
:
Long
destroy
Link copied to clipboard
fun
destroy
(
)
get
Available
Engines
Link copied to clipboard
fun
getAvailableEngines
(
)
:
List
<
TextToSpeech.EngineInfo
>
get
Available
Speech
Languages
Link copied to clipboard
fun
getAvailableSpeechLanguages
(
)
:
Set
<
Locale
>
get
Available
Speech
Voices
Link copied to clipboard
fun
getAvailableSpeechVoices
(
)
:
Set
<
Voice
>
get
Current
Label
And
Name
Link copied to clipboard
fun
getCurrentLabelAndName
(
)
:
String
?
initialize
Link copied to clipboard
fun
initialize
(
context
:
Context
,
followPreferences
:
Boolean
=
true
)
on
Init
Link copied to clipboard
open
override
fun
onInit
(
status
:
Int
)
set
Speech
Language
Link copied to clipboard
fun
setSpeechLanguage
(
language
:
String
)
:
Boolean
stop
Link copied to clipboard
fun
stop
(
)
update
Speech
Link copied to clipboard
fun
updateSpeech
(
sharedPreferences
:
SharedPreferences
)
:
Boolean