Michael Welter
2004-Jun-02 07:22 UTC
[Asterisk-Users] Splicing audio clips into one stream
Is there a Linux tool that will splice several gsm sound clips together into one clip? In my agi script, I would like to use 'get_data' with one clip instead of multiple 'stream_file' so the user doesn't have to listen to the entire spiel before responding. Thanks, -- Michael Welter Introspect Telephony Corp. Denver, Colorado +1 303 674 2575 mike@introspect.com www.introspect.com
Michael Welter wrote:> Is there a Linux tool that will splice several gsm sound clips together > into one clip? > > In my agi script, I would like to use 'get_data' with one clip instead > of multiple 'stream_file' so the user doesn't have to listen to the > entire spiel before responding. > > Thanks, >cat clip1.gsm >> newclip.gsm ; cat clip2.gsm >> newclip.gsm The pipe >> means "append" to the end of the file. John
Steven Critchfield
2004-Jun-02 08:11 UTC
[Asterisk-Users] Splicing audio clips into one stream
On Wed, 2004-06-02 at 09:22, Michael Welter wrote:> Is there a Linux tool that will splice several gsm sound clips together > into one clip? > > In my agi script, I would like to use 'get_data' with one clip instead > of multiple 'stream_file' so the user doesn't have to listen to the > entire spiel before responding.Think for a bit more about how AGI works. basically you will want to stream n number of audio clips, but if any one of them gets interupted, you want to pause and listen for the input from user. Not a problem. Once you detect input other than prompt complete, you keep listening(wait for digit) till you have enough data to do something. If splicing clips together was what was needed, you would see a built in tool to do such a thing. -- Steven Critchfield <critch@basesys.com>
James Golovich
2004-Jun-02 08:26 UTC
[Asterisk-Users] Splicing audio clips into one stream
cat 1.gsm 2.gsm 3.gsm > new.gsm works fine James On Wed, 2 Jun 2004, Michael Welter wrote:> Is there a Linux tool that will splice several gsm sound clips together > into one clip? > > In my agi script, I would like to use 'get_data' with one clip instead > of multiple 'stream_file' so the user doesn't have to listen to the > entire spiel before responding. > > Thanks, > > -- > Michael Welter > Introspect Telephony Corp. > Denver, Colorado > +1 303 674 2575 > mike@introspect.com > www.introspect.com > > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Stuart Grimshaw
2004-Jun-02 08:33 UTC
[Asterisk-Users] Splicing audio clips into one stream
On Wed, 02 Jun 2004 08:22:23 -0600, Michael Welter <mike@introspect.com> wrote:> Is there a Linux tool that will splice several gsm sound clips together > into one clip? > > In my agi script, I would like to use 'get_data' with one clip instead > of multiple 'stream_file' so the user doesn't have to listen to the > entire spiel before responding.You could use: cat file1 file2 file3 > bigfile but it wouldn't have any pause in between the files. -- -S