Reputation: 179
i've tried the samples provided in Microsoft speachsdk ,it detects English Speech but no arabic recognition , I tried This method from Microsoft in order to get the language ad it returns en-US
public String getSpeechRecognitionLanguage()
My Question does it support Arabic Speech Recognition or Not ,if it Yes how to do implement the Using SpeachSDK or any piece of code for setting the recognition language ? Thanks For your time
Upvotes: 0
Views: 243
Reputation: 179
After research the answer is Yes you can ,but Azure just don't put that on their Documentation !! , how to do it just do the following
private static final String SpeechRecognitionLanguage = "ar-EG";
then Set the language to speech Configuration
// create config
final SpeechConfig speechConfig;
speechConfig = SpeechConfig.fromSubscription(SpeechSubscriptionKey, SpeechRegion);
//Set the speechrecgnitionlanguage
speechConfig.setSpeechRecognitionLanguage(SpeechRecognitionLanguage);
Upvotes: 0
Reputation: 222582
To your first question, yes Azure Cognitive Speech service
supports Arabic (ar-EG)
import com.microsoft.cognitiveservices.speech.audio.AudioConfig;
import com.microsoft.cognitiveservices.speech.SpeechConfig;
import com.microsoft.cognitiveservices.speech.SpeechRecognizer;
Have a look at this sample code
Upvotes: 1