Audio

From Tučňák Wiki
Jump to navigation Jump to search
Audio options

Tucnak can play your voice CQ messages (see SSB CQ) and record the band traffic. This dialog sets the sound system and the recording.

Common options

Audio subsystem - Alsa (only on Linux), PortAudio and Hamlib. The dialog offers only the systems which are compiled into your Tucnak. OSS and the SSB daemon are not supported any more.

  • Alsa - sound cards on Linux, see Alsa options below.
  • PortAudio - sound cards through the PortAudio library, see PortAudio options below.
  • Hamlib - Tucnak does not play a file. It starts the voice memory of the radio (CQ number n starts the memory n+1). The radio must support it.

Record traffic switches on/off recording of the band activity on receiving. If this option is not active then all the next options for recording are irrelevant. To prevent consuming of all free space, use the options Max. record duration and Minimal disk free space.

Max. record duration is in minutes. When you do nothing in the input line for so long, the recording stops. 0 means no limit.

Minimal disk free space is in MiB. If the free space on the disk is lower, Tucnak does not record and writes a message to the log.

Record format describes the coding of the output file. The files are WAV files. Supported options are:

  • PCM 8 and 16 bits
  • Logarithmic PCM u-law and A-law
  • IMA and MS adaptation PCM
  • GSM version 6.10 (preferred for me)

PCM coding is suitable for conversion to other formats (MP3, Ogg). GSM coding has low size. One minute of recording has about 130 kB of disk space. That is less than 200 MB for 24 hours. This coding does not have to be supported by your favourite player! A GSM file can be played for example by mplayer (with codec) or by sndfile-play distributed with libsndfile.

Channels sets the number of sound channels (1 to 8). Set it to 1 (mono). You can set 2 or more if your sound card can do it.

Sample rate sets the number of samples per second (4000 to 192000). `CD' quality has the value 44100. This value is needless for radio activity. It is recommended to lower it to half (22050) or quarter (11025), because some programs or sound cards cannot work with other values.

Period time [ms] is the maximal amount of time for holding samples in the card buffer for capture. Reasonable values are in hundreds (tenths of a second). The default is 50.

Playback volume (only with Alsa) sets the playback volume for the SSB CQ. Enter -1 to disable this feature. Common valid volumes are 0 to 100 but they can be different if you use some special hardware.

Capture volume (only with Alsa) the same for the traffic recording.

Template for recorded filename is the template for naming the recording files. You can find the description of the possible macros in the section CQ macros.

Alsa options

Alsa playback device and Alsa capture device hold Alsa devices, plugs etc. Valid values are for example:

  • default - default device in your configuration
  • hw0,0 - first card, first PCM (first DAC)
  • hw0,1 - first card, second PCM (second DAC, f.e. Ensonic ES1371)
  • hw1,0 - second card ...
  • plughw0,0 - see Alsa documentation
  • dmix
  • pulse - recent versions of non-Debian Linux use the "PulseAudio" sound system. Tested by G1OGY (playback only) on Ubuntu 10.04 LTS and 11.10.

Tip: run tucnak -i from a terminal to see all detected Alsa sound cards.

Alsa mixer device f.e. hw0, hw1, ...

Capture source button shows a submenu for the capture. In the menu are all detected sources on the specified sound card.

PortAudio options

Portaudio playback device and Portaudio capture device are buttons. Each shows the list of the devices which PortAudio found (number and name). Choose the device from the list.

Instead of a sound card you can choose one of two audio sources for the recording from the radio program over TCI: TCI RX audio and TCI line out (ExpertSDR3, see TCI). They are only for the recording, the sound card stays for the playback. TCI allows only the sample rates 8, 12, 24 and 48 kHz and at most 2 channels, Tucnak changes the values itself.

Problems

Tucnak can not detect record device

Modern sound cards have shared connectors and can detect the device plugged into. Connect the microphone and if a question is shown, answer Microphone.

If you want to record the contest traffic from the radio, check that the plugging is detected when plugged. If not, try to do some hardware fix - maybe a resistor about 10kΩ between signal and ground can be the solution (untested).

Under Windows, right-click over the speaker icon in the system tray (next to the clock) and open the sound settings (recording devices). Show and enable all the disconnected and disabled input devices.

Tucnak does not record band traffic

    1. Is Record traffic on?
    2. Is Max. record duration set to a high enough value?
    3. Is Minimal disk free space set to higher than the actual free space?
    4. Is the contest older than two days? If it is, Tucnak thinks you are only viewing an old contest and it does not record.
    5. Look at the Log window. Tucnak writes there why it does not record.