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

Increasing test coverage (ASR demo) #248

Merged
merged 13 commits into from
Aug 21, 2019
Merged

Conversation

jamarshon
Copy link
Contributor

@jamarshon jamarshon commented Aug 20, 2019

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 into examples/interactive_asr/utils.py so that the functions can be called in examples/test/test_interactive_asr.py. This also reduces the number of lines of code for asr.py

The Travis CI has been updated accordingly

Copy link
Contributor

@vincentqb vincentqb left a 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

Copy link
Contributor

@vincentqb vincentqb left a 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!

@cpuhrsch cpuhrsch merged commit ed17513 into pytorch:master Aug 21, 2019
@jamarshon jamarshon deleted the example branch August 21, 2019 18:24
vincentqb added a commit to vincentqb/audio that referenced this pull request Sep 6, 2019
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.

None yet

3 participants