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

Samples Width defnition #33

Open
kenho211 opened this issue Jul 5, 2024 · 0 comments
Open

Samples Width defnition #33

kenho211 opened this issue Jul 5, 2024 · 0 comments

Comments

@kenho211
Copy link

kenho211 commented Jul 5, 2024

Wondering if the documentation of samples_width is correct here.

samples_width (int): The width of each audio sample in bits.

Because when calculating for buffer and scratch_buffer, there is no division by 8.

last_segment_should_end_before = (
len(self.client.scratch_buffer)
/ (self.client.sampling_rate * self.client.samples_width)

chunk_length_in_bytes = (
self.chunk_length_seconds
* self.client.sampling_rate
* self.client.samples_width
)

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