We released a new Speech SDK supporting the new Speech Service. The new Speech SDK comes with support for Windows, Android, Linux, Javascript and iOS.
Please check out Microsoft Cognitive Services Speech SDK for documentation, links to the download pages, and the samples.
NOTE: The content of this repository is supporting the Bing Speech Service, not the new Speech Service. Bing Speech Service has been deprecated, please use the new Speech Service.
This repo contains the iOS client library and samples for Speech-to-Text in Microsoft Speech API, an offering within Microsoft Cognitive Services on Azure, formerly known as Project Oxford.
To add the Speech Client Library dependency to an existing XCode Project:
- Select your target application, and open the menu
File
thenAdd Files to ...
- Navigate to
iPhoneOS
, selectSpeechSDK.framework
, and clickAdd
. - Go to your project settings, by single clicking your project, and navigate to the
General
tab. You will notice that SpeechSDK.framework exists under theLinked Frameworks and Libraries
section. - In the
General
tab, under theEmbedded Binaries
section, click the (+) button. In the dialog, selectSpeechSDK.framework
and click theAdd
button. - If you wish to run on the iOS Simulator or MacOSX, repeat steps 2-4 but choose either
iPhoneSimulator
orMacOSX
instead.
The Client Library Reference for iOS can be found here.
This sample demonstrates the following features using a wav file or external microphone input:
- Short-form recognition
- Long-form dictation
- Recognition with intent
- First, you must obtain a Speech API subscription key by following the instructions on Subscriptions.
- Start XCode and choose the menu
File
, andOpen...
the workspace fileCognitive-Speech-STT-iOS > SpeechSDK.xcworkspace
. - Use one of your subscription keys as the primaryKey in
Samples/SpeechRecognitionServerExample/settings.plist
. - If you want to use Recognition with intent, you also need to sign up for Language Understanding Intelligent Service (LUIS) and set the key values in
luisAppID
andluisSubscriptionID
inSamples/SpeechRecognitionServerExample/settings.plist
. - In XCode, select menu
Product > Build
to build the sample andRun
to launch the sample app.
In XCode, select the menu Product
, and Run
to launch this sample app.
- In the application, press the button
Change Mode
to select which recognition mode you would like to use. - To Start recognition, press the Start button.
We welcome contributions. Feel free to file issues and pull requests on the repo and we'll address them as we can. Learn more about how you can help on our Contribution Rules & Guidelines.
You can reach out to us anytime with questions and suggestions using our communities below:
- Support questions: StackOverflow
- Feedback & feature requests: Cognitive Services UserVoice Forum
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.
All Microsoft Cognitive Services SDKs and samples are licensed with the MIT License. For more information, see LICENSE.
Sample images are licensed separately, please refer to LICENSE-IMAGE.
Developers using Cognitive Services, including this client library and sample, are expected to follow the "Developer Code of Conduct for Microsoft Cognitive Services", found at http://go.microsoft.com/fwlink/?LinkId=698895.