Skip to content

Uploaded a python project that converts speech into text #169

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Wesley-nfj
Copy link

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

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.

1 participant