Re: Play WAV file in Win10 with Eu 3
- Posted by AndyDrummond Mar 26, 2021
- 1010 views
I have no answer as to why some Windows WAV files won't work, but I have found why my own generated speech files wouldn't run.
The file header matched the WAV file specification to a T, but if I opened one in Audacity, played it, and exported it again, the file and data length fields were reduced by 8. They then worked fine in the Euphoria playSound() routine. So I edited my code to reduce those fields by 8 - and Lo and Behold! They played fine.
So though the file length was whatever, I had to tell the WAV header it was 8 fewer. Make sense of that if you can.
And thank you all for your help.
Andy