Skip to content

Commit

Permalink
Figured out how to get valid audio into radae_tx.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Aug 17, 2024
1 parent 46fd9d2 commit dafa7af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions radae_demo_tx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cd $RADAE_PATH
# The below does the following:
# * For each block of OTA audio from freedv-gui:
# * Convert the audio into IQ data via zero-padding.
# * Pass the IQ data into the RADAE decoder
# * Send the resulting 16 kHz audio back to freedv-gui.
# * Pass the IQ data into the RADAE encoder
# * Send the resulting 8 kHz audio back to freedv-gui.
export PATH=$RADAE_VENV/bin:$PATH
$RADAE_PATH/inference.sh $RADAE_PATH/model19_check3/checkpoints/checkpoint_epoch_100.pth /dev/stdin /dev/null --end_of_over --auxdata --EbNodB 100 --bottleneck 3 --pilots --cp 0.004 --rate_Fs --write_rx /dev/stdout | python3 $RADAE_PATH/f32toint16.py --real --scale 16383
$RADAE_PATH/build/src/lpcnet_demo -features /dev/stdin /dev/stdout | $RADAE_VENV/bin/python3 $RADAE_PATH/radae_tx.py $RADAE_PATH/model19_check3/checkpoints/checkpoint_epoch_100.pth --auxdata | python3 $RADAE_PATH/f32toint16.py --real --scale 16383

0 comments on commit dafa7af

Please sign in to comment.