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