This repository hosts the source code for Argmax Playground. It is open-sourced to demonstrate best practices when using the Argmax SDK through an end-to-end example app. Specifically, this app demonstrates Real-time Transcription, File Transcription and Diarized Transcription.
git clone https://github.com/argmaxinc/argmax-sdk-swift-playground.git
cd argmax-sdk-swift-playgroundopen Playground.xcodeprojBefore running the app, you must complete these setup steps:
In Xcode, select your app target and go to Signing & Capabilities. Choose your Development Team from the dropdown to enable code signing.
In order to unlock the SDK, you will need to provide your API key. You can create one at https://app.argmaxinc.com.
- Copy the template configuration file:
cp Playground/Resources/config.template.json Playground/Resources/config.json
- Edit
Playground/Resources/config.jsonand replaceYOUR_API_KEY_HEREwith your actual API key:{ "apiKey": "your_actual_api_key_here", "huggingFaceToken": null }
The config.json file is already added to .gitignore to prevent accidentally committing your API key.
Alternatively, you can modify the fallback API key in DefaultEnvInitializer.swift:
return PlainTextAPIKeyProvider(
apiKey: "your_api_key_here" // Fallback API key
)Important: Never commit your actual API key to version control.