Skip to content

ssnym/SpoofedSpeechGUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spoofed Speech Detection - PyQt6 GUI Application

This repository provides GUI-based desktop application built using PyQt6 to demonstrate spoofed speech detection.

This applications uses two spoofed speech detection models : AASIST and RawNet

The third model One Class Classifier is being trained so in GUI application the value for One-Class will be N/A for now

The pretrained models are provided by Shilpa


Getting Started

Method 1 : Using Conda Environment

Prerequisites

  • Conda need to installed on your system . Please follow the guide to install conda on your system Conda

Steps

  1. First, clone the repository locally
git clone https://github.com/ssnym/SpoofedSpeechGUI.git

cd SpoofedSpeechGUI
  1. Create and activate the conda environment
# Create a conda environment from the environment.yml file
conda env create -f environment.yml

# Activate the conda environment
conda activate <env_name> 
  1. Run the main script to launch the GUI
python -m src.main

Method 2 : Using Docker (Linux Systems)

Pre-requisites

Docker need to installed on your system . Please follow the guide to install conda on your system Docker

Steps

  1. First, clone the repository locally
git clone https://github.com/ssnym/SpoofedSpeechGUI

cd SpoofedSpeechGUI
  1. Start the docker using command
sudo systemctl start docker
  1. Build the Docker image. A Dockerfile defines the instructions to build a Docker image with all dependencies and configurations for an application. To build the docker image run
docker build -t <image_name> .
  1. The audio files need to be placed in the '~/audio_files' directory on your computer first. The app will see these files in its '/data directory'.
    Run the following command to run the docker image. Make sure to replace <image_name> with the name you chose in the previous step.
# For Linux 

xhost +local:docker && docker run -it --rm \
--env="DISPLAY" \
--env="QT_X11_NO_MITSHM=1" \
--volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" \
--env="XAUTHORITY=$XAUTHORITY" \
--volume="$XAUTHORITY:$XAUTHORITY" \
--env PULSE_SERVER=unix:/run/user/$(id -u)/pulse/native \
--volume /run/user/$(id -u)/pulse:/run/user/$(id -u)/pulse \
--volume ~/.config/pulse/cookie:/root/.config/pulse/cookie \
--volume "$(pwd)":/app \
--volume "$HOME/audio_files":/data \
<image_name>

About

PyQt6 - Desktop GUI for spoofed speech detection

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors