Prerequisites
-
Obtain and configure an API Key. Do not hardcode a long-term API Key in mobile apps. We recommend that your application server generates a temporary API Key and then delivers it to the client.
-
Download the SDK and run the sample code:
- Download the latest SDK package.
- Extract the ZIP package. Obtain the SDK in AAR format from the
app/libsdirectory and add it to your project dependencies.
For Android CPP integration, useandroid_libsandandroid_includein the ZIP package to obtain the dynamic libraries and header files.
QuickStart
Open the project in Android Studio. The sample code is in DashCosyVoiceStreamTtsActivity.java. Replace the API Key to try the feature.
Use model cosyvoice-v3-plus in the example.