Skip to content

Document the microphone device default sample rate - #921

Merged
ftnext merged 1 commit into
Uberi:masterfrom
emme1t:docs/microphone-default-sample-rate-617
Nov 21, 2026
Merged

ftnext merged 1 commit into
Uberi:masterfrom
emme1t:docs/microphone-default-sample-rate-617

Conversation

@emme1t

@emme1t emme1t commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

The Microphone reference lists a fixed 16000 Hz default. Its constructor defaults to None and reads the input device's default sample rate from PyAudio. Update the signature and describe how the device rate is selected.

Fixes #617.

I rendered the updated section with Docutils and checked the constructor with a stubbed PyAudio device interface. The default input returned 44100 Hz, a selected input returned 48000 Hz, and an explicit 22050 Hz value took precedence.

@ftnext ftnext left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ftnext
ftnext merged commit 9e56995 into Uberi:master Nov 21, 2026
21 checks passed
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

Successfully merging this pull request may close these issues.

Default value of the sample_rate for Microphone differs between the reference and the implementation

2 participants