Creating Voice IDs for your Allstar Node
Its best to make sure your node is set to use the “voice id” option not the “CW ID” before starting this process.
The node-config.sh file can be used to select the voice id option (cw id or voice id) if not already selected.
Its located in the /usr/local/sbin directory.
Be careful not to change any other settings while you are in the node-config.sh
Connect a keyboard and monitor to your node or simply SSH into your node and type the following, (oneline at a time) pressing enter after each line is entered:
pacman -U –force hamvoip-tts-scripts-0.2-6.pkg.tar.xz
If you typed everything correctly, you will then be prompted to proceed with installation.
Once the package is installed, go to voicerss.org from your local browser and follow the steps to obtain a free API code.
Once you have your API code you need to insert it into the tts.conf file.
You can do this by typing:
When you have reached the etc directory type:
This should allow you to edit the tts.conf file.
Scroll down until you see the line that reads:
Using no spaces after the “key=” type in your new API code.
After checking that you entered you API Code properly, press “Ctrl X” and answer “Y“
then press the enter key to complete the save process.
Its time to build your ID text file.
To make pointing your new id much easier later, lets create your new voice ID file in the same location that the current voice id file is located in.
You can do this by typing:
cd /etc/asterisk/local (press enter)
This will open a new file and now you’re ready to create your new text to voice speech ID.
Here is an example of the text file that I created:
AllstarNode, 44 one 98, W E 2 D, Atlantic City
Now type your text.
When your happy with your the text you have entered in:
Save it by entering:
“Ctrl X” and answer “Y” then press the enter key to complete the save process.
Now you must use the tts_audio.sh command to convert your text file to a usable voice file.
You do this by typing:
tts_audio.sh -v 4 /etc/asterisk/local/myid.txt
The system will pause and then return to a prompt once again.
if all went well, you have just created a file called myid.ul that resides in the same directory as your myid text file.
Time to test it.
You can test the voice file by typing:
This should take you to CLI prompt.
(for this test, you will need to monitor your local node’s frequency to hear your newly created ID).
At the CLI prompt type:
rpt localplay (your node #) /etc/asterisk/local/myid (press enter)
Voila, you should have heard your new ID on your node via RF.
If you wish to make changes to your ID, simple repeat steps 4 and 5.
Let’s now replace your old voice ID with your newly created voice ID,to do this you need to edit the rpt.conf file by typing:
cd /etc/asterisk (press enter)
nano rpt.conf ( press enter)
Scrolldown to the line that reads: idrecording=/etc/asterisk/local/node-id
Replace the words node-id at the end of that line with the word myid
It should look like this:
thensave the file by using:
“Ctrl X” and answer “Y” then press enter to complete the save process.
Reboot your node and your new voice ID will be the new default ID.
*Note: If you wish to go back to your default voice ID, simply repeat step 6 and change the word myid back to node-id and save it.