Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NerdSmith committed Aug 24, 2021
0 parents commit d6554f6
Show file tree
Hide file tree
Showing 40 changed files with 1,253 additions and 0 deletions.
Binary file added PyAudio-0.2.11-cp37-cp37m-win_amd64.whl
Binary file not shown.
1 change: 1 addition & 0 deletions app.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
INFO:root:devices have been found
38 changes: 38 additions & 0 deletions definitions.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import os

import pyaudio

# global
ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
LOGFILE_PATH = os.path.join(ROOT_DIR, "app.log")
HISTORY_FILE_PATH = os.path.join(ROOT_DIR, "history.csv")
STYLES_FILE_PATH = os.path.join(ROOT_DIR, 'gui/style.qss')

# resources path
RES_PATH = os.path.join(ROOT_DIR, "resources")
NO_IMAGE_ICON = os.path.join(RES_PATH, "no_image_icon.png")
ICO_PATH = os.path.join(RES_PATH, "app_logo_v2_2.ico")

# gui settings
MIN_IMAGE_SIZE = 250

# recorder settings
DEFAULT_FRAMES = 512
CHUNK = 1024
FORMAT = pyaudio.paInt16
RATE = 48000
RECORD_SECONDS = 9
EXCERPT_PATH = os.path.join(ROOT_DIR, "excerpt.wav")

# update listen btn settings
UPDATE_RATE = 10 # times per second
WAITING_TIME = 25 # seconds
# WAITING_TIME = RECORD_TIMOUT + RECOGNISE_TIMOUT

# timeouts
RECORD_TIMOUT = 10
RECOGNIZE_TIMOUT = 15

# history model
ITEM_SELECTION_CODE = 200

Binary file added ffmpeg.exe
Binary file not shown.
Binary file added ffprobe.exe
Binary file not shown.
Loading

0 comments on commit d6554f6

Please sign in to comment.