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

If i want to change the SAMPLE_RATE from 16000 to 8000, how can i do? #11

Open
tongma opened this issue Jan 25, 2024 · 0 comments
Open

Comments

@tongma
Copy link

tongma commented Jan 25, 2024

If i want to change the SAMPLE_RATE from 16000 to 8000, how can i do?
I tried to change SAMPLE_RATE from 16000 to 8000, and change the code
private static final int SAMPLE_RATE = 16000;
private static final int BITS_PER_SAMPLE = 16;

   private static final int SAMPLE_RATE = 16000;

        soundtouch.setSampleRate(16000);
        soundtouch.setChannels(1);

to
private static final int SAMPLE_RATE = 8000;
private static final int BITS_PER_SAMPLE = 16;

   private static final int SAMPLE_RATE = 8000;

        soundtouch.setSampleRate(8000);
        soundtouch.setChannels(1);

then the voice is not right.

Which code should i change ?
would you please kindly help to give me a reply soon? Thanks in advance!

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

No branches or pull requests

1 participant