Microsoft Bing Speech API: iOS Speech-to-Text Client Library & Sample
This repo contains iOS samples for using Speech-to-Text in the Microsoft Bing Speech API, an offering within Microsoft Cognitive Services, formerly known as Project Oxford. * Learn about the Bing Speech API * Read the documentation * Find more SDKs & Samples
The Client Library
The client library is a client library for Speech-to-Text in the Microsoft Bing Speech API
To add the client library dependency from an existing XCode Project: 1. Select your target application, and open the menu
Add Files to ...
Speech > SpeechToText > iOS > iPhoneOS, select
SpeechSDK.framework, and click
Go to your project settings, by single clicking your project, and navigate to the
Generaltab. You'll notice that SpeechSDK.framework exists under the
Linked Frameworks and Librariessection.
In the General tab, under the
Embedded Binariessection, click the (+) button. In the dialog, select
SpeechSDK.frameworkand click the
If you wish to run on the iOS Simulator or MacOSX, repeat steps 2-4 but choose either
This sample demonstrates the following features using a wav file or external microphone input: * Short-form recognition * Long-form dictation * Recognition with intent
Build the sample
First, you must obtain a Speech API subscription key by [following the instructions on our website(https://www.microsoft.com/cognitive-services/en-us/sign-up).
Start XCode and choose the menu
Open...the workspace file
Speech > SpeechToText > iOS > SpeechSDK.xcworkspace.
In XCode, select menu
Product > Buildto build the sample, and
Runto launch this sample app.
Running the sample
In XCode, select the menu
Run to launch this sample app.
In the application, press the button
Change Modeto select what type of Speech would like to use.
For modes where you would like both Speech recognition and Intent to work, you need to sign up Language Understanding Intelligent Service (LUIS) and set the key values in luisAppID and luisSubscriptionID from
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.
All Microsoft Cognitive Services SDKs and samples are licensed with the MIT License. For more details, see LICENSE.
Sample images are licensed separately, please refer to LICENSE-IMAGE.
Developer Code of Conduct
Developers using Cognitive Services, including this client library & sample, are expected to follow the “Developer Code of Conduct for Microsoft Cognitive Services”, found at http://go.microsoft.com/fwlink/?LinkId=698895.