[Freeswitch-users] playback start position
Anonim Stefan
fanx07 at gmail.com
Wed Sep 7 16:12:36 MSD 2016
Thank you Benjamin for clarifying me this. I've tested with local .wav(44k)
and .mp3(48k) and it's working fine for the local files or "file://" or
"file_string://".
However, when I try the same on a "shout://" it's not working. Do you know
if playback start position is implemented for mod_shout also?
Stefan
On Wed, Sep 7, 2016 at 2:21 PM, Benjamin Cropley <benjamin.cropley at gmail.com
> wrote:
> Think you need to correctly perceive what the 'samples' value means.
>
> If the WAV files sample rate is 44kHz (it probably is), then the each
> second = 44000 samples per second (eg. sample rate * 1000)
>
> Therefore, 5 seconds would be 220000 samples.
>
> I think the example in the wiki (@@8000) is based off a G729 file, which
> runs at 8kHz therefore 8000 samples = 1 second.
>
> Cheers
> Ben Cropley
>
>
>
> On Wed, Sep 7, 2016 at 11:51 AM, Anonim Stefan <fanx07 at gmail.com> wrote:
>
>> Hi,
>>
>> I am trying to playback a file from a given position. I am setting this
>> in my extension, however the file always plays from the beginning:
>> "
>> <action application="playback" data="/usr/share/freeswitch/so
>> unds/en/us/callie/voicemail/48000/vm-tutorial_change_pin.wav@@5000"/>
>> "
>> I am using FreeSWITCH Version 1.6.10-17-726448d~64bit.
>> Any idea how to make it work?
>>
>>
>> Also, I am curious if shout cast playback from a given start position is
>> possible; something like this:
>> "
>> <action application="playback" data="shout://www.soundjay.com
>> /human/applause-01.mp3@@2000"/>
>> "
>>
>> Thanks,
>> Stefan
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
>
> --
> All the best,
> Ben Cropley
> 07539 366 905
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160907/a9073a60/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list