Skip to main content

Introduction

Overview

The TextToSpeech SDK provides a voice synthesis interface that allows infotainment apps running on Pleos Connect to integrate with the Pleos voice synthesis platform (Speech Service). Using this SDK, text is transmitted to the platform, and the synthesized voice results are delivered to the app. The app can play the desired text as voice through the car's audio system.

Development Environment Setup

To use the TextToSpeech SDK, install the Pleos Connect Emulator in Android Studio and proceed with AVD configuration.

TextToSpeech API

The list of APIs provided by the TextToSpeech SDK is as follows.

FunctionSummary
initialize APIAPI to initialize the TextToSpeech SDK.
release APIAPI to release the TextToSpeech SDK.
registerApp APIAPI to register the app for server-based speech synthesis.
addEventListener APIAPI to add an event listener for playback status.
removeEventListener APIAPI to remove a registered event listener.
setAudioAttributes APIAPI to set audio attributes for playback (Android Audio System).
speak APIAPI to play the desired text.
stop APIAPI to stop the currently playing TextToSpeech.