mirror of
https://github.com/ok2cqr/cqrlog.git
synced 2024-09-21 02:17:19 +00:00
new voice_keyer.sh using cwdaemon for ptt & correct names in PrepareVoice_keyerDir
This commit is contained in:
parent
1a4b64f837
commit
19bfb88a28
@ -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
BIN
voice_keyer/F10.mp3
Normal file
Binary file not shown.
9
voice_keyer/README
Normal file
9
voice_keyer/README
Normal 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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user