Closed telmojsneves closed 4 years ago
The first thing to know is that the "file.mp3" you record here:
ep.record("file.mp3" ,{timeLimitSecs:20})
is going to be written to the filesystem on the freeswitch container.
The "file.mp3" you write here:
ar file = fs.createWriteStream("file.mp3");
is going to be written to your host. You mapped the sounds volume but you did not map the recordings volume on freeswitch.
Is your end goal to run this system under docker? Because if not -- if your end goal is to run this on an EC2 instance or other hosted VM -- it might be faster to set up that environment. If your goal is to run on docker though, that's fine
What I am trying to build is a virtual agent that allows audio input and output. I am using drachtio server combined with freeswitch as you can see here:
And for recording audio I am using a similar example to the one founded in the examples/record folder.
The only reason for register command is so that Zoiper could make a call to the service. The file is being created but nothing is stored. Also I already tried to use another examples and strategies, like mod_audio_fork module but without success. I know that this approach is not the best for what I want (literally a audio virtual agent), but it is a first step.