SeTruphe / Radio-Analyzer

Radio-Analyzer is an application designed to transcribe, translate, and analyze intercepted Russian radio communication from Ukraine, providing insights into communication patterns and content.
MIT License
1 stars 0 forks source link
analysis pythorch russo-ukrainian-war translation whisper


Header banner


Key Features - System Requirements - ffmpeg - Setup Guide


Radio-Analyzer is a cutting-edge tool designed to efficiently transcribe, translate, and analyze intercepted Russian radio communication from Ukraine using advanced AI technologies.

The main goal of this Software is to give everyone the Possibility to Analyze (not only) Russian Audiofiles from the War in Ukraine, without the need to have any Python or AI skills.

Overlay and Features


Overview
Obtain a concise and comprehensive overview of the analysis results

Key Features:


Overview
Customize the parameters according to your requirements and hardware capabilities



Overview
Analysis results are stored in a format that's easy to search and process



At present, Radio Analyzer is compatible with all audio file types that are supported by Whisper and, consequently, by ffmpeg, for regular usage without the application of noise reduction. Nonetheless, when utilizing functionalities that involve noise reduction, only .mp3 and .wav file formats are currently accommodated. Additionally, users have the option to input .mp4 files; the audio content from these will be automatically extracted.

System Requirements

It is recommended to run Radio Analyzer on Linux or Mac. While it is possible to run the program on Windows, users might encounter issues with the proper installation of ffmpeg, which is critical for the correct usage of Radio Analyzer.


For error-free operation of Radio Analyzer, please ensure your system has at least 16GB of RAM! The analysis process will fail if the RAM is insufficient!

For the requirements and details of the Whisper models, see below or please refer to Whisper's GitHub page.

Size Parameters English-only model Multilingual model Required VRAM Relative speed
tiny 39 M tiny.en tiny ~1 GB ~32x
base 74 M base.en base ~1 GB ~16x
small 244 M small.en small ~2 GB ~6x
medium 769 M medium.en medium ~5 GB ~2x
large 1550 M N/A large ~10 GB 1x

Please be aware that currently, Radio Analyzer only supports the Multilingual models.

It is recommended to have at least 20GB of free disk space available for Radio Analyzer and the required modules and datasets. Please be aware that on the first run, Radio Analyzer will need to download the necessary datasets (approximately 8GB), which will result in an extended runtime.

ffmpeg

Several components of Radio Analyzer necessitate the installation of the command line tool ffmpeg, which is accessible through most package managers:

# on Ubuntu or Debian
sudo apt update && sudo apt install ffmpeg

# on MacOS using Homebrew (https://brew.sh/)
brew install ffmpeg

# on Windows using Chocolatey (https://chocolatey.org/)
choco install ffmpeg

# on Windows using Scoop (https://scoop.sh/)
scoop install ffmpeg

Setup Guide

Clone the repository using the following command:

git clone https://github.com/SeTruphe/Radio-Analyzer.git

Manual Installation

You can manually install the program using the following commands:

# Create a new virtual environment
python3 -m venv .venv
# Activate the virtual environment
source .venv/bin/activate
# Install radio-analyzer
pip install .

To run the program, simply execute radio-analyzer in a terminal.
Remember to activate the virtual environment created earlier with source .venv/bin/activate every time you open a new terminal.

Using Scripts

Alternatively, you can use the scripts provided in the repository.

# Make scripts executable
chmod +x install.sh && chmod +x run.sh
# Run the installation script
./install.sh
# To run radio-analyzer, use the run script
./run.sh

Installation on Windows

Attention: This has not been tested yet!

# Create a new virtual environment
python -m venv .venv
# Activate the virtual environment
.venv\Scripts\activate
# Install radio-analyzer
pip install .

After installation, you can start Radio Analyzer on Windows in the same way as on Linux and Mac. Just remember to activate the environment with .venv\Scripts\activate.

Known Errors and Limitations