From 12bff6bcaa403bf7024b6d59c25dc70caa549cae Mon Sep 17 00:00:00 2001 From: SevaSk Date: Fri, 12 May 2023 10:54:28 -0400 Subject: [PATCH] renamed to custom speech recognition --- AudioRecorder.py | 2 +- AudioTranscriber.py | 2 +- .../__init__.py | 0 .../__main__.py | 2 +- .../audio.py | 0 .../exceptions.py | 0 .../flac-linux-x86 | Bin .../flac-linux-x86_64 | Bin .../flac-mac | Bin .../flac-win32.exe | Bin .../pocketsphinx-data/en-US/LICENSE.txt | 0 .../pocketsphinx-data/en-US/acoustic-model/README | 0 .../en-US/acoustic-model/feat.params | 0 .../pocketsphinx-data/en-US/acoustic-model/mdef | Bin .../pocketsphinx-data/en-US/acoustic-model/means | Bin .../en-US/acoustic-model/noisedict | 0 .../pocketsphinx-data/en-US/acoustic-model/sendump | Bin .../en-US/acoustic-model/transition_matrices | Bin .../en-US/acoustic-model/variances | Bin .../pocketsphinx-data/en-US/language-model.lm.bin | Bin .../en-US/pronounciation-dictionary.dict | 0 .../recognizers/__init__.py | 0 .../recognizers/whisper.py | 4 ++-- main.py | 1 - 24 files changed, 5 insertions(+), 6 deletions(-) rename {speech_recognition => custom_speech_recognition}/__init__.py (100%) rename {speech_recognition => custom_speech_recognition}/__main__.py (95%) rename {speech_recognition => custom_speech_recognition}/audio.py (100%) rename {speech_recognition => custom_speech_recognition}/exceptions.py (100%) rename {speech_recognition => custom_speech_recognition}/flac-linux-x86 (100%) rename {speech_recognition => custom_speech_recognition}/flac-linux-x86_64 (100%) rename {speech_recognition => custom_speech_recognition}/flac-mac (100%) rename {speech_recognition => custom_speech_recognition}/flac-win32.exe (100%) rename {speech_recognition => custom_speech_recognition}/pocketsphinx-data/en-US/LICENSE.txt (100%) rename {speech_recognition => custom_speech_recognition}/pocketsphinx-data/en-US/acoustic-model/README (100%) rename {speech_recognition => custom_speech_recognition}/pocketsphinx-data/en-US/acoustic-model/feat.params (100%) rename {speech_recognition => custom_speech_recognition}/pocketsphinx-data/en-US/acoustic-model/mdef (100%) rename {speech_recognition => custom_speech_recognition}/pocketsphinx-data/en-US/acoustic-model/means (100%) rename {speech_recognition => custom_speech_recognition}/pocketsphinx-data/en-US/acoustic-model/noisedict (100%) rename {speech_recognition => custom_speech_recognition}/pocketsphinx-data/en-US/acoustic-model/sendump (100%) rename {speech_recognition => custom_speech_recognition}/pocketsphinx-data/en-US/acoustic-model/transition_matrices (100%) rename {speech_recognition => custom_speech_recognition}/pocketsphinx-data/en-US/acoustic-model/variances (100%) rename {speech_recognition => custom_speech_recognition}/pocketsphinx-data/en-US/language-model.lm.bin (100%) rename {speech_recognition => custom_speech_recognition}/pocketsphinx-data/en-US/pronounciation-dictionary.dict (100%) rename {speech_recognition => custom_speech_recognition}/recognizers/__init__.py (100%) rename {speech_recognition => custom_speech_recognition}/recognizers/whisper.py (92%) diff --git a/AudioRecorder.py b/AudioRecorder.py index 1cb634b..83394ee 100644 --- a/AudioRecorder.py +++ b/AudioRecorder.py @@ -1,4 +1,4 @@ -import speech_recognition as sr +import custom_speech_recognition as sr import pyaudiowpatch as pyaudio from datetime import datetime diff --git a/AudioTranscriber.py b/AudioTranscriber.py index 2e94b6e..3021571 100644 --- a/AudioTranscriber.py +++ b/AudioTranscriber.py @@ -4,7 +4,7 @@ import wave import os import threading from tempfile import NamedTemporaryFile -import speech_recognition as sr +import custom_speech_recognition as sr import io from datetime import timedelta from time import sleep diff --git a/speech_recognition/__init__.py b/custom_speech_recognition/__init__.py similarity index 100% rename from speech_recognition/__init__.py rename to custom_speech_recognition/__init__.py diff --git a/speech_recognition/__main__.py b/custom_speech_recognition/__main__.py similarity index 95% rename from speech_recognition/__main__.py rename to custom_speech_recognition/__main__.py index faf8979..68f5652 100644 --- a/speech_recognition/__main__.py +++ b/custom_speech_recognition/__main__.py @@ -1,4 +1,4 @@ -import speech_recognition as sr +import custom_speech_recognition as sr r = sr.Recognizer() m = sr.Microphone() diff --git a/speech_recognition/audio.py b/custom_speech_recognition/audio.py similarity index 100% rename from speech_recognition/audio.py rename to custom_speech_recognition/audio.py diff --git a/speech_recognition/exceptions.py b/custom_speech_recognition/exceptions.py similarity index 100% rename from speech_recognition/exceptions.py rename to custom_speech_recognition/exceptions.py diff --git a/speech_recognition/flac-linux-x86 b/custom_speech_recognition/flac-linux-x86 similarity index 100% rename from speech_recognition/flac-linux-x86 rename to custom_speech_recognition/flac-linux-x86 diff --git a/speech_recognition/flac-linux-x86_64 b/custom_speech_recognition/flac-linux-x86_64 similarity index 100% rename from speech_recognition/flac-linux-x86_64 rename to custom_speech_recognition/flac-linux-x86_64 diff --git a/speech_recognition/flac-mac b/custom_speech_recognition/flac-mac similarity index 100% rename from speech_recognition/flac-mac rename to custom_speech_recognition/flac-mac diff --git a/speech_recognition/flac-win32.exe b/custom_speech_recognition/flac-win32.exe similarity index 100% rename from speech_recognition/flac-win32.exe rename to custom_speech_recognition/flac-win32.exe diff --git a/speech_recognition/pocketsphinx-data/en-US/LICENSE.txt b/custom_speech_recognition/pocketsphinx-data/en-US/LICENSE.txt similarity index 100% rename from speech_recognition/pocketsphinx-data/en-US/LICENSE.txt rename to custom_speech_recognition/pocketsphinx-data/en-US/LICENSE.txt diff --git a/speech_recognition/pocketsphinx-data/en-US/acoustic-model/README b/custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/README similarity index 100% rename from speech_recognition/pocketsphinx-data/en-US/acoustic-model/README rename to custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/README diff --git a/speech_recognition/pocketsphinx-data/en-US/acoustic-model/feat.params b/custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/feat.params similarity index 100% rename from speech_recognition/pocketsphinx-data/en-US/acoustic-model/feat.params rename to custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/feat.params diff --git a/speech_recognition/pocketsphinx-data/en-US/acoustic-model/mdef b/custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/mdef similarity index 100% rename from speech_recognition/pocketsphinx-data/en-US/acoustic-model/mdef rename to custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/mdef diff --git a/speech_recognition/pocketsphinx-data/en-US/acoustic-model/means b/custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/means similarity index 100% rename from speech_recognition/pocketsphinx-data/en-US/acoustic-model/means rename to custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/means diff --git a/speech_recognition/pocketsphinx-data/en-US/acoustic-model/noisedict b/custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/noisedict similarity index 100% rename from speech_recognition/pocketsphinx-data/en-US/acoustic-model/noisedict rename to custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/noisedict diff --git a/speech_recognition/pocketsphinx-data/en-US/acoustic-model/sendump b/custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/sendump similarity index 100% rename from speech_recognition/pocketsphinx-data/en-US/acoustic-model/sendump rename to custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/sendump diff --git a/speech_recognition/pocketsphinx-data/en-US/acoustic-model/transition_matrices b/custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/transition_matrices similarity index 100% rename from speech_recognition/pocketsphinx-data/en-US/acoustic-model/transition_matrices rename to custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/transition_matrices diff --git a/speech_recognition/pocketsphinx-data/en-US/acoustic-model/variances b/custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/variances similarity index 100% rename from speech_recognition/pocketsphinx-data/en-US/acoustic-model/variances rename to custom_speech_recognition/pocketsphinx-data/en-US/acoustic-model/variances diff --git a/speech_recognition/pocketsphinx-data/en-US/language-model.lm.bin b/custom_speech_recognition/pocketsphinx-data/en-US/language-model.lm.bin similarity index 100% rename from speech_recognition/pocketsphinx-data/en-US/language-model.lm.bin rename to custom_speech_recognition/pocketsphinx-data/en-US/language-model.lm.bin diff --git a/speech_recognition/pocketsphinx-data/en-US/pronounciation-dictionary.dict b/custom_speech_recognition/pocketsphinx-data/en-US/pronounciation-dictionary.dict similarity index 100% rename from speech_recognition/pocketsphinx-data/en-US/pronounciation-dictionary.dict rename to custom_speech_recognition/pocketsphinx-data/en-US/pronounciation-dictionary.dict diff --git a/speech_recognition/recognizers/__init__.py b/custom_speech_recognition/recognizers/__init__.py similarity index 100% rename from speech_recognition/recognizers/__init__.py rename to custom_speech_recognition/recognizers/__init__.py diff --git a/speech_recognition/recognizers/whisper.py b/custom_speech_recognition/recognizers/whisper.py similarity index 92% rename from speech_recognition/recognizers/whisper.py rename to custom_speech_recognition/recognizers/whisper.py index 505c60a..98f76ef 100644 --- a/speech_recognition/recognizers/whisper.py +++ b/custom_speech_recognition/recognizers/whisper.py @@ -3,8 +3,8 @@ from __future__ import annotations import os from io import BytesIO -from speech_recognition.audio import AudioData -from speech_recognition.exceptions import SetupError +from custom_speech_recognition.audio import AudioData +from custom_speech_recognition.exceptions import SetupError def recognize_whisper_api( diff --git a/main.py b/main.py index b24955d..b8fc2aa 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,3 @@ -import soundcard as sc import threading from AudioTranscriber import AudioTranscriber from GPTResponder import GPTResponder