本プログラムは、Pythonを用いてマイクからの音声をリアルタイムで認識し、テキストに変換するGUIアプリケーションです。英語と日本語の音声認識に対応し、認識結果をテキストフィールドに表示、クリップボードへのコピー、プレーンテキストファイルへの保存が可能です。ユーザビリティを向上させるため、直感的なアイコンボタンや動作ログ表示を備えます。
- 言語: Python 3.x
- ライブラリ:
speech_recognition: 音声認識
pyperclip: クリップボード操作
| import tkinter as tk | |
| from tkinter import ttk, scrolledtext, messagebox | |
| import psutil | |
| import os | |
| import win32gui | |
| import win32process | |
| import win32con | |
| import win32api | |
| from PIL import Image, ImageTk | |
| import io |
| import tkinter as tk | |
| from tkinter import scrolledtext, filedialog | |
| import subprocess | |
| import threading | |
| import os | |
| import json | |
| # 言語用の辞書の定義 | |
| LANGUAGES = { | |
| "ja": { |
| import subprocess | |
| import sys | |
| import ctypes | |
| # 必要なライブラリのリスト | |
| REQUIRED_LIBRARIES = [ | |
| 'PyQt5', | |
| 'ctypes', | |
| 'pywinstyles' | |
| ] |
| import sys | |
| import subprocess | |
| import json | |
| import tkinter as tk | |
| from tkinter import simpledialog | |
| import time | |
| import pkg_resources | |
| import threading | |
| import pyperclip | |
| import os |
筋トレアプリで「ずんだもん」の声を使用するには、VoiceVoxという音声合成ソフトウェアを別途インストールして実行する必要があります。
| import tkinter as tk | |
| from tkinter import ttk | |
| import threading | |
| import time | |
| import importlib | |
| import subprocess | |
| import sys | |
| # 必要なパッケージの自動インストール | |
| def install_package(package): |