› Forums › Speech Synthesis › Merlin › Synthesis: AttributeError
- This topic has 2 replies, 1 voice, and was last updated 8 years, 1 month ago by Hanzhang X.
-
AuthorPosts
-
-
June 23, 2016 at 12:52 #3299
I am building a naive system for Jinhua dialect using msc_demo_02 according to msc_ossian_notes.txt. In the last step (synthesis), there is a warning saying:
Traceback (most recent call last):
File “./scripts/speak.py”, line 168, in <module>
main_work()
File “./scripts/speak.py”, line 118, in main_work
output_labfile=output_labfile)
File “/afs/inf.ed.ac.uk/user/s15/s1565865/Thesis/ossian_msc_2016_test/Ossian/scripts/main/Voice.py”, line 224, in synth_utterance
processor.apply_to_utt(utt, voice_mode=self.run_mode) ## utt is changed in place
File “/afs/inf.ed.ac.uk/user/s15/s1565865/Thesis/ossian_msc_2016_test/Ossian/scripts/processors/UtteranceProcessor.py”, line 89, in apply_to_utt
self.process_utterance(utterance)
File “/afs/inf.ed.ac.uk/user/s15/s1565865/Thesis/ossian_msc_2016_test/Ossian/scripts/processors/NN.py”, line 646, in process_utterance
streams = self.model.generate(label, variance_expansion=self.variance_expansion, \
AttributeError: ‘NNAcousticPredictor’ object has no attribute ‘model’P.S. When I trained the models, there was a warning message saying:
/usr/lib64/python2.7/site-packages/matplotlib/__init__.py:1173: UserWarning: This call to matplotlib.use() has no effect
because the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.warnings.warn(_use_error_msg)
I don’t know whether it matters or not.
-
June 23, 2016 at 15:32 #3300
The first problem is solved. It turned out that I got the path of the output files wrong.
However, there is still an error message during synthesis:
Traceback (most recent call last):
File “./scripts/speak.py”, line 168, in <module>
main_work()
File “./scripts/speak.py”, line 118, in main_work
output_labfile=output_labfile)
File “/afs/inf.ed.ac.uk/user/s15/s1565865/Thesis/ossian_msc_2016_test/Ossian/scripts/main/Voice.py”, line 224, in synth_utterance
processor.apply_to_utt(utt, voice_mode=self.run_mode) ## utt is changed in place
File “/afs/inf.ed.ac.uk/user/s15/s1565865/Thesis/ossian_msc_2016_test/Ossian/scripts/processors/UtteranceProcessor.py”, line 89, in apply_to_utt
self.process_utterance(utterance)
File “/afs/inf.ed.ac.uk/user/s15/s1565865/Thesis/ossian_msc_2016_test/Ossian/scripts/processors/NN.py”, line 649, in process_utterance
self.world_resynth(streams, owave)
File “/afs/inf.ed.ac.uk/user/s15/s1565865/Thesis/ossian_msc_2016_test/Ossian/scripts/processors/NN.py”, line 671, in world_resynth
put_speech(data, ‘/tmp/tmp.%s’%(stream))
File “/afs/inf.ed.ac.uk/user/s15/s1565865/Thesis/ossian_msc_2016_test/Ossian/scripts/util/speech_manip.py”, line 43, in put_speech
write_floats(flat_data, outfile)
File “/afs/inf.ed.ac.uk/user/s15/s1565865/Thesis/ossian_msc_2016_test/Ossian/scripts/util/speech_manip.py”, line 50, in write_floats
f = open(outfile, “w”)
IOError: [Errno 13] Permission denied: u’/tmp/tmp.mgc’I checked the “output” folder, there are files in folder “dnn_lab” and “lab_dur”, but nothing is in “utt” or “wav”.
-
June 24, 2016 at 11:15 #3301
I did not figure the problem out, but when I ran the scripts again, it worked…
-
-
AuthorPosts
- You must be logged in to reply to this topic.