import requests
import json
url = "https://kakaoi-newtone-openapi.kakao.com/v1/recognize"
api_key = "api_key"
header = {“Content-Type” : “application/octet-stream”,
“Authorization”: “KakaoAK” + “api_key”}
import speech_recognition as sr
r= sr.Recognizer()
with sr.Microphone(sample_rate=16000) as source:
print(“Say something”)
audio = r.listen(source)
res = requests.post(url, headers=header, data=audio.get_raw_data())
res.text
문제를 찾지 못하겠습니다. 결과는 wrong app_key 401이 뜹니다.