Skip to main content

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.

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.