开云体育

Transmitting 100hz tone with dire for voice alert.


 

Working on a project and I have looked though the documentation as well as searched this group and have not come up with anything. When Direwolf uses speech for a beacon does it / can it transmit a 100 hz tone along with the speech for voice alerting radios? Or would I need to have another program output the tone when it is speaking?

Thanks in advance!
Jon
KB3OSP


 

开云体育

Hi Jon

I have never looked at speech output, but looking through the manual I see that espeak is called via a shell/bat script. It would seem to be easy to output the espeak to a wav file, merge another wav with it containing the 100Hz tone (using, say sox), then play the wav file out to the radio. I assume the PTT comes from Direwolf itself.

Cheers Bob VK2YQA

On 7/9/24 07:55, kb3osp@... wrote:

Working on a project and I have looked though the documentation as well as searched this group and have not come up with anything. When Direwolf uses speech for a beacon does it / can it transmit a 100 hz tone along with the speech for voice alerting radios? Or would I need to have another program output the tone when it is speaking?

Thanks in advance!
Jon
KB3OSP


 

Why not just use the PL tone of the radio?

On 9/7/2024 1:40 AM, Bob Cameron wrote:
containing the 100Hz tone
--
Charles J. Hargrove - N2NOV
NYC-ARECS/RACES Citywide Radio Officer/Skywarn Coord.

NYC-ARECS/RACES Nets 441.100/136.5 PL
ARnewsline Broadcast Mon. @ 8:00PM
NYC-ARECS Weekly Net Mon. @ 8:30PM


NY-NBEMS Net Saturdays @ 10AM & USeast-NBEMS Net Wednesdays @ 7PM
on 7.036 Mhz USB (alt 3.536)/1500 hz waterfall spot; MFSK-16 or 32

"Information is the oxygen of the modern age. It seeps through the walls topped
by barbed wire, it wafts across the electrified borders." - Ronald Reagan

"The more corrupt the state, the more it legislates." - Tacitus

"Molann an obair an fear" - Irish Saying
(The work praises the man.)

"No matter how big and powerful government gets, and the many services it
provides, it can never take the place of volunteers." - Ronald Reagan


 

PL from the radio is what I also use.? I believe this is the way it was intended to be implemented.
Arnold, KQ6DI

On 09/07/2024 3:45 AM PDT Charles J. Hargrove <n2nov@...> wrote:
?
?
Why not just use the PL tone of the radio?
?
On 9/7/2024 1:40 AM, Bob Cameron wrote:
containing the 100Hz tone
?
--
Charles J. Hargrove - N2NOV
NYC-ARECS/RACES Citywide Radio Officer/Skywarn Coord.
?
?


 

The idea behind Voice Alert is to only transmit PL when transmitting voice. No PL when transmitting data. Transmitting PL all the time (by using PL on the radio) would defeat the point of Voice Alert and annoy listeners using Voice Alert to filter out the data transmissions.
?
The following command will synthesize a 100Hz tone:
?
ffplay -hide_banner -nodisp -autoexit -f lavfi -i 'sine=f=100'

There is likely a way to use ffmpeg/ffplay to mix this synthesized tone with the output of espeak but I haven't been able to figure it out.
?


 

Correct as dire is the digipeater having the radio with PL tone set will be pointless as it doesn't have a operator at the face of the radio with mic in hand. I want to do voice now and then for certain things and be able to use this feature in many mobile radios without hearing all the traffic though the digi. Voice alert setting in a radio like my mobile radio a Kenwood 710G will only "open" up the speaker when it hears the 100hz tone. Otherwise the radio is silent but still gets all the packet traffic but allows for you to know if another mobile or station is running voice alert by hearing the packet and you will be able to call them on the 144.39 to QSY to another frequency. Just didn't know if dire had this capability or not. I guess I will have to add something to a script or the program in development.

Jon
KB3OSP


 

From the Kenwood TH-D74 manual in the APRS sections
?
?
?
VOICE ALERT
?
?
This function will notify another station as to whether or not they are within communications range by emitting beacon tones.When a Mobile Station is mobile with the Voice Alert function turned ON, other stations also with Voice Alert turned ON will hear the beacon sound of the Mobile Station if they have matching tone (CTCSS) frequencies and are within range, thus informing the stations that communications is possible.
In other words, having CTCSS on and another station sending 100 Hz on APRS, you will hear APRS, and if you both tune to the same frequency, you are withing Simplex range.? It's an odd function, but it's there.
Digipeaters should not send Pl.
?
Arnold, KQ6DI

On 09/07/2024 10:45 AM PDT kb3osp@... wrote:
?
?
Correct as dire is the digipeater having the radio with PL tone set will be pointless as it doesn't have a operator at the face of the radio with mic in hand. I want to do voice now and then for certain things and be able to use this feature in many mobile radios without hearing all the traffic though the digi. Voice alert setting in a radio like my mobile radio a Kenwood 710G will only "open" up the speaker when it hears the 100hz tone. Otherwise the radio is silent but still gets all the packet traffic but allows for you to know if another mobile or station is running voice alert by hearing the packet and you will be able to call them on the 144.39 to QSY to another frequency. Just didn't know if dire had this capability or not. I guess I will have to add something to a script or the program in development.

Jon
KB3OSP


 

开云体育

Maybe if you running a shared app sound device control (eg pulseaudio), just add the command to background before the espeak line;

dwespeak.sh for use with Linux:
#!/bin/bash
chan=$1
msg=$2
sleep 1
ffplay -hide_banner -nodisp -autoexit -f lavfi -i 'sine=f=100' &
espeak -v en-sc "$msg"
killall -TERM ffplay

(There are better ways to kill the process!)

Or use a playing pgm that allows a time in seconds to not exceed the longest message.

Espeak can also output to a wav file, that can be used as a mix in source later in the script etc. Also look at the amix filter for ffmpeg and possibly use stdout from espeak instead of a wav. Lots of options.

Cheers Bob VK2YQA

On 8/9/24 00:52, KC5L via groups.io wrote:

The idea behind Voice Alert is to only transmit PL when transmitting voice. No PL when transmitting data. Transmitting PL all the time (by using PL on the radio) would defeat the point of Voice Alert and annoy listeners using Voice Alert to filter out the data transmissions.
?
The following command will synthesize a 100Hz tone:
?
ffplay -hide_banner -nodisp -autoexit -f lavfi -i 'sine=f=100'

There is likely a way to use ffmpeg/ffplay to mix this synthesized tone with the output of espeak but I haven't been able to figure it out.
?


 

开云体育

This is not directed at any particular operator!

There seems to be differences of opinion on the intended purpose/application of Voice Alert. This page may clarify the function ...

Ray vk2tv

On 8/9/24 00:52, KC5L via groups.io wrote:

The idea behind Voice Alert is to only transmit PL when transmitting voice. No PL when transmitting data. Transmitting PL all the time (by using PL on the radio) would defeat the point of Voice Alert and annoy listeners using Voice Alert to filter out the data transmissions.
?
The following command will synthesize a 100Hz tone:
?
ffplay -hide_banner -nodisp -autoexit -f lavfi -i 'sine=f=100'

There is likely a way to use ffmpeg/ffplay to mix this synthesized tone with the output of espeak but I haven't been able to figure it out.
?


 

Looking at more of a "on the fly" solution for changing alert messages. Since Dire does speech and the keying I was hoping it would be just already in Dire. The script solution would be a good start to the approach of implementation. Thanks for the input.


 

I understand your intent, but I recommend against it. I was strongly admonished for using a Morse ID on my digipeater.
If APRS users in your area are more tolerant, I suggest using an external tone encoder and some method to enable it during speech output. (I'm a hardware guy, the coding for this project is beyond my skill set).

Patrick (N3TSZ)


On Saturday, September 7, 2024 at 05:45:59 PM EDT, Ray Wells via groups.io <aprs@...> wrote:


This is not directed at any particular operator!

There seems to be differences of opinion on the intended purpose/application of Voice Alert. This page may clarify the function ...

Ray vk2tv

On 8/9/24 00:52, KC5L via groups.io wrote:
The idea behind Voice Alert is to only transmit PL when transmitting voice. No PL when transmitting data. Transmitting PL all the time (by using PL on the radio) would defeat the point of Voice Alert and annoy listeners using Voice Alert to filter out the data transmissions.
?
The following command will synthesize a 100Hz tone:
?
ffplay -hide_banner -nodisp -autoexit -f lavfi -i 'sine=f=100'

There is likely a way to use ffmpeg/ffplay to mix this synthesized tone with the output of espeak but I haven't been able to figure it out.
?