microsoft/speech-sdk-spm
This repository provides Swift Package Manager (SPM) support for the Microsoft Cognitive Services Speech SDK on Apple platforms.
Overview
The Speech SDK enables speech-to-text, text-to-speech, translation, and other speech AI capabilities powered by Azure AI Speech.
This repository contains the Swift Package Manager package definition and distribution artifacts needed to consume the Speech SDK from Apple applications.
Getting Started
In Xcode:
- Select File > Add Package Dependencies...
- Enter the repository URL
https://github.com/microsoft/speech-sdk-spm - Choose the desired version
- When Xcode shows package products, select only one product and add it to your app target:
- MicrosoftCognitiveServicesSpeech-iOS: Standard iOS SDK - MicrosoftCognitiveServicesSpeechEmbedded-iOS: iOS SDK with on-device (embedded) speech - MicrosoftCognitiveServicesSpeech-macOS: Standard macOS SDK
Important: Do not add multiple products from this package to the same app target.
Usage
Import the SDK in your source:
Swift
import MicrosoftCognitiveServicesSpeechObjective-C
#import <MicrosoftCognitiveServicesSpeech/SPXSpeechApi.h>Samples
Objective-C and Swift end-to-end samples are maintained in the Speech SDK samples repository:
If a sample references an older Speech SDK package version, update the package dependency to the latest release from this repository before building.
This repository is for Swift Package Manager packaging and distribution only.
Package Metadata
Repository: microsoft/speech-sdk-spm
Default branch: main
README: README.md