Skip to content

Commit

Permalink
Add required Windows batch scripts to make RADAE work.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Aug 31, 2024
1 parent fc797b2 commit 7f5b51c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions radae_rx.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@echo off

set RADAE_PATH=%1
set RADAE_VENV=%2

rem The below does the following:
rem * For each block of OTA audio from freedv-gui:
rem * Convert the 8 kHz audio into IQ data via zero-padding.
rem * Pass the IQ data into the RADAE decoder
rem * Send the resulting 16 kHz audio back to freedv-gui for playback.
rem
rem Note: Current RADAE scripts seem to require being executed from
rem the RADAE folder.
cd %RADAE_PATH%
set PATH=%RADAE_VENV%\scripts;%PATH%
%RADAE_VENV%\scripts\python.exe -u int16tof32.py --zeropad | %RADAE_VENV%\scripts\python.exe -u radae_rx.py model19_check3\checkpoints\checkpoint_epoch_100.pth -v 2 --auxdata | build\src\lpcnet_demo -fargan-synthesis - -
16 changes: 16 additions & 0 deletions radae_tx.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@echo off

set RADAE_PATH=%1
set RADAE_VENV=%2

rem The below does the following:
rem * For each block of microphone audio from freedv-gui:
rem * Extract features from 16 kHz input audio.
rem * Pass features into the RADAE encoder.
rem * Send the resulting 8 kHz audio back to freedv-gui.
rem
rem Note: Current RADAE scripts seem to require being executed from
rem the RADAE folder.
cd %RADAE_PATH%
set PATH=%RADAE_VENV%\scripts;%PATH%
build\src\lpcnet_demo -features - - | %RADAE_VENV%\scripts\python.exe -u radae_tx.py model19_check3\checkpoints\checkpoint_epoch_100.pth --auxdata | %RADAE_VENV%\scripts\python.exe -u f32toint16.py --real --scale 16383

0 comments on commit 7f5b51c

Please sign in to comment.