Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hi, How to change the voice's rate or tempo or pitch #1169

Open
GoogleCodeExporter opened this issue Aug 19, 2015 · 0 comments
Open

Hi, How to change the voice's rate or tempo or pitch #1169

GoogleCodeExporter opened this issue Aug 19, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Hi, I use the soundtouch library to change the voice , but cannot wrok
In the RtpStreamSender.java 435 line
 pos = (ring+delay*frame_rate*frame_size/2)%(frame_size*(frame_rate+1));
             num = record.read(lin,pos,frame_size);
             System.out.println("num :" + num);

             if (num <= 0)
                 continue;

             short[] samples = lin.clone();
                soundTouch.setRate(50);
                soundTouch.putSamples(samples, pos, samples.length);

                short[] samepleBuffer = new short[lin.length];
                int nSample = soundTouch.receiveSamples(samepleBuffer, 0, samples.length);

                System.out.println("samples= " + nSample);
                lin = samepleBuffer.clone();

             if (!p_type.codec.isValid())
                 continue;

             // Call recording: Save the frame to the CallRecorder.
             if (call_recorder != null)

How to change it?

Original issue reported on code.google.com by tqj.zyy@gmail.com on 6 May 2014 at 12:38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant