摘要 |
A method and a device for adjusting voice data. The adjusting method comprises: acquiring parameter information of a specified frame in voice data to be processed and a first target stretch or compression length of the specified frame (102), the parameter information of the specified frame comprising: a pitch period, a first frame length, and a first correction value; calculating the sum of the first target stretch or compression length and the first correction value, and taking the obtained sum as a second target stretch or compression length (104); calculating adjustment parameters according to the second target stretch or compression length and the pitch period (106); adjusting the length of the specified frame according to the adjustment parameters and the parameter information of the specified frame (108); determining a second frame length and a second correction value for adjusting the length of the specified frame, and updating, according to the second correction value, the correction value of the next frame of the specified frame that performs a stretch or compression operation (1010). This makes an adjustment to each frame of voice date in real time, improving the signal quality of voice data. |