ai4r / SGToolkit

SGToolkit: An Interactive Gesture Authoring Toolkit for Embodied Conversational Agents (UIST 2021)
Other
43 stars 6 forks source link

Generation issue #7

Closed muyuelingxiao closed 1 year ago

muyuelingxiao commented 2 years ago

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?

muyuelingxiao commented 2 years ago

Sorry, I just changed the network. Now it runs well.

muyuelingxiao commented 2 years ago

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? 图片

muyuelingxiao commented 2 years ago

The error is as below. 图片

youngwoo-yoon commented 2 years ago

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.

muyuelingxiao commented 2 years ago

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? 图片

youngwoo-yoon commented 2 years ago

Please use Flask 1.1.2 or higher. Flask supports returning dict objects since 1.1.0.

youngwoo-yoon commented 2 years ago

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.

muyuelingxiao commented 2 years ago

Please use Flask 1.1.2 or higher. Flask supports returning dict objects since 1.1.0.

Yeh, now it works.

muyuelingxiao commented 2 years ago

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"

youngwoo-yoon commented 2 years ago

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.