How to merge two raw files in Python: These raw files contain telephonic call conversations; one raw file contains one-person conversations and call hold music while adding a new person to the call; and the other file contains conversations of other users involved in the call. Merging should be interleaved; the merged raw file contains a full call conversation.
I tried to take chunk size (1024 * 16) data from each raw file (raw extension file) and merge it to create a new file. get interleaved, merging, but at some point mixing conversations. mainly in music play time, the conversation in the second file mixes with call-hold music in the first file. I want to merge these raw files and get the full correct order telephonic conversation.
Reshma K.p is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.