-
Notifications
You must be signed in to change notification settings - Fork 635
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
Increasing test coverage (ASR demo) #248
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking into this! I hope dependencies won't constantly break this test :)
I like that this is testing fbank
, load_wave
, and Resample
at a higher level. pytorch/pytorch#24344 for reference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
This reverts commit ed17513.
For the ASR demo, we should test that the
transcribe_file
works correctly (i.e. reads "sample.wav" and produces[['THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG']]
).To do this, functions inside
examples/interactive_asr/asr.py
are moved intoexamples/interactive_asr/utils.py
so that the functions can be called inexamples/test/test_interactive_asr.py
. This also reduces the number of lines of code forasr.py
The Travis CI has been updated accordingly