Solved Speech to Text IVR Not Working

Status
Not open for further replies.

eric_1487

Premier Customer
Joined
Oct 17, 2022
Messages
15
Reaction score
3
Hi all,

Starting today, our IVR menu with voice input disconnects the caller after they say something. I cannot find the reason why.

I also tried the speech to text demo, and uploaded it to our system with a new JSON file from Google Cloud.

I'm attaching the log from the call. Anyone have any ideas?

THANKS!
 

Attachments

Try deleting the files:
C:\ProgramData\3CX\Instance1\Data\Ivr\Prompts\Callflows\speechtotextdemo\Temp_*.wav

as those seem to be causing issues while generating a temporary WAV file.
 
Sorry... where do I do that? In the management console?

I'm not sure if that's also the issue with our main IVR menu, but attached are the results from that call as well.
 

Attachments

Sorry... where do I do that? In the management console?
This is in your 3CX server, which is a Windows server from what I can see in the logs.
 
This is in your 3CX server, which is a Windows server from what I can see in the logs.
Ok thanks - I will check with IT. Would that also impact the other call flow apps? Or does that file also need to be removed from those?
 
Would that also impact the other call flow apps?
The folder C:\ProgramData\3CX\Instance1\Data\Ivr\Prompts\Callflows\speechtotextdemo belongs to this app only, so only this app is affected by this change. Each app generates temporary files to TTS in a different folder. In this case, it seems the file already exists, and 3CX is having issues overriding it, not sure why because the files are generated by the same service, and it should be able to override it without problems. Maybe the files were copied using a different Windows account, and that changed the permissions....
 
That file was deleted, but I still get the same result when calling. As soon as I say "Sales" the call disconnections.

Log file attached.
 

Attachments

Hi @eric_1487,

Investigating further, I can see that the issue is not related to the temporary WAV files generated in the callflow folder. The issue happens when 3CX tries to use a Windows temporary file to store the audio while it's being received. For this, it uses the System.IO.Path.GetTempFileName() method:
https://learn.microsoft.com/en-us/dotnet/api/system.io.path.gettempfilename?view=net-7.0

In the remarks we can see the following:
On .NET 7 and earlier versions, when using this method on Windows, the GetTempFileName method raises an IOException if it's used to create more than 65535 files without deleting previous temporary files.

Your PBX is running on Windows, so this is most likely what's happening here. The solution would be deleting temporary files from the Windows temp folder, which you can access using the environment variable %TEMP%. You will need to manually delete files from that folder. You can also clean this from the Windows Settings > System > Storage > Cleanup recommendations > Temporary Files.
 
  • Like
Reactions: eric_1487
  • Like
Reactions: edossantos
Glad to know!
 
Status
Not open for further replies.

Forum statistics

Threads
111,973
Messages
590,070
Members
164,891
Latest member
esmo