반응형
import speech_recognition as sr
r = sr.Recognizer()
text = sr.AudioFile('Source.wav')
with text as source:
audio = r.record(source)
print("Source:"+r.recognize_google(audio))
5분 이상 되는 음원은 오류가 나는 것 같음.
음원을 자르는 파이썬 코드는 아래에 있음.
파이썬 실행 후 Print 결과 부분을 복사해서 사용하거나
text 파일로 저장하는 코드를 아래에 추가하면 txt 파일로 추출 가능하다.
회의/미팅 같은 거 하고 내용을 복기 할 때 유용하다. (물론 상대의 동의를 구하고 녹음을 한)
반응형
'컴퓨터 > 파이썬 (Python)' 카테고리의 다른 글
[Python] 폴더 내 파일 명 추출해서 txt 파일로 저장하기 (0) | 2023.05.17 |
---|---|
[Python] wav 파일 자르기 (0) | 2023.03.21 |
[Python] image to csv (0) | 2022.05.18 |
[Python] 이미지 흑백 변환 (0) | 2022.05.18 |
[Python, 머신러닝] Confusion Matrix 그리기 (0) | 2022.03.23 |