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

'str' object has no attribute 'decode' #25

Open
ruaruaruabick opened this issue May 20, 2021 · 1 comment
Open

'str' object has no attribute 'decode' #25

ruaruaruabick opened this issue May 20, 2021 · 1 comment

Comments

@ruaruaruabick
Copy link

I follow the examples and get something wrong,
here are my codes

import speechmetrics
window_length = 5 # seconds
metrics = speechmetrics.load('absolute', window_length)
scores = metrics("/Wave/000001.wav")
print(scores)

and I get errors like this:

'str' object has no attribute 'decode'
  File "/home/mike/testaudioquality/test.py", line 3, in <module>
    metrics = speechmetrics.load('absolute', window_length)

the versions of my python is 3.6 and my tensorflow-gpu version is 2.0.0

@ruaruaruabick
Copy link
Author

I think there may be something wrong when using tensorflow-gpu, after I installed tensorflow-cpu, the program runs well.

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