Skip to main content

Qwen-Audio-TTS Android SDK

Prerequisites

  1. 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.
  2. 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/libs directory and add it to your project dependencies.
      For Android CPP integration, use android_libs and android_include in 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 qwen-audio-3.0-tts-flash in the example.

Reference