Asterisk/app_rpt will play MP3 files alright, using the add-on, although,
you may need to change the output level.
In format_mp3.c
#define OUTSCALE 32768
Seems to be about right (I think the original was 8192 but YMMV as they say)
I used mp3 for bulletins for a while - I even bought a copy of Adobe
Audition CS5.5 (now there is version 6) so I could make "real" MP3 files.
MP3's made by Audacity sound *really* weird.
MP3 files contain a frequency spectrum that depends on the sampling rate of
the recording. This is a separate rate from the Bit Rate of the MP3
playback. If you reduce the playback bitrate of an MP3 file, you may still
have frequency components up through perhaps 12 or 15 kHz, you just get more
distortion and artifacts. All those frequency components above about 3.6 KHz
will be ignored by Asterisk, which runs its sound system at 8 k-samples/sec.
This may produce some strange effects since you are playing back stuff that
Asterisk can't "hear". The distortion below 3.6 kHz comes through of
course...
To get a file like ARRL Audio News (44 kHz sample rate, in stereo, with an
MP3 bit rate of 192k) to play properly on asterisk, you need some software
that can re-sample the original file down to 8 k sampling rate (and 8k bit
rate). That way the playback spectrum of the MP3 will have components only
up through about 3.4 kHz, which is quite compatible with asterisk. Adobe
Audition 5.5 (and later) can do this.
Audacity will also re-sample (at the "Project Rate"), but it is best used to
make ulaw files, not MP3's; but it's free.
If the original recording was frequency-limited then no re-sampling of the
recording is needed. For example, my NWS weather podcasts are a computer
voice designed for telephone bandwidth, but distributed as MP3's. Those
MP3's played through asterisk sound just like the original played on any MP3
player.
Asterisk/app_rpt will play MP3 files alright, using the add-on, although,
you may need to change the output level.
In format_mp3.c
#define OUTSCALE 32768
Seems to be about right (I think the original was 8192 but YMMV as they say)
I used mp3 for bulletins for a while - I even bought a copy of Adobe
Audition CS5.5 (now there is version 6) so I could make "real" MP3 files.
MP3's made by Audacity sound *really* weird.
MP3 files contain a frequency spectrum that depends on the sampling rate of
the recording. This is a separate rate from the Bit Rate of the MP3
playback. If you reduce the playback bitrate of an MP3 file, you may still
have frequency components up through perhaps 12 or 15 kHz, you just get more
distortion and artifacts. All those frequency components above about 3.6 KHz
will be ignored by Asterisk, which runs its sound system at 8 k-samples/sec.
This may produce some strange effects since you are playing back stuff that
Asterisk can't "hear". The distortion below 3.6 kHz comes through of
course...
To get a file like ARRL Audio News (44 kHz sample rate, in stereo, with an
MP3 bit rate of 192k) to play properly on asterisk, you need some software
that can re-sample the original file down to 8 k sampling rate (and 8k bit
rate). That way the playback spectrum of the MP3 will have components only
up through about 3.4 kHz, which is quite compatible with asterisk. Adobe
Audition 5.5 (and later) can do this.
Audacity will also re-sample (at the "Project Rate"), but it is best used to
make ulaw files, not MP3's; but it's free.
If the original recording was frequency-limited then no re-sampling of the
recording is needed. For example, my NWS weather podcasts are a computer
voice designed for telephone bandwidth, but distributed as MP3's. Those
MP3's played through asterisk sound just like the original played on any MP3
player.
If sox –r does resampling, then it should be fine – I use something similar to stream the ulaw files to my DSTAR machine (the streaming software wants a wav file).
You may find it helpful to adjust the volume using –v
For example, this turns it down a bit
sox –v -0.6 newsline.mp3 -r 8000 temp.wav
Some of the bulletins give you a place to insert a voice ID – and for that you need Audacity, or similar.
So… I’ve been researching several
options, finally downloaded the asterisk-addons, and installed. The mp3
download of the ARRL News plays, however, I’d like to have the idtalkover=|i<call
function as well. I get the Morse Code id at the end of the ARRL News,
but not during at the defined interval. Any ideas?
After more experimenting I find that
during the mp3 play, asterisk will not accept commands. Not sure what I am
missing here, but it looks like the add-on version I’m using may be
incompatible with the current ACID. I’m not sure how to uninstall it. Any
thoughts?
Thanks,
Bob
kk6ecm
···
From: Bob
[mailto:kk6ecm@gmail.com] Sent: Thursday, May 29, 2014 10:13
PM To: ‘app_rpt-users@ohnosec.org’ Subject: Playing mp3 files in
app_rpt
So… I’ve been researching several
options, finally downloaded the asterisk-addons, and installed. The mp3
download of the ARRL News plays, however, I’d like to have the
idtalkover=|i function as well. I get the Morse Code id at the
end of the ARRL News, but not during at the defined interval. Any ideas?
Of course, it depends on how often you've got your ID set to go off.
context = radio
;idrecording = w5omr-repeater ; this plays a file that's
located in /var/lib/asterisk/sounds/
idrecording = |iW5OMR/R ;node Identification. the
lower case i means it's to be CW.
accountcode=RADIO
hangtime=400 ; repeater hang-time. I like 'em short.
;althangtime=4000
totime=540000 ;time out timer in
milliseconds 60000 miliseconds in a minute.
idtime=600000 ;how often node id's in
milliseconds.
;politeid=3000 ; how long allstar waits to id while
there's a carrier present before it ID's anyway.
When you're setting up your script to play Newsline, just add your id
file to the end of the newsline file.
$~> sox newline_file(x) id_file newsline_file_id(x)
(where 'x' denotes which newsline file, since the one long file is
chunked up into several pieces.)
That's -one- way to look at it... I'm sure there are several others.
It's Linux!
-Geoff/W5OMR
···
On 05/30/2014 12:12 AM, Bob wrote:
So... I've been researching several options, finally downloaded the
asterisk-addons, and installed. The mp3 download of the ARRL News
plays, however, I'd like to have the idtalkover=|i<call sign> function
as well. I get the Morse Code id at the end of the ARRL News, but not
during at the defined interval. Any ideas?
The issue I’ve had is the fact The I’d does not play till the end, ignoring the FCC req of 10 minutes. And, being some what of a Linux newby, I’d like to understand your input below,
(where ‘x’ denotes which newsline file, since the one long file is chunked up into several pieces.)"
I’m aware of the partition ID in the ARRL news file, but don’t know how to take advantage of it automatically. Does your command line address this? If so how? For sure, I’m missing something here.
Thanks much,
Bob
kk6ecm
···
On 05/30/2014 12:12 AM, Bob wrote:
So... I’ve been
researching several
options, finally downloaded the asterisk-addons, and
installed. The mp3
download of the ARRL News plays, however, I’d like to
have the idtalkover=|i function as well. I get the Morse Code id at
the end of the ARRL News,
but not during at the defined interval. Any ideas?
Of course, it
depends on how often you’ve got your ID set to go off.
context = radio
;idrecording = w5omr-repeater ; this plays a
file that’s located in /var/lib/asterisk/sounds/
idrecording = |iW5OMR/R ;node
Identification. the lower case i means it’s to be CW.
accountcode=RADIO
hangtime=400 ; repeater hang-time. I like
'em short.
;althangtime=4000
totime=540000 ;time out
timer in milliseconds 60000 miliseconds in a minute.
idtime=600000 ;how often
node id’s in milliseconds.
;politeid=3000 ; how long allstar waits to
id while there’s a carrier present before it ID’s anyway.
When you're setting up your script to play Newsline, just add
your id file to the end of the newsline file.
$~> sox newline_file(x) id_file newsline_file_id(x)
(where 'x' denotes which newsline file, since the one long
file is chunked up into several pieces.)
That's -one- way to look at it... I'm sure there are several
“sox” is the command commonly used to convert the mp3 file to ulaw
format.
There was someone who suggested using mp3split to create several mp3
files from the one long-ass mp3 that’s downloadable from Newsline.
With that thought in mind, when you’re converting all of the files
from mp3 to ulaw, assuming the mp3’s that are broken up are less
than 10 minutes, then at the end of each mp3 converted to ulaw file,
add your local id. It’s yet another option available in ‘sox’.
type ‘man sox’ at a command prompt to get a better idea of how it
works, and what options are available to you.
···
On 06/06/2014 06:16 AM, kk6ecm wrote:
The issue I've had is the fact The I'd does not play till the
end, ignoring the FCC req of 10 minutes. And, being some what of
a Linux newby, I’d like to understand your input below,
I ended up doing as (someone, my foggy brain forgets who now) suggested, and put a local node in just for playing Newsline. Called it node 1500 and set up the extension for it in radio and radio-secure and etc. contexts. Defined it in a rpt.conf specifically for playing news, where there’s no hang time, timeout is disabled, ID is cw only, no tail messages. Call a script to change a symbolic link for rpt.conf to the news one and reload, then start the news after disconnecting Echolink and everyone who isn’t local and connecting the news only node. ID’s play that way, and I don’t have to try to split the file by hand or have it split between words or some such.
···
On 05/30/2014 12:12 AM, Bob wrote:
So… I’ve been researching several options, finally downloaded the asterisk-addons, and installed. The mp3 download of the ARRL News plays, however, I’d like to have the idtalkover=|i function as well. I get the Morse Code id at the end of the ARRL News, but not during at the defined interval. Any ideas?
Of course, it depends on how often you’ve got your ID set to go off.
context = radio
;idrecording = w5omr-repeater ; this plays a file that’s located in /var/lib/asterisk/sounds/
idrecording = |iW5OMR/R ;node Identification. the lower case i means it’s to be CW.
accountcode=RADIO
hangtime=400 ; repeater hang-time. I like 'em short.
;althangtime=4000
totime=540000 ;time out timer in milliseconds 60000 miliseconds in a minute.
idtime=600000 ;how often node id’s in milliseconds.
;politeid=3000 ; how long allstar waits to id while there’s a carrier present before it ID’s anyway.
When you’re setting up your script to play Newsline, just add your id file to the end of the newsline file.
$~> sox newline_file(x) id_file newsline_file_id(x)
(where ‘x’ denotes which newsline file, since the one long file is chunked up into several pieces.)
That’s -one- way to look at it… I’m sure there are several others.
It’s Linux!
Seems the version of sox that ships with Acid doesn’t grok MP3 though. It’s OK. I convert using mpg123, then convert to a lower nitrate using sox. Maybe not as efficient, but it beats hunting down a newer sox and compiling from source.
···
On 06/06/2014 06:16 AM, kk6ecm wrote:
The issue I've had is the fact The I'd does not play till the
end, ignoring the FCC req of 10 minutes. And, being some what of
a Linux newby, I’d like to understand your input below,
What about idtalkover= |iW5OMR/R
can someone explanation how to correctly use this feature, using the same scenario?
···
--------------------------------------------
On Fri, 6/6/14, Geoff <ars.w5omr@gmail.com> wrote:
Subject: Re: [App_rpt-users] Playing mp3 files in app_rpt
To: app_rpt-users@ohnosec.org
Date: Friday, June 6, 2014, 6:55 AM
On 05/30/2014 12:12 AM, Bob wrote:
So...
I’ve been
researching several
options, finally downloaded the
asterisk-addons, and
installed. The mp3
download of the ARRL News plays, however,
I’d like to
have the idtalkover=|i<call
> function as well. I get the Morse
Code id at
the end of the ARRL News,
but not during at the defined interval.
Any ideas?
Of
course, it
depends on how often you've got your ID set to
go off.
context = radio
;idrecording = w5omr-repeater
;
this plays a
file that's located in
/var/lib/asterisk/sounds/
idrecording =
>iW5OMR/R
;node
Identification. the lower case i means it's to
be CW.
accountcode=RADIO
hangtime=400
;
repeater hang-time. I like
'em short.
;althangtime=4000
totime=540000
;time out
timer in milliseconds 60000 miliseconds in a
minute.
idtime=600000
;how often
node id's in milliseconds.
;politeid=3000
; how long allstar waits to
id while there's a carrier present before it
ID's anyway.
When you're setting up your script to play
Newsline, just add
your id file to the end of the newsline file.
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
and scroll down to the bottom of the page. Enter your email
address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via
email confirmation. If you have trouble unsubscribing,
please send a message to the list detailing the problem.
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users
and scroll down to the bottom of the page. Enter your
email
address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it
via
email confirmation. If you have trouble unsubscribing,
please send a message to the list detailing the problem.
From: Buddy Brannan [mailto:buddy@brannan.name] Sent: Friday, June 06, 2014 9:22 AM To: Geoff Cc: app_rpt mailing list Subject: Re: [App_rpt-users] Playing mp3 files in app_rpt
Seems the version of sox that ships with Acid doesn’t grok MP3 though. It’s OK. I convert using mpg123, then convert to a lower nitrate using sox. Maybe not as efficient, but it beats hunting down a newer sox and compiling from source.
The issue I’ve had is the fact The I’d does not play till the end, ignoring the FCC req of 10 minutes. And, being some what of a Linux newby, I’d like to understand your input below,
(where ‘x’ denotes which newsline file, since the one long file is chunked up into several pieces.)"
I’m aware of the partition ID in the ARRL news file, but don’t know how to take advantage of it automatically. Does your command line address this? If so how? For sure, I’m missing something here.
“sox” is the command commonly used to convert the mp3 file to ulaw format.
There was someone who suggested using mp3split to create several mp3 files from the one long-ass mp3 that’s downloadable from Newsline.
With that thought in mind, when you’re converting all of the files from mp3 to ulaw, assuming the mp3’s that are broken up are less than 10 minutes, then at the end of each mp3 converted to ulaw file, add your local id. It’s yet another option available in ‘sox’.
type ‘man sox’ at a command prompt to get a better idea of how it works, and what options are available to you.
To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the “Unsubscribe or edit options button”
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.
The node playing the MP3 will ignore the talk-over ID. The talk-over will work on all the linked nodes - as it does with receiver audio.
If you really want/need a talk-over ID during your playback, make a separate internal node for the playback and link it to your on the air node(s)
73
Ken
···
-----Original Message-----
From: Johnny Keeker [mailto:cypresstower@yahoo.com]
Sent: Friday, June 06, 2014 12:27 PM
To: app_rpt-users@ohnosec.org; Geoff
Subject: Re: [App_rpt-users] Playing mp3 files in app_rpt
What about idtalkover= |iW5OMR/R
can someone explanation how to correctly use this feature, using the same
scenario?