Skip to content
Snippets Groups Projects
  1. Jul 09, 2022
  2. Jul 06, 2022
  3. May 30, 2022
    • fredRan24's avatar
      Added loadDictionary · e0bb223a
      fredRan24 authored
      - Function called in init, and can now be updated directly from the menu, for rapid on the fly changes and testing of additions to the dictionary file.
      e0bb223a
    • fredRan24's avatar
      Added Language Selection in source · 80926028
      fredRan24 authored
      Added variables for the respective language dictionary and corpus files
      80926028
    • fredRan24's avatar
      Temp Update · 2b815e8a
      fredRan24 authored
      - Updated temp files
      2b815e8a
    • fredRan24's avatar
      Multiple Language Support · 16e3a5f5
      fredRan24 authored
      - Removed 'dictionary.txt' and 'corpus.txt' from directory
      - Added spanish and welsh equivalents for both dictionary and corpus
      16e3a5f5
  4. May 11, 2022
  5. May 05, 2022
  6. Apr 27, 2022
    • fredRan24's avatar
      Added requirements.txt · 14f26647
      fredRan24 authored
      Contains python package requirements.txt for use in setting up environment for syste use.
      14f26647
    • fredRan24's avatar
      Added main.py · 53175e12
      fredRan24 authored
      Utilises interactions class to perform all of the functionality of the system in a readable format
      53175e12
    • fredRan24's avatar
      added Interactions class · 4e4c6be2
      fredRan24 authored
      Class contains the reorder, processor and checker classes, and can be utilised by main.py to supply user with menus, record, process and compare input speech.
      
      __init__ - loads the classes mentioned above. Adds a local variable for the mode and exit
      
      modeSelector - shows the mode selector menu and allows mode selection
      
      wordSelector - shows the word selection menu and allows word selection
      
      repeatMenu - shows a menu after one round of use/recording, which allows user to exit, change mode or word, or to record again
      
      printCurrentWord - prints the currently selected word which is being trained on
      
      check - checks the transcription against the selected word, returning the appropriate output
      
      recordAndProcess - records the audio using the reorder class and processes it using the processor class, outputting the model's transcription
      4e4c6be2
    • fredRan24's avatar
      Added PronounciationChecker class · 009475d7
      fredRan24 authored
      __init__ - gets the corpus from the corpus file, sets a variable ready to store the currently selected word.
      
      getCorpus - returns the corpus as a list of str
      
      setWord - sets the local word variable
      
      compare - Compares a supplied string against the currently selected word, and formats output accordingly. Shows a list of differences across the two words if there are any.
      009475d7
    • fredRan24's avatar
      Added Recorder class · 83114b89
      fredRan24 authored
      Added class to deal with recording
      
      __init__ - Sets sample rate, recording chunk size, time to record for, and creates a place in memory to store audio frames.
      
      record - records the audio using the previously set parameters, returning a numpy.array for processing
      83114b89
    • fredRan24's avatar
      Speech Corpus · fb639d55
      fredRan24 authored
      List of 15 words which are known to work with the system
      fb639d55
    • fredRan24's avatar
      Added WelshAudioProcessor class · 2ac517bb
      fredRan24 authored
      Contains Methods:
      __init__ - Loads the wav2vec2 model, gets the dictionary from dictionary.txt in root dir
      
      processWavDir - redacted to reduce footprint, can be uncommented for use in testing.
      
      processAudio - processes a numpy array and transcribes using International Phonetic Alphabet (IPA)
      
      convertIPAToRoman - converts the IPA word into corresponding welsh orthography (latin script) using the disctionary
      2ac517bb
    • fredRan24's avatar
      Deleted Readme · ec0052a2
      fredRan24 authored
      ec0052a2
Loading