<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" face="Tahoma">Ramon,<br><br> There are two ways to play audio files, locally or globally.  Most of the time you would want it to be locally.<br><br>The commands in the client are  rpt localplay  and  rpt playfile<br><br>To play a file locally to your node assuming it was node 1999 you could execute the following<br><br><b>rpt localplay 1999 myfilename</b><br><br>or in Linux -<br><br><b>asterisk -rx "rpt localplay 1999 myfilename"</b><br><br>You do not use the extent when specifying the filename. myfilename.gsm becomes just myfilename<br><br>The file has to be acceptable in samplerate and type to play. You can play or combine any of the sounds found in /var/lib/asterisk/sounds or create your own.<br><br>In the BeagleBone Black image code I give an example of combining to create a node-id file. It is located in the local directory under /etc/asterisk.  Here is an example -<br><br><b>#! /bin/bash<br><br>cat   /var/lib/asterisk/sounds/letters/w.gsm   /var/lib/asterisk/sounds/letters/a.gsm   /var/lib/asterisk/sounds/digits/3.gsm   /var/lib/asterisk/sounds/letters/d.gsm   /var/lib/asterisk/sounds/letters/s.gsm   /var/lib/asterisk/sounds/letters/p.gsm /var/lib/asterisk/sounds/repeater.gsm > /etc/asterisk/local/node-id.gsm</b><br><br>If you execute this script one time it creates node-id.gsm. If you then play that file it will say<br><br><b>WA3DSP repeater</b>  - in the Allison voice.  Any like type sound file can be combined and played.<br><br><b>asterisk -rx "localplay 1999 /etc/asterisk/local/node-id"</b><br><br>The node-id would typically be specified in rpt.conf for the voice ID<br><br><b>idrecording=/etc/asterisk/local/node-id</b><br><br></font><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div><hr id="stopSpelling">Date: Wed, 23 Jul 2014 22:43:56 -0400<br>From: kp4tr.ramon@gmail.com<br>To: doug@crompton.com<br>CC: app_rpt-users@ohnosec.org<br>Subject: Re: [App_rpt-users] additional- app_rpt_script_execution<br><br>
  
    
  
  
    <div class="ecxmoz-cite-prefix">And for my next question...How can I
      play audio and text from the asterisk command line? I would like
      to assemble custom messages using the existing GSM files and add
      my own.<br>
      <br>
      Thanks.<br>
      <br></div><br></div>                                        </div></body>
</html>