LitDev Extension API
LDSpeech

The Speech library allows text to be spoken and speech recognition.
BabbleTimeout
![]() |
DebugMode
![]() |
EndSilenceTimeout
![]() |
EndSilenceTimeoutAmbiguous
![]() |
InitialSilenceTimeout
![]() |
LastSpoken
![]() |
LastSpokenConfidence
![]() |
Listen
![]() |
Speak
![]() |
Speed
![]() |
Vocabulary
![]() |
Voice
![]() |
Voices
![]() |
Volume
![]() |
BabbleTimeout

Time in seconds recogniser accepts input containing only background noise, default 0.
DebugMode

Set a debug mode for speech regognition "True" or "False" (default)
Set before creating Listen event.
This will send message "DETECTED" to Listen event when any speech noise is detected, even if it is not recognised in the vocabulary.
EndSilenceTimeout

Time in seconds recogniser accepts silence after unambigous detection, default 0.15.
EndSilenceTimeoutAmbiguous

Time in seconds recogniser accepts silence after ambigous detection, default 0.5.
InitialSilenceTimeout

Time in seconds recogniser accepts input containing only silence, default 30.
LastSpoken

Text of the last speech spoken (and recognised) by the computer.
LastSpokenConfidence

The last speech spoken detection confidence of correctness (0 to 1).
Listen

Event when speech is spoken (and recognised) by the computer.
A good microphone, lots of training or consise dictionary are needed to get decent results.
Speak(text)

Speak some text.
text Text to be spoken.
returns None.
Speed

Speed of speech (-10 to 10).
Vocabulary(dictionary)

Set a vocabulary of words and phrases for the speech regonition to use.
If this is unset, then a large language vocabulary is used and the results will generally be less good (unusable).
Also distinct phrases can have a better recognition than single words.
dictionary An array of words or phrases to be recognised.
If it is empty, then the default language vocabulary is used.
returns None.
Voice

The current voice.
Voices()

Returns an array of available voices.
returns An array of available voices.
Volume

Volume of speech (0 to 100).