[arm-allstar] v1.5 and voice ID

Doug Crompton wa3dsp at gmail.com
Thu Feb 2 21:16:26 EST 2017


chris,  you left out the most important part!

#! /bin/bash
cat   /var/lib/asterisk/sounds/letters/w.gsm
/var/lib/asterisk/sounds/letters/s.gsm
/var/lib/asterisk/sounds/digits/5.gsm
/var/lib/asterisk/sounds/letters/b.gsm
/var/lib/asterisk/sounds/repeater.gsm
* >   /etc/asterisk/local/node-id.gsm *

The part in bold at the end. Also note this is ALL one line not multiple
lines as shown above. It is one command. Without the last line shown above
like you said all you would get is the binary output of those file send to
the screen which will do some strange things. The way cat works is like
this -

*cat some-file*           - write the file to the screen
*cat some-file some-other-file*    - write both files in order to the screen
*cat some-file > another-file*   - essentially copy the file
*cat some-file some-other-file > another-file *  - copy in order all the
files in the list to another file - this is what combine.sh is doing.


*73 Doug*

*WA3DSP*

*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*

On Thu, Feb 2, 2017 at 6:16 PM, "Chris Viningre via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> Iḿ sure Iḿ doing something wrong.
>
> #! /bin/bash
>
> cat   /var/lib/asterisk/sounds/letters/w.gsm
> /var/lib/asterisk/sounds/letters/s.gsm
> /var/lib/asterisk/sounds/digits/5.gsm
> /var/lib/asterisk/sounds/letters/b.gsm
> /var/lib/asterisk/sounds/repeater.gsm
>
> # Combines Allison voice fragments to create a combined voice file.
> # Look in the /var/lib/asterisk/sounds directory for filenames
> # All mixed voice files must be of the same type - .ulaw, .gsm etc.
> # and the output file must be of the same type. If you need
> # to change file type use sox -
> # Ex -  sox -t ul -r 8000 <input file>.ulaw <output file>.gsm
> #
> # Change the combined text above to your choice
> # Change the output directory and filename to suit your needs.
> #
> # Make this script executable and run it to create combined audio file
> #
> # WA3DSP 11/2013
> Chris Viningre
> 70 W. Roadrunner
> Salt Flat, Texas 79847
> C:(915) 504-1510
> chrisviningre at gmail.com
> Amateur Radio Operator: WS5B
> https://www.qrz.com/db/ws5b
> http://www.reverbnation.com/chrisviningre
>
>
>


More information about the arm-allstar mailing list