52. TTS(Text to Speech) & STT(Speech to Text)


52. TTS(Text to Speech) & STT(Speech to Text)

현재 음성 인식율이 좋지 않고 시간 지연 발생이 많아서 프로그램 수정 진행 중임 (엔진 문제는 아닌지 ....) from gtts import gTTS import speech_recognition as sr import pygame import os import psutil intext = 'xxxxx' def release_file_handle(file_path): # 파일이 열려있는 프로세스 목록을 가져옵니다. opened_processes = [] for proc in psutil.process_iter(['pid', 'name']): try: files = proc.open_files() for f in files: if f.path == file_path: opened_processes.append(proc) break except (psutil.AccessDenied, psutil.NoSuchProcess): continue # 열려있는 프로세스의 파일 핸들을 강제로 닫...



원문링크 : 52. TTS(Text to Speech) & STT(Speech to Text)