You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To reproduce this issue, run the test_special_features.py script in the speech_recognition module. Specifically, focus on the following test cases:
test_sphinx_keywords: Ensure this test runs with a valid english.wav audio file.
test_incompatible_audio_file_error: Run this test with an english.mp3 file or any audio file in an unsupported format.
If available, include an audio file that matches the described scenarios for more accurate testing.
Expected behavior
I expected the TestSpecialFeatures test cases to:
Correctly raise a ValueError when an incompatible audio format (e.g., MP3) is provided.
Pass or fail the keyword recognition tests accurately with specific assertions in test_sphinx_keywords.
Actual behavior
The test cases did not behave as expected in the following ways:
The test_incompatible_audio_file_error test did not properly detect the audio file format and failed to raise the ValueError.
The test_sphinx_keywords test produced unexpected results when checking specific keyword recognition.
System information
My system is MacOS.
My Python version is 3.12.3.
My Pip version is 24.2.
My SpeechRecognition library version is 3.8.1.
My PyAudio library version is not installed.
My microphones are: ['Microphone 1', 'Microphone 2'].
My working microphones are: ['Microphone 1'].
The text was updated successfully, but these errors were encountered:
Steps to reproduce
To reproduce this issue, run the
test_special_features.py
script in thespeech_recognition
module. Specifically, focus on the following test cases:test_sphinx_keywords
: Ensure this test runs with a validenglish.wav
audio file.test_incompatible_audio_file_error
: Run this test with anenglish.mp3
file or any audio file in an unsupported format.If available, include an audio file that matches the described scenarios for more accurate testing.
Expected behavior
I expected the
TestSpecialFeatures
test cases to:ValueError
when an incompatible audio format (e.g., MP3) is provided.test_sphinx_keywords
.Actual behavior
The test cases did not behave as expected in the following ways:
test_incompatible_audio_file_error
test did not properly detect the audio file format and failed to raise theValueError
.test_sphinx_keywords
test produced unexpected results when checking specific keyword recognition.System information
My system is MacOS.
My Python version is 3.12.3.
My Pip version is 24.2.
My SpeechRecognition library version is 3.8.1.
My PyAudio library version is not installed.
My microphones are: ['Microphone 1', 'Microphone 2'].
My working microphones are: ['Microphone 1'].
The text was updated successfully, but these errors were encountered: