playing a wav file that is current being recorded via python

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
f7f5
New Cone
New Cone
Posts: 1
Joined: 15 Nov 2024 09:42

playing a wav file that is current being recorded via python

Postby f7f5 » 15 Nov 2024 09:50

Hello,

I am writing a python programme which will record audio into a .wav file.

I need to play the .wav file with VLC while it is still being recorded.

Have you any suggestions what python functions I should use to write to the file so that VLC sees that the file has been updated and load the new audio into the playout stream?

Thanks,
Jim

Lotesdelere
Cone Master
Cone Master
Posts: 9985
Joined: 08 Sep 2006 04:39
Location: Europe

Re: playing a wav file that is current being recorded via python

Postby Lotesdelere » 15 Nov 2024 12:02

On Windows I'm quite sure you can't read a file which is actually open for writing.
Not to mention in the case of a WAV file the header is written down at the end, when the file is completed, so no header no playback.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 45 guests