SpeechRecognitionServiceFactoryCreateMicrophoneClient Method (SpeechRecognitionMode, String, String, String, String) |
Note: This API is now obsolete.
[Deprecated] Create a MicrophoneRecognitionClient with Acoustic Model Adaptation -- for speech recognition from
the microphone. The microphone is turned on and data from the microphone is sent to the Speech
Recognition Service. A built in Silence Detector is applied to the microphone data before it is
sent to the recognition service. Returns only text recognition results.
Namespace: Microsoft.CognitiveServices.SpeechRecognitionAssembly: SpeechClient (in SpeechClient.dll) Version: 0.0.0.0
Syntax[ObsoleteAttribute]
public static MicrophoneRecognitionClient CreateMicrophoneClient(
SpeechRecognitionMode speechRecognitionMode,
string language,
string primaryKey,
string secondaryKey,
string url
)
<ObsoleteAttribute>
Public Shared Function CreateMicrophoneClient (
speechRecognitionMode As SpeechRecognitionMode,
language As String,
primaryKey As String,
secondaryKey As String,
url As String
) As MicrophoneRecognitionClient
public:
[ObsoleteAttribute]
static MicrophoneRecognitionClient^ CreateMicrophoneClient(
SpeechRecognitionMode speechRecognitionMode,
String^ language,
String^ primaryKey,
String^ secondaryKey,
String^ url
)
[<ObsoleteAttribute>]
static member CreateMicrophoneClient :
speechRecognitionMode : SpeechRecognitionMode *
language : string *
primaryKey : string *
secondaryKey : string *
url : string -> MicrophoneRecognitionClient
Parameters
- speechRecognitionMode
- Type: Microsoft.CognitiveServices.SpeechRecognitionSpeechRecognitionMode
In ShortPhrase mode the client gets one final multiple n-best choice result and
in LongDictation mode the client will receive multiple final results, based on
where the server thinks sentence pauses are.
- language
- Type: String
American English: "en-us"
British English: "en-gb"
German: "de-de"
Spanish: "es-es"
French: "fr-fr"
Italian: "it-it"
Mandarin: "zh-cn"
- primaryKey
- Type: String
The primary key. It's a best practice that the application rotate keys periodically. Between rotations, you
would disable the primary key, making the secondary key the default, giving you time to swap out the primary.
- secondaryKey
- Type: String
Ignored.
- url
- Type: String
The endpoint with a Acoustic Model that you specially created with the Acoustic Model Specialization Service.
Return Value
Type:
MicrophoneRecognitionClientThe created DataRecognitionClient.
See Also