
파이썬으로 음성 인식 스크립트 만들기
녹음된 음성파일을 읽어서 txt 형태로 변환 하는 스크립트 import speech_recognition as sr recognizer = sr.Recognizer() audio_file = '/Users/project/test/audio.wav' with sr.AudioFile(audio_file) as source: audio_data = recognizer.record(source) try: text = recognizer.recognize_google(audio_data) print("Transcription:") print(text) except sr.UnknownValueError: print("Google Web Speech API could not understand the audio") ..
- TEST Engineering/자동화 & 유용한도구 Tips
- · 2023. 9. 4.

pynput을 이용한 매크로 만들기 step1
pynput(파이엔풋)이라는 파이썬 라이브러리로 마우스과 키보드 이벤트를 받아 제어 및 모니터링 (레코딩) 후 매크로 처럼 사용 할 수 있다 급하게 사용해야 하는 UI 테스트 시에 유용할 것 같아 우선 콘솔로 수행하는 스크립트를 남겨본다 pynput documents 상세페이지 바로가기 https://pynput.readthedocs.io/en/latest/ pynput Package Documentation — pynput 1.7.6 documentation pynput Package Documentation This library allows you to control and monitor input devices. It contains subpackages for each type of input ..
- TEST Engineering/자동화 & 유용한도구 Tips
- · 2023. 9. 1.