Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Sample rate and recordFile


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
andy at fabulous4.co.uk
Guest





PostPosted: Fri Jun 12, 2009 9:39 am    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

Hi, Sorry but I just can't find this in the documentation. I'm using recordFile to record incoming messages. I'd like the audio files produced to be 11025Hz rather than 8kHz is this possible? What setting do I need to change? Many thanks Andy
Back to top
brian at freeswitch.org
Guest





PostPosted: Fri Jun 12, 2009 9:52 am    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

No its not possible yet. Voicemail has an option to record in 11025 but not arbitrary rates for recording otherwise.

/b

On Jun 12, 2009, at 9:37 AM, Andy wrote:
Quote:
Hi,

Sorry but I just can't find this in the documentation. I'm using recordFile to record incoming messages. I'd like the audio files produced to be 11025Hz rather than 8kHz is this possible? What setting do I need to change?

Many thanks
Andy


________


Brian West
brian@freeswitch.org (brian@freeswitch.org)



-- Meet us at ClueCon! http://www.cluecon.com
Back to top
anthony.minessale at g...
Guest





PostPosted: Fri Jun 12, 2009 11:04 am    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

Looked easy enough so i added
record_sample_rate variable that should influence it for you if you set it in advance.
 


On Fri, Jun 12, 2009 at 9:49 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
No its not possible yet.  Voicemail has an option to record in 11025 but not arbitrary rates for recording otherwise.

/b


On Jun 12, 2009, at 9:37 AM, Andy wrote:



Quote:

Hi,
 
Sorry but I just can't find this in the documentation. I'm using recordFile to record incoming messages. I'd like the audio files produced to be 11025Hz rather than 8kHz is this possible? What setting do I need to change?
 
Many thanks
Andy




________


Brian West
brian@freeswitch.org (brian@freeswitch.org)



-- Meet us at ClueCon!  http://www.cluecon.com











_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
andy at fabulous4.co.uk
Guest





PostPosted: Fri Jun 12, 2009 11:28 am    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

Excellent, thanks Anthony, I'll give it a go. From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony MinessaleSent: 12 June 2009 17:03To: freeswitch-users@lists.freeswitch.orgSubject: Re: [Freeswitch-users] Sample rate and recordFile Looked easy enough so i added record_sample_rate variable that should influence it for you if you set it in advance. On Fri, Jun 12, 2009 at 9:49 AM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote: No its not possible yet. Voicemail has an option to record in 11025 but not arbitrary rates for recording otherwise. /b On Jun 12, 2009, at 9:37 AM, Andy wrote: Hi, Sorry but I just can't find this in the documentation. I'm using recordFile to record incoming messages. I'd like the audio files produced to be 11025Hz rather than 8kHz is this possible? What setting do I need to change? Many thanks Andy________ Brian West brian@freeswitch.org (brian@freeswitch.org) -- Meet us at ClueCon! Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])IRC: sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])pstn:213-799-1400
Back to top
msc at freeswitch.org
Guest





PostPosted: Fri Jun 12, 2009 12:54 pm    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

On Fri, Jun 12, 2009 at 9:26 AM, Andy <andy@fabulous4.co.uk (andy@fabulous4.co.uk)> wrote:
Quote:
Excellent, thanks Anthony, I'll give it a go.






Andy, can you report back on your success with this variable? Also, we would appreciate it if you could add an entry to the wiki on the channel_variables page. Let me know if you have any questions and I'll be glad to help.

-MC
Back to top
andy at fabulous4.co.uk
Guest





PostPosted: Thu Jun 18, 2009 11:59 am    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

Hi All, I've tested this new variable and everything works grand. I've tested recording to wav,mp3 and shoutcast and in all cases the sample rate is set correctly. I was about to post an entry on the wiki but I discovered a very similar variable already there called record_rate. I've tested this and it doesn't appear to work. Would you like me to replace this entry with details of the new one that does seem to work? A few more questions: 1) I notice that when I change the sample rate it automatically changes the bit rate too. I understand why this is the case but wondered if it was just as easy to be able to control the bitrate as well as the sample rate. 2) When I use a sample rate other than 8000 I get a warning 'Sample rate doesn't match'. I guess this puts some extra load on the server. If all my calls are being recorded and all at 11025 can/should I alter the sample rate of the base call to 11025? Many thanks for sorting this one for me and for all your help. regards Andy From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Michael CollinsSent: 12 June 2009 18:52To: freeswitch-users@lists.freeswitch.orgSubject: Re: [Freeswitch-users] Sample rate and recordFile On Fri, Jun 12, 2009 at 9:26 AM, Andy <andy@fabulous4.co.uk (andy@fabulous4.co.uk)> wrote: Excellent, thanks Anthony, I'll give it a go. Andy, can you report back on your success with this variable? Also, we would appreciate it if you could add an entry to the wiki on the channel_variables page. Let me know if you have any questions and I'll be glad to help.-MC
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Jun 18, 2009 12:18 pm    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

On Jun 18, 2009, at 11:54 AM, Andy wrote:
Quote:
1) I notice that when I change the sample rate it automatically changes the bit rate too. I understand why this is the case but wondered if it was just as easy to be able to control the bitrate as well as the sample rate.


If you're talking about mod_shout, NO. You'll end up picking an invalid bitrate and asking why it doesn't work... been there done that... I changed it a few months back to pick the optimal bitrate for the sample rate.

Quote:
2) When I use a sample rate other than 8000 I get a warning 'Sample rate doesn't match'. I guess this puts some extra load on the server. If all my calls are being recorded and all at 11025 can/should I alter the sample rate of the base call to 11025?


NO. Your phone call is running at 8kHz, Your sound file is 11025 and they don't match, If you were to play this file into an 8k channel without a resample it would sound a little like satan. or a dragging tape deck. The file has to be resampled to match the current session rate.


/b
Back to top
mrene_lists at avgs.ca
Guest





PostPosted: Thu Jun 18, 2009 1:09 pm    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

Most calls are at 8kHz. The formula for bandwidth is sampling rate * bit rate * channels, so 8000 * 8 * 1 = 64000 = 64kbps (per way).

Math

On 18-Jun-09, at 1:01 PM, Andy wrote:
Quote:
Thanks Brian,

So, just to calrify will the base call always be 8kHz?

On a related note, do you happen to know the bitrate of each open channel/live call? Is it 16 kilobits per second like the recorded audio? I need to do some calculations on the badwidth required to handle a certain number of concurrent calls.

Many thanks
Andy

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of Brian West
Sent: 18 June 2009 18:11
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] Sample rate and recordFile




On Jun 18, 2009, at 11:54 AM, Andy wrote:
Quote:
1) I notice that when I change the sample rate it automatically changes the bit rate too. I understand why this is the case but wondered if it was just as easy to be able to control the bitrate as well as the sample rate.


If you're talking about mod_shout, NO. You'll end up picking an invalid bitrate and asking why it doesn't work... been there done that... I changed it a few months back to pick the optimal bitrate for the sample rate.

Quote:
2) When I use a sample rate other than 8000 I get a warning 'Sample rate doesn't match'. I guess this puts some extra load on the server. If all my calls are being recorded and all at 11025 can/should I alter the sample rate of the base call to 11025?


NO. Your phone call is running at 8kHz, Your sound file is 11025 and they don't match, If you were to play this file into an 8k channel without a resample it would sound a little like satan. or a dragging tape deck. The file has to be resampled to match the current session rate.


/b



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Jun 18, 2009 1:09 pm    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

The call rates we support are 8, 16,32 and 48k

/b

On Jun 18, 2009, at 1:01 PM, Andy wrote:
Quote:
Thanks Brian,

So, just to calrify will the base call always be 8kHz?

On a related note, do you happen to know the bitrate of each open channel/live call? Is it 16 kilobits per second like the recorded audio? I need to do some calculations on the badwidth required to handle a certain number of concurrent calls.

Many thanks
Andy
Back to top
brian at freeswitch.org
Guest





PostPosted: Thu Jun 18, 2009 1:09 pm    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

look in mod_shout you'll see my calculations.. I think it has to be multiples of 16 if I recall.

/b

On Jun 18, 2009, at 1:01 PM, Andy wrote:
Quote:

On a related note, do you happen to know the bitrate of each open channel/live call? Is it 16 kilobits per second like the recorded audio? I need to do some calculations on the badwidth required to handle a certain number of concurrent calls.

Back to top
andy at fabulous4.co.uk
Guest





PostPosted: Thu Jun 18, 2009 1:16 pm    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

Thanks Brian, So, just to calrify will the base call always be 8kHz? On a related note, do you happen to know the bitrate of each open channel/live call? Is it 16 kilobits per second like the recorded audio? I need to do some calculations on the badwidth required to handle a certain number of concurrent calls. Many thanks Andy From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Brian WestSent: 18 June 2009 18:11To: freeswitch-users@lists.freeswitch.orgSubject: Re: [Freeswitch-users] Sample rate and recordFile On Jun 18, 2009, at 11:54 AM, Andy wrote: 1) I notice that when I change the sample rate it automatically changes the bit rate too. I understand why this is the case but wondered if it was just as easy to be able to control the bitrate as well as the sample rate. If you're talking about mod_shout, NO. You'll end up picking an invalid bitrate and asking why it doesn't work... been there done that... I changed it a few months back to pick the optimal bitrate for the sample rate. 2) When I use a sample rate other than 8000 I get a warning 'Sample rate doesn't match'. I guess this puts some extra load on the server. If all my calls are being recorded and all at 11025 can/should I alter the sample rate of the base call to 11025? NO. Your phone call is running at 8kHz, Your sound file is 11025 and they don't match, If you were to play this file into an 8k channel without a resample it would sound a little like satan. or a dragging tape deck. The file has to be resampled to match the current session rate. /b
Back to top
dave at 3c.co.uk
Guest





PostPosted: Thu Jun 18, 2009 1:18 pm    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

- plus UDP/RTP overhead. Budget 10 calls/megabit for G.711 and you'll
have a bit of headroom available.

--Dave

Quote:
Most calls are at 8kHz. The formula for bandwidth is sampling rate *
bit rate * channels, so 8000 * 8 * 1 = 64000 = 64kbps (per way).


Math

On 18-Jun-09, at 1:01 PM, Andy wrote:

Quote:
Thanks Brian,

So, just to calrify will the base call always be 8kHz?

On a related note, do you happen to know the bitrate of each open
channel/live call? Is it 16 kilobits per second like the recorded
audio? I need to do some calculations on the badwidth required to
handle a certain number of concurrent calls.

Many thanks
Andy


____________________________________________________________________
From: freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of
Brian West
Sent: 18 June 2009 18:11
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Sample rate and recordFile




On Jun 18, 2009, at 11:54 AM, Andy wrote:

Quote:
1) I notice that when I change the sample rate it automatically
changes the bit rate too. I understand why this is the case but
wondered if it was just as easy to be able to control the bitrate
as well as the sample rate.


If you're talking about mod_shout, NO. You'll end up picking an
invalid bitrate and asking why it doesn't work... been there done
that... I changed it a few months back to pick the optimal bitrate
for the sample rate.

Quote:
2) When I use a sample rate other than 8000 I get a warning
'Sample rate doesn't match'. I guess this puts some extra load on
the server. If all my calls are being recorded and all at 11025
can/should I alter the sample rate of the base call to 11025?

NO. Your phone call is running at 8kHz, Your sound file is 11025
and they don't match, If you were to play this file into an 8k
channel without a resample it would sound a little like satan. or a
dragging tape deck. The file has to be resampled to match the
current session rate.


/b


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
--
David Knell, Director, 3C Limited
T: +44 20 3298 2000
E: dave@3c.co.uk
W: http://www.3c.co.uk


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
anthony.minessale at g...
Guest





PostPosted: Thu Jun 18, 2009 1:31 pm    Post subject: [Freeswitch-users] Sample rate and recordFile Reply with quote

or go over the limit and you'll have Max Headroom =D


On Thu, Jun 18, 2009 at 1:16 PM, David Knell <dave@3c.co.uk (dave@3c.co.uk)> wrote:
Quote:
- plus UDP/RTP overhead.  Budget 10 calls/megabit for G.711 and you'll
have a bit of headroom available.

--Dave


Quote:
Most calls are at 8kHz. The formula for bandwidth is sampling rate *
bit rate * channels, so 8000 * 8 * 1 = 64000 = 64kbps (per way).


Math

On 18-Jun-09, at 1:01 PM, Andy wrote:

Quote:
Thanks Brian,

So, just to calrify will the base call always be 8kHz?

On a related note, do you happen to know the bitrate of each open
channel/live call? Is it 16 kilobits per second like the recorded
audio? I need to do some calculations on the badwidth required to
handle a certain number of concurrent calls.

Many thanks
Andy


____________________________________________________________________
From: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)
[mailto:freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org)] On Behalf Of
Brian West
Sent: 18 June 2009 18:11
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] Sample rate and recordFile




On Jun 18, 2009, at 11:54 AM, Andy wrote:

Quote:
1) I notice that when I change the sample rate it automatically
changes the bit rate too. I understand why this is the case but
wondered if it was just as easy to be able to control the bitrate
as well as the sample rate.


If you're talking about mod_shout, NO.  You'll end up picking an
invalid bitrate and asking why it doesn't work... been there done
that... I changed it a few months back to pick the optimal bitrate
for the sample rate.

Quote:
2) When I use a sample rate other than 8000 I get a warning
'Sample rate doesn't match'. I guess this puts some extra load on
the server. If all my calls are being recorded and all at 11025
can/should I alter the sample rate of the base call to 11025?

NO.  Your phone call is running at 8kHz, Your sound file is 11025
and they don't match, If you were to play this file into an 8k
channel without a resample it would sound a little like satan.  or a
dragging tape deck.  The file has to be resampled to match the
current session rate.


/b


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org


--
David Knell, Director, 3C Limited
T: +44 20 3298 2000
E: dave@3c.co.uk (dave@3c.co.uk)
W: http://www.3c.co.uk



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services