Closed muyuelingxiao closed 1 year ago
Sorry, I just changed the network. Now it runs well.
How long will generation take? When I used the sample text, the generation was loading all the time. Should I open other web, such as TTS?
The error is as below.
Returning a dict object should be okay (see https://flask.palletsprojects.com/en/2.0.x/quickstart/#apis-with-json). Which Flask version do you use in your environment? Sorry that I didn't specify the Flask version in requirements.txt.
My flask is 1.0.2. Thanks for your reply.
I'm dealing the issues with Google Cloud API. It's a little difficult.
I don't know why can't I upload the audio. Could you give me some suggestions?
Please use Flask 1.1.2 or higher. Flask supports returning dict objects since 1.1.0.
I never had problems in uploading wav files. I used Filepond library with input constraints <input accept="audio/wav, audio/mp3" type="file" class="filepond">
The comment in this issue (https://github.com/pqina/vue-filepond/issues/40) suggests to check MIME types. Please have a look.
Please use Flask 1.1.2 or higher. Flask supports returning dict objects since 1.1.0.
Yeh, now it works.
I never had problems in uploading wav files. I used Filepond library with input constraints
<input accept="audio/wav, audio/mp3" type="file" class="filepond">
The comment in this issue (pqina/vue-filepond#40) suggests to check MIME types. Please have a look.
When I upload, there is no another choice for file types. Only "All files"
I mean that I suggest checking your wav file by inspecting MIME information (in other words, checking whether your file is in a correct wav format). Or you would try converting it to mp3 and loading mp3 file.
When I connected to loacalhost:8080, the buttons have no responses. I can't know the sample text. And the terminal has this output: Should I wait for a period of time?