in reply to How can I reduce the time taken by wav file to save in /tmp folder
From your code, I'm a bit unclear as to which part actually takes too long.
Is it this line?
my $response = $ua->get("http://127.0.0.1:8000/speech_to_text/?file_pa +th=$tmpname.wav");
... or is there anything else?
I'm not sure how AGI programs work. Maybe you can only send one action per invocation, so you have then to find out when recording the file ended?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I reduce the time taken by wav file to save in /tmp folder
by srikanth (Initiate) on Dec 04, 2021 at 08:52 UTC | |
by Corion (Patriarch) on Dec 04, 2021 at 09:13 UTC | |
by srikanth (Initiate) on Dec 04, 2021 at 13:32 UTC | |
by Marshall (Canon) on Dec 07, 2021 at 16:06 UTC |