Skip to content

argmaxinc/argmax-sdk-kotlin-playground

Repository files navigation

Argmax SDK Kotlin Playground

This project hosts the source code for Argmax Playground for Android.

It is open-sourced to demonstrate best practices when building with Argmax Pro SDK Kotlin through an end-to-end example app. Specifically, this app demonstrates Real-time Transcription and File Transcription.


Getting Started

1. Get Argmax credentials

This project requires a secret token and an API key from that you may generate from your Argmax Dashboard.

2. Set Argmax credentials

Once obtained, please set the following environment variable with your secret token that starts with axst_:

export ARGMAX_SECRET_API_TOKEN=axst_****

Furthermore, you will need to replace REPLACE_WITH_ARGMAX_API_KEY in playground-sample-app/src/main/java/com/argmaxinc/playground/sample/di/LicenseModule.kt with your real API key that starts with ax_

Do not commit your API key..

3. Follow Installation instructions

Please see Installation for details or see the following tutorial videos that are based on this repository:


argmax-sdk-kotlin and argmax-sdk-kotlin-portable

For an overview of how the default (argmax-sdk-kotlin) and portable (argmax-sdk-kotlin-portable) SDKs differ, see this video playlist.

The default project configuration uses the argmax-sdk-kotlin package to demonstrate the production-shaped Google Play runtime-delivery integration. argmax-sdk-kotlin-portable is simpler for quick local development because it bundles runtime libraries directly, but it has a larger app size impact (>50 MB vs <5 MB).

Because the default SDK setup generates runtime-delivery modules and model assets, Gradle initialization can take a while the first time. Install the sample app through the runtime-delivery tasks:

./gradlew installRuntimeDeliveryDebugForDevice
./gradlew installRuntimeDeliveryReleaseForDevice

Use the portable SDK if you want the regular Android Studio or Gradle install flow.

When updating the SDK version, keep the runtime-delivery settings plugin version in settings.gradle.kts aligned with the SDK version in gradle/libs.versions.toml; the sample app dependency in playground-sample-app/build.gradle.kts reads that version catalog entry.

About

Argmax SDK Kotlin Playground

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages