-
- All Implemented Interfaces:
public abstract class BaseVoiceKitDependencyProvider
Base class to be extended by the class responsible to create dependencies needed for voice kit
-
-
Constructor Summary
Constructors Constructor Description BaseVoiceKitDependencyProvider()
-
Method Summary
Modifier and Type Method Description abstract ITextToSpeechApi
createTtsDelegate(Context context, INlgResponseListener responseListener, ITtsInitialisationListener initialisationListener)
Creates the component that will be used to play texts abstract ISpeechToTextApi
createSpeechToText(ISpeechToTextCallback speechCallback)
Creates the component to transform user speech in text abstract IVoiceAudioManager
createAudioManager()
Creates the component to play audio -
-
Method Detail
-
createTtsDelegate
abstract ITextToSpeechApi createTtsDelegate(Context context, INlgResponseListener responseListener, ITtsInitialisationListener initialisationListener)
Creates the component that will be used to play texts
- Parameters:
context
- Context used to create TTS engineresponseListener
- Listener to be notified on different utterances playedinitialisationListener
- Listener to be notified of the status of the TTS engine initialisation
-
createSpeechToText
abstract ISpeechToTextApi createSpeechToText(ISpeechToTextCallback speechCallback)
Creates the component to transform user speech in text
- Parameters:
speechCallback
- Callback needed for the Speech to Text component
-
createAudioManager
abstract IVoiceAudioManager createAudioManager()
Creates the component to play audio
-
-
-
-