new voice_keyer.sh using cwdaemon for ptt & correct names in PrepareVoice_keyerDir

This commit is contained in:
darekper 2013-04-03 19:46:50 +02:00
parent 1a4b64f837
commit 19bfb88a28
4 changed files with 14 additions and 4 deletions

View File

@ -948,8 +948,8 @@ var
begin
s := ExpandFileNameUTF8('..'+PathDelim+'share'+PathDelim+'cqrlog'+PathDelim+'voice_keyer'+PathDelim);
d := fHomeDir+'voice_keyer'+PathDelim;
if not FileExistsUTF8(d+'voicekeyer.sh') then
CopyFile(s+'voice_keyer.sh',d+'voice_keye.sh')
if not FileExistsUTF8(d+'voice_keyer.sh') then
CopyFile(s+'voice_keyer.sh',d+'voice_keyer.sh')
end;
procedure TdmData.PrepareBandMapDB;

BIN
voice_keyer/F10.mp3 Normal file

Binary file not shown.

9
voice_keyer/README Normal file
View File

@ -0,0 +1,9 @@
voice_keyer.sh requres mpg123 for plaing messages.
You can install it using:
$ sudo apt-get install mpg123
The voice_keyer plays mp3 files which names are F1.mp3 - F10.mp3
The example file F10.mp3 is the 5s long 1khz tone for test and volume adjustment.

View File

@ -1,7 +1,8 @@
#!/bin/bash
if ! ps aux | grep -q '[m]pg123'
then
rs232 -d /dev/ttyS0 --dtr --rts
echo -e '\033a1' | nc -q 1 -u localhost 6789 &
sleep 0.3s
mpg123 ~/.config/cqrlog/voice_keyer/$1.mp3
rs232 -d /dev/ttyS0 --dtr
echo -e '\033a0' | nc -q 1 -u localhost 6789 &
fi