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

fix_add_special_feature_tests #778 #783

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

amjadnattouf
Copy link

The test_incompatible_audio_file_error test failed and raised the ValueError as mp3 format.
The test_sphinx_keywords fixed the tests before as they failed
Issue #778

Copy link
Collaborator

@ftnext ftnext left a comment

Choose a reason for hiding this comment

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

Thank you for splitting the pull request.
First I have a question.

tests/test_special_features.py Outdated Show resolved Hide resolved
# Load the audio file for recognition
# Attempt to record audio from the MP3 file
with sr.AudioFile(self.AUDIO_FILE_EN_MP3) as source:r.record(source)

Copy link
Collaborator

Choose a reason for hiding this comment

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

This file contains tests for the Recognizer's recognize_sphinx() method,
and I think the added test is for AudioFile.
So I think it should be added to test_audio.py instead of test_special_features.py

Copy link
Author

Choose a reason for hiding this comment

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

@ftnext done ✅

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.

2 participants