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

Error jupyter code #24

Open
fpcarva opened this issue Oct 25, 2024 · 0 comments
Open

Error jupyter code #24

fpcarva opened this issue Oct 25, 2024 · 0 comments

Comments

@fpcarva
Copy link

fpcarva commented Oct 25, 2024

I find this error, can you create a new version of jupyter notebook?

TypeError Traceback (most recent call last)
in <cell line: 13>()
11 ##### Load the audio file and features
12
---> 13 inference_dataset = data_loaders.SwitchBoardLaughterInferenceDataset(
14 audio_path=audio_path, feature_fn=feature_fn, sr=sample_rate)
15

1 frames
/content/laughter-detection/./utils/audio_utils.py in featurize_melspec(f, offset, duration, y, sr, hop_length, augment_fn, spec_augment_fn, **kwargs)
226 if augment_fn is not None:
227 y = augment_fn(y)
--> 228 S = librosa.feature.melspectrogram(y, sr, hop_length=hop_length).T
229 S = librosa.amplitude_to_db(S, ref=np.max)
230 if spec_augment_fn is not None:

TypeError: melspectrogram() takes 0 positional arguments but 2 positional arguments (and 1 keyword-only argument) were given

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

1 participant