내 리눅스 시스템에서 간단한 명령을 실행하면 :구글 음성 API 오류
curl -X POST \
--data-binary @'1.wav' \
--header 'Content-Type: audio/l16; rate=16000;' \
'https://www.google.com/speech-api/v2/recognize?output=json&lang=he-IL&key=THE_KEY'
나는 오류가 점점 오전 :
Your client does not have permission to get URL /speech-api/v2/recognize?output=json&lang=he-IL&key=THE_KEY from this server. Invalid key. That’s all we know.
을 (그것은 연설 api를 위해 가능하게되었다).
나는 심지어 서버의 IP 주소를 추가하고 같은 오류가 발생했습니다.
내가 지금까지 발견 한 결과는 크롬 클라이언트와 관련이 있습니다. Im on shell.
감사
당신이 여기에서 API 키를 생성 한 확신 : N은 1 단계에서 설정 요청 https://developers.google.com/maps/documentation/javascript/get- api-key # key 그리고 요청에 해당 키를 전달하고 있습니까? – nitinsh99
@ nitinsh99, 이것은지도가 아닙니다. Google 음성 API입니다. 그리고 네, 열쇠를 건네 줘서 여기에 그것을 노출 할 수 없습니다. – SexyMF