Patent ID: 8225127

Claim:
A computer implemented method for a selection of a time shift interval for smooth splicing wave fragment, the method for use in filling a gap in an audio signal, the method comprising: minimizing a value calculated by a function F ⁡ ( x ) = ∑ i = 0 L ⁢  W c + i - W c + i - x  · [ 1 + P ⁡ ( L - i ) 2 ⁢ ( 1 + sign ⁡ ( i - ( L - X 0 ) ) ) ] , wherein xε[L,2L], c is a number of a plurality of samples on which a procedure of information recovery is invoked, W k is a value of a discreet approximation of a wave function on a sample k, L is a length of a “sound window” used to find a pre-granular sound fragment, x is a discreet wave shift, P is a weight function, Xo is a plurality of last received samples.