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

How to change the output frequency? #286

Open
Femtofirst opened this issue Jul 30, 2023 · 1 comment
Open

How to change the output frequency? #286

Femtofirst opened this issue Jul 30, 2023 · 1 comment

Comments

@Femtofirst
Copy link

I realized that ODAS is outputting at a very high frequency, around 141 times per sec - and they are printed out together at the end of each second, which means the elapse between each output is 1s.

Instead of having 141 output every 1 second, I want to have 1 output every 0.1 sec, anyone have the idea of how to achieve that?

@SeanTasker
Copy link

The output rate is a function of the sample rate and hop size.

outputRate = sampleRate / outputHopSize

I am receiving audio from ODAS in real time at 125 updates per second with sample rate of 16000 and hop size of 128.

How are you consuming the output? Are you sure that the 1 second updates isn't something on your end limiting update frequency? If so, what about the input device, is it a real time stream?

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

2 participants