Plaud Embedded’s SDK and APIs have two different authentication methods to be aware of:
User Token - user-level tokens with your user’s unique ID and minted with a Partner Token
Client ID & API Key - used for the Transcription API
A Partner Token is an application-level token. A single Partner Token can mint multiple User Tokens.Use the Authentication APIs to retrieve your Partner Tokens and mint User Tokens.
Binding Plaud Devices is the process of linking your users’ Plaud device to your mobile application. The reason we use the term “bind” is because devices can only be linked to one application at a time.When your application binds to your users’ Plaud devices, your partner/user credentials are used for encrypting, decrypting, and syncing your users’ data with your app. This is how your users’ data is kept secure and only syncs data with your application (not just any Plaud Embedded application).
Syncing Files from Plaud Device to Your Mobile App
Plaud devices have their own storage and audio is stored on-device while recording. After a recording is finished, you must sync audio files from your users’ Plaud device to their mobile app.This can be done via Bluetooth Low Energy (BLE) or WiFi Fast Transfer.
WiFi Fast Transfer is ~10x faster but can only be initiated by the NotePin S, and only when docked (charging).It works by opening a hotspot connection between your NotePin S and your users’ phone. WiFi Fast Transfer requires the HotSpot Entitlement when configuring your iOS app
Syncing files with BLE and WiFi Fast Transfer
// BLE SyncPlaudDeviceAgent.shared.exportAudio( sessionId: file.sessionId, outputDir: outputDir, format: .wav, channels: 1, callback: callback)// WiFi Fast TransferPlaudDeviceAgent.shared.setDeviceWiFi(open: true)// In bleWiFiOpen callback:PlaudWiFiAgent.shared.bleDevice = BleAgent.shared.bleDevicePlaudWiFiAgent.shared.connectWifi(ssid, password, 60)// After wifiHandshake(status: 0):PlaudWiFiAgent.shared.exportAudioViaWiFi(...)
Triggering and Pulling Transcriptions from the Transcriptions API
The Transcription API allows you to transcribe any file uploaded to Plaud’s storage in an asynchronous way.
Trigger a transcription task - behind the scenes, Plaud is running your uploaded audio file through noise reduction, speaker detection, language recognition, and other speech-to-text pipeline steps
Poll transcription status - use the Transcription API to check the status of a task, and on the SUCCESS status, the transcription data will be available.