SeisComP3 文档

scvoice

实时语音报警

描述

scvoice 运行外部脚本,如 festivalespeak。 可能的三种调用:

  • 事件创建/更新
  • 振幅创建
  • 初动创建

同一时刻,scvoice 在每种调用类型上只能运行一个脚本。

示例

下面脚本用作事件脚本,需要 festival

#!/bin/sh
if [ "$2" = "1" ]; then
echo " $1" | sed 's/,/, ,/g'   | festival --tts;
else
echo "Event updated, $1" | sed 's/,/, ,/g'   | festival --tts;
fi

存入~/.seiscomp3/event.sh并添加至~/.seiscomp3/scvoice.cfg

scripts.event = /home/sysop/.seiscomp3/event.sh

振幅脚本:

#!/bin/sh
# Play a wav file with a particular volume
# derived from the amplitude itself.
playwave ~/.seiscomp3/beep.wav -v $3

存入~/.seiscomp3/amplitude.sh并添加至~/.seiscomp3/scvoice.cfg

scripts.amplitude = /home/sysop/.seiscomp3/amplitude.sh

报警脚本:

#!/bin/sh
playwave /home/sysop/.seiscomp3/siren.wav

存入~/.seiscomp3/alert.sh并添加至~/.seiscomp3/scvoice.cfg

scripts.alert = /home/sysop/.seiscomp3/alert.sh

配置

etc/defaults/global.cfg
etc/defaults/scvoice.cfg
etc/global.cfg
etc/scvoice.cfg
~/.seiscomp3/global.cfg
~/.seiscomp3/scvoice.cfg