Cleanup order fixes
Avoid modifying speech data while speech is playing
Waveform set function