File: play_vk

package info (click to toggle)
tlf 1.4.1-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,036 kB
  • sloc: ansic: 26,363; sh: 4,339; makefile: 132; perl: 92
file content (31 lines) | stat: -rwxr-xr-x 1,072 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh

# Part of the TLF contest logging program for amateur radio operators
# by Rein Coperous PA0R and Thomas Beierlein DL1JBE 2011.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# These script is responsible for playing voice key message files 
# on the command of the TLF main program.
# It gets called as 'play_vk filename' and plays the content of 
# the audio file 'filename' on the default sound device.
#
# You can adapt it to your convenience to 
# - mute or unmute your microphone
# - play different file formats or
# - use another output device
#
# An executable copy of 'play_vk' in your contest directory (containing the
# logcfg.dat file) can be adapted and has precedence over the standard install

# mute mic
#amixer -c 0 set Mic mute -q

# play file on the default sound device
play $1 -q 2>/dev/null

#unmute mic
#amixer -c 0 set Mic unmute -q