-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add required Windows batch scripts to make RADAE work.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 - - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |