Uploaded a python project that converts speech into text #169
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Added a basic speech-to-text feature using the speech_recognition library.
The script records audio from the user’s microphone and converts it into text using Google’s Web Speech API.
It includes basic error handling for when speech can’t be understood or when there is a network issue.
Motivation & Context:
This can be the starting point for adding voice input features in future projects or integrating speech recognition into other tools.
Dependencies:
speech_recognition
Fixes # (no existing issue linked)
Type of change
New feature (non-breaking change which adds functionality)
How Has This Been Tested?
Test steps:
Installed the speech_recognition package.
Ran the script in a quiet room.
Spoke a short phrase into the microphone.
Verified that the text output matched the spoken words.
Tested network disconnection to confirm error handling.
Manual test with clear speech
Manual test with unclear speech (to trigger error handling)
Test Configuration:
Firmware version: N/A
Hardware: Standard laptop microphone
Toolchain: Python 3.x
SDK: N/A
Checklist:
My code follows the style guidelines of this project
I have performed a self-review of my code
I have commented my code, particularly in hard-to-understand areas
I have made corresponding changes to the documentation
My changes generate no new warnings
I have added tests that prove my fix is effective, or that my feature works
New and existing unit tests pass locally with my changes
Any dependent changes have been merged and published in the downstream modules