Migrate from Bing Speech to the Speech service
Use this article to migrate your applications from the Bing Speech API to the Speech service.
This article outlines the differences between the Bing Speech APIs and the Speech service, and suggests strategies for migrating your applications. Your Bing Speech API subscription key won't work with the Speech service; you'll need a new Speech service subscription.
A single Speech service subscription key grants access to the following features. Each is metered separately, so you're charged only for the features you use.
- Custom speech-to-text
- Custom text-to-speech voices
- Speech translation (does not include Text translation)
The Speech SDK is a functional replacement for the Bing Speech client libraries, but uses a different API.
Comparison of features
The Speech service is largely similar to Bing Speech, with the following differences.
|Feature||Bing Speech||Speech service||Details|
|C# SDK||✔️||✔️||Speech service supports Windows 10, Universal Windows Platform (UWP), and .NET Standard 2.0.|
|C++ SDK||➖||✔️||Speech service supports Windows and Linux.|
|Java SDK||✔️||✔️||Speech service supports Android and Speech Devices.|
|Continuous speech recognition||10 minutes||Unlimited||The Speech SDK supports unlimited continuous recognition, and automatically reconnects upon timeout or disconnect.|
|Partial or interim results||✔️||✔️||Supported with the Speech SDK.|
|Custom speech models||✔️||✔️||Bing Speech requires a separate Custom Speech subscription.|
|Custom voice fonts||✔️||✔️||Bing Speech requires a separate Custom Voice subscription.|
|Speech intent recognition||Requires separate LUIS API call||Integrated (with SDK)||You can use a LUIS key with the Speech service.|
|Simple intent recognition||➖||✔️|
|Batch transcription of long audio files||➖||✔️|
|Recognition mode||Manual via endpoint URI||Automatic||Recognition mode is not available in the Speech service.|
|Endpoint locality||Global||Regional||Regional endpoints improve latency.|
|REST APIs||✔️||✔️||The Speech service REST APIs are compatible with Bing Speech (different endpoint). REST APIs support text-to-speech and limited speech-to-text functionality.|
|WebSockets protocols||✔️||➖||The Speech SDK abstracts web socket connections for functionality that requires a constant connection to the service, so there is no longer support to subscribe to them manually.|
|Service-to-service API calls||✔️||➖||Provided in Bing Speech via the C# Service Library.|
The Speech service uses a time-based pricing model (rather than a transaction-based model). See Speech service pricing for details.
If you or your organization have applications in development or production that use a Bing Speech API, you should update them to use the Speech service as soon as possible. See the Speech service documentation for available SDKs, code samples, and tutorials.
The Speech service REST APIs are compatible with the Bing Speech APIs. If you're currently using the Bing Speech REST APIs, you need only change the REST endpoint, and switch to a Speech service subscription key.
If you're using a Bing Speech client library for a specific programming language, migrating to the Speech SDK requires changes to your application, because the API is different. The Speech SDK can make your code simpler, while also giving you access to new features. The Speech SDK is available in a wide variety of programming languages. APIs on all platforms are similar, easing multi-platform development.
The Speech service doesn't offer a global endpoint. Determine if your application functions efficiently when it uses a single regional endpoint for all of its traffic. If not, use geolocation to determine the most efficient endpoint. You need a separate Speech service subscription in each region you use.
To get started with the Speech SDK:
- Download the Speech SDK.
- Work through the Speech service quickstart guides and tutorials. Also look at the code samples to get experience with the new APIs.
- Update your application to use the Speech service.
For Speech service, SDK, and API support, visit the Speech service support page.