用于Microsoft认知服务的API客户端(说话人识别)
ms-cognitive-speaker-recognition的Python项目详细描述
用于Microsoft Speaker Recognition API(Microsoft认知服务)的Python 2/3客户端
https://www.microsoft.com/cognitive-services/en-us/speaker-recognition-api
有关端到端演示,请参见examples文件夹。
importcognitive_srspeech_identification=cognitive_sr.SpeechIdentification(subscription_key)result=speech_identification.identify_profile(profile_ids,wav_data)print('Identified wav as profile: ',result['identifiedProfileId'])print('Confidence is: ',result['confidence'])
安装
要安装,只需:
$ pip install ms-cognitive-speaker-recognition