AllStarLink3 TTS and audio files: Difference between revisions

From WLPS Wiki
Jump to navigation Jump to search
(Created page with " Audio files need to be in: /var/lib/asterisk/sounds Next create a script like this replacing 1111 with your node number. Note there is no file extension. <pre> #! /bin/bash /usr/sbin/asterisk -rx "rpt localplay 1111 myaudiofile" </pre> /usr/sbin/asterisk -rx "rpt localplay 64980 /var/lib/asterisk/sounds/you-sound-cute"")
 
mNo edit summary
Line 12: Line 12:
</pre>
</pre>


Now add it to crontab


  /usr/sbin/asterisk -rx "rpt localplay 64980 /var/lib/asterisk/sounds/you-sound-cute"
  sudo nano /etc/crontab
 
Add the lines as you need at the end of the file.
 
*/1    *      *      *      *      root    /home/repeater/asterisk/audiotest.sh > /dev/null 2>&1
 
 
Reload Crontab
 
sudo service cron reload
 
 
 
Test
 
sudo /usr/sbin/asterisk -rx "rpt localplay 64980 /var/lib/asterisk/sounds/you-seem-impatient"

Revision as of 00:38, 30 April 2025


Audio files need to be in:

/var/lib/asterisk/sounds

Next create a script like this replacing 1111 with your node number. Note there is no file extension.

#! /bin/bash
/usr/sbin/asterisk -rx "rpt localplay 1111 myaudiofile"

Now add it to crontab

sudo nano /etc/crontab

Add the lines as you need at the end of the file.

*/1     *       *       *       *       root    /home/repeater/asterisk/audiotest.sh > /dev/null 2>&1


Reload Crontab

sudo service cron reload


Test

sudo /usr/sbin/asterisk -rx "rpt localplay 64980 /var/lib/asterisk/sounds/you-seem-impatient"