It was working very well in 3.0, but since 4.0 it's been very difficult getting it work.
It does play if I lower the sample rate to 8000, but that's far too low, and even then, it doesn't work consistently. If the sample rate is too high, I get total silence--not popping or stuttering, just total silence. Sometimes I have to lower the sample rate to 4000 Hz. This is strange because in 3.0, I could do complex FM modulation at 48000 Hz. Now I can barely squeeze out a single simple waveform. I don't see anything in the AudioStreamGenerator class that would indicate an error, and there's no error message in Output when running my script.