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

Module not found "Speech Commands" #2

Open
salmaShahid opened this issue Apr 16, 2023 · 3 comments
Open

Module not found "Speech Commands" #2

salmaShahid opened this issue Apr 16, 2023 · 3 comments

Comments

@salmaShahid
Copy link

From where i can find this speech_commands folder/file

from speech_commands.input_data import AudioProcessor

@phanxuanphucnd
Copy link
Owner

@salmaShahid

The "speech_commands.input_data" module appears to be part of the TensorFlow Speech Command Recognition example code, which can be found in the TensorFlow GitHub repository.

You can find the "AudioProcessor" class by navigating to the following path in the repository:

tensorflow/examples/speech_commands/input_data.py

Once you've located the input_data.py file, you can import the AudioProcessor class using the following code:

from speech_commands.input_data import AudioProcessor

Make sure that you have TensorFlow installed and that you have downloaded the Speech Commands dataset before attempting to use this code.

@salmaShahid
Copy link
Author

ok. can you please provide me the requirement.txt file; because in colab, i am facing version issues;

@salmaShahid
Copy link
Author

salmaShahid commented Apr 16, 2023

It generates this error and i have downloaded the dataset

File "downstream_kws.py", line 263, in
tf_ap = AudioProcessor("", args.dataset, 10, 10,
File "/content/Wav2Keyword/input_data.py", line 181, in init
self.prepare_data_index(silence_percentage, unknown_percentage,
File "/content/Wav2Keyword/input_data.py", line 284, in prepare_data_index
silence_wav_path = self.data_index['training'][1]['file']
IndexError: list index out of range

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