我正在使用此python库 https://github.com/Uberi/speech_recognition/blob/master/speech_recognition/__init__.py
if key is None: key = "AIzaSyBOti4mM-6x9WDnZIjIeyEU21OpBXqWBgw"
url = "http://www.google.com/speech-api/v2/recognize?{}".format(urlencode({
"client": "chromium",
"lang": language,
"key": key,
"pFilter": pfilter
}))
request = Request(url, data=flac_data, headers={"Content-Type": "audio/x-flac; rate={}".format(audio_data.sample_rate)})
,他们提供了一些使用Google语音API的方法,例如通用密钥,我想问一下如何拥有自己的密钥。 我发现的是另一种密钥-Cloud Speech-to-Text API。 https://console.cloud.google.com/apis/library/speech.googleapis.com?q=Speech%20Api&id=7ae3f475-64e7-4123-880a-a889f34fa714&project=vernal-centaur-273103
作为我测试的结果,它不如上面的Google Speech-API好。这就是为什么我想知道如何拥有以上按键。感谢您的阅读和帮助。