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

AttributeError: 'AudioProcessor' object has no attribute '_denormalize' #20

Open
mirfan899 opened this issue Mar 18, 2021 · 1 comment

Comments

@mirfan899
Copy link

mirfan899 commented Mar 18, 2021

I tried to use it on my local machine and getting the following error after successfully building the docker images.

[INFO] 172.17.0.1 - - [18/Mar/2021 12:19:42] "GET /api/tts?text=how%20are%20you%3F HTTP/1.1" 500 -
[INFO] Synthesizing (41 char(s))...
[INFO] initializing backend espeak-1.48.03
[ERROR] Exception on /api/tts [POST]
Traceback (most recent call last):
  File "/app/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/app/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/app/lib/python3.7/site-packages/flask_cors/extension.py", line 165, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
  File "/app/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/app/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/app/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/app/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/app/tts_web/__main__.py", line 139, in api_tts
    wav_bytes = text_to_wav(text)
  File "/app/tts_web/__main__.py", line 73, in text_to_wav
    line_wav_bytes = synthesizer.synthesize(line)
  File "/app/tts_web/synthesize.py", line 324, in synthesize
    scale_factors=self.scale_factors,
  File "/app/tts_web/synthesize.py", line 59, in tts
    mel_postnet_spec = ap._denormalize(mel_postnet_spec.T).T
AttributeError: 'AudioProcessor' object has no attribute '_denormalize'

I'm using a custom model.

@d33tah
Copy link

d33tah commented Dec 21, 2022

Still a problem for me on a1991f6.

 > ls model/en/
checkpoint_130000.pth.tar  checkpoint_130000_tf_2.3rc0.tflite  checkpoint_130000_tf.pkl  config.json  scale_stats.n

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