Introduction
Overview
The TextToSpeech SDK provides a voice synthesis feature based on a voice interface by supporting the integration of applications running on the 42dot Pleos Vehicle OS with the 42dot voice synthesis platform. The SDK transmits text to the Speech Service platform according to the API format provided by the TextToSpeech SDK and delivers the synthesized voice results from the Speech Service platform back to the client. The TextToSpeech SDK allows playback of desired text using the audio system in the car environment.
[No backward compatibility support]
- Apply the updated package naming. (Modify module-level build.gradle and import statements)
- Apply the updated permission naming in the manifest file.
- Re-download the Pleos Connect Emulator.
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. |