Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Why locked the record file while recording? (Read 3248 times)
Adam Xiong
YaBB Newbies
*
Offline


Phoner is great!

Posts: 7
Joined: 03. Jun 2018
Why locked the record file while recording?
03. Jun 2018 at 13:21
Print Post  
We can not  reading the record file while recording, because it locked by Phoner exclusively.
Is there a way to solve this problem so that we can transfer record file while recording? 

Thanks ahead!
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: Why locked the record file while recording?
Reply #1 - 04. Jun 2018 at 16:52
Print Post  
That is normal, while writing into a file reading is not possible. The header (beginning of the file) of a wave file (.wav) contains the size. That is not known while still recording. I can't change anything here.
  
Back to top
WWW  
IP Logged
 
Adam Xiong
YaBB Newbies
*
Offline


Phoner is great!

Posts: 7
Joined: 03. Jun 2018
Re: Why locked the record file while recording?
Reply #2 - 06. Jun 2018 at 05:20
Print Post  
Yes, I see. 
But we don't care about the size of the .wav file, we only need the PCM stream data. As i know, if Phoner call CreateFile API with FILE_SHARE_READ flag set than we can read the file stream while Phoner writing into it.  Is that correct?

Thanks!
  
Back to top
 
IP Logged
 
Phoner Admin
YaBB Administrator
*****
Offline



Posts: 11389
Location: Germany
Joined: 12. Oct 2003
Gender: Male
Re: Why locked the record file while recording?
Reply #3 - 06. Jun 2018 at 10:40
Print Post  
I don't really understand why you need to extract data from a not finished written file. After call termination the file is ready for any other usage. Please understand that PhonerLite is a tool for my personal use and I just share it for others. If you need a complete different usage you should think about to use a professional solution. I have not the time to fulfill all user specific requirements.
  
Back to top
WWW  
IP Logged
 
Adam Xiong
YaBB Newbies
*
Offline


Phoner is great!

Posts: 7
Joined: 03. Jun 2018
Re: Why locked the record file while recording?
Reply #4 - 07. Jun 2018 at 09:49
Print Post  
Yeah, we want use Phoner's COM API make some robotic calls, and need near realtime ASR. 
Thanks for you advice, we are already thinking about do this type functions in FreeSwitch side.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint