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.
| Function | Summary |
|---|---|
| initialize API | API to initialize the TextToSpeech SDK. |
| release API | API to release the TextToSpeech SDK. |
| registerApp API | API to register the app for server-based speech synthesis. |
| addEventListener API | API to add an event listener for playback status. |
| removeEventListener API | API to remove a registered event listener. |
| setAudioAttributes API | API to set audio attributes for playback (Android Audio System). |
| speak API | API to play the desired text. |
| stop API | API to stop the currently playing TextToSpeech. |