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

Test on single .wav file #7

Open
prabalbansal opened this issue May 2, 2019 · 1 comment
Open

Test on single .wav file #7

prabalbansal opened this issue May 2, 2019 · 1 comment

Comments

@prabalbansal
Copy link

Hi, It works really well for the recorded audios. Could you tell how can I test it on a given .wav file ?

@thunanguyen
Copy link

thunanguyen commented Dec 10, 2019

Hi you could try the following code of mine:

`from speechless.configuration import Configuration
from speechless.labeled_example import LabeledExampleFromFile
import matplotlib.pyplot as plt

from pathlib import Path

german = Configuration.german()
wav2letter = german.load_best_german_model()

example = LabeledExampleFromFile(Path('path/to/wav/file'))

print(wav2letter.test_and_predict(example))`

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

No branches or pull requests

2 participants