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

Testing on WAV files from Youtube? #20

Closed
maximtolea opened this issue Feb 18, 2021 · 3 comments
Closed

Testing on WAV files from Youtube? #20

maximtolea opened this issue Feb 18, 2021 · 3 comments

Comments

@maximtolea
Copy link

Hello,

I wanted to use this repository for calling predictions and prediction probabilities on .wav files I'm getting from the internet. I've been using converted youtube audio clips (in the final form of .wav). For some reason, basic predictions aren't being done on these files. I wanted to know if you could explain how one should properly test these new WAV files. For the time being, I've just been following example 2 in the README, downloading the files, and putting them in their own folder within the emotion-recognition-using-speech one. Is there anything in the code I should modify to be able to use this program on wav files converted from Youtube?

@maximtolea
Copy link
Author

I haven't changed anything in the code. I have written some scripts for my own usage. The program works fine for the provided .wav files in the data sets. However, in my case, the program terminates without any prediction or probability score being printed in the console.

@x4nth055
Copy link
Owner

x4nth055 commented Mar 16, 2021

Hi @maximtolea ,

Before using any outsider audio file, you need to first convert its sample rate to 16000Hz and mono channel, I've provided the script create_wavs.py for that case. Note that you'll need to have ffmpeg installed in your machine in order to properly convert the audio files.

Hope this helps. Let me know when this solves your issue.

@x4nth055
Copy link
Owner

x4nth055 commented Sep 5, 2021

Hey again,

I've updated the code to automatically convert to the appropriate format when using the predict() method. Pull the repo again and check it out!

Thanks, closing the issue.

@x4nth055 x4nth055 closed this as completed Sep 5, 2021
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