Default value of the sample_rate for Microphone differs between the reference and the implementation
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 72/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- python
- Domain
- documentation
Research direction
Compare the Microphone reference entry in reference/library-reference.rst with the implementation at speech_recognition/init.py around line 73. Update the reference description so its sample_rate default matches the implementation, then verify the documented signature reflects None.
Written by the indexing model from the issue text.
Description
Steps to reproduce
This is a documentation error.
Expected behaviour
The reference description should be sample_rate: Union[int, None] = None
Actual behaviour
Reference
sample_rate: int = 16000
Implementation
https://github.com/Uberi/speech_recognition/blob/3.8.1/speech_recognition/__init__.py#L73
sample_rate=None
System information
- Dominant language
- Python
- Stars
- 9k
- Forks
- 2.4k
- Avg merge
- 12h 24m
- Merged PRs (30d)
- 3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Uberi/speech_recognition
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Uberi/speech_recognition#897 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Uberi/speech_recognition#853 ·
-
`AudioData.get_wav_data()` only processes partial audio data, causing incomplete transcriptions Open
Uberi/speech_recognition#848 · 1 comment · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
Uberi/speech_recognition#841 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Uberi/speech_recognition#835 · 1 comment ·
All issues in Uberi/speech_recognition
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100