Prerequisites
- Obtain and configure an API Key. Do not hardcode long-term API Keys in mobile apps. We recommend that your app server generates a temporary API Key and then distributes it to the client.
-
Download the SDK and run the sample code:
- Download the latest SDK integration package.
- Extract the
.tar.gzintegration package and addRelease/nuisdk.xcframeworkto your Xcode project. - In Build Phases → Link Binary With Libraries, add
nuisdk.xcframework. - In General → Frameworks, Libraries, and Embedded Content, set
nuisdk.xcframeworkto Embed & Sign.
QuickStart
Open the sample project in Xcode. The sample code is located in DashCosyVoiceStreamInputTTSViewController.m. Replace the API Key and then experience the features.
Use model qwen-audio-3.0-tts-flash in the example.