Azure-Samples / cognitive-services-speech-sdk

Sample code for the Microsoft Cognitive Services Speech SDK
MIT License
2.88k stars 1.85k forks source link

How to use speech-to-text API with python in Chinese? #335

Closed 18617109893 closed 5 years ago

18617109893 commented 5 years ago

How can i use speech-to-text API with python in Chinese? I have tried quick start demo with python, and English recognition is good, but what about Chinese? is there any documentation?Many Thanks!

chlandsi commented 5 years ago

You can set the speech recognition language on the SpeechConfig object, e.g. config = SpeechConfig(subscription=speech_key, region=service_region, speech_recognition_language='zh-CN'). The list of supported languages with the corresponding codes is here.

18617109893 commented 5 years ago

@chlandsi You're handsome! Thanks. By the way, do you have more guide about "start_continuous_recognition()"?

chlandsi commented 5 years ago

Thank you, glad to help ;) Please have a look at our extended Python samples. These cover continuous recognition and other related topics.

18617109893 commented 5 years ago

@chlandsi Thanks a lot! ~~